Software Engineering
Tricolor Concurrent Mark-Sweep Garbage Collection
How Go's tricolor concurrent mark-sweep garbage collector works. Objects get marked white gray or black. The algorithm stops the world briefly to mark reachable objects from roots, then sweeps unreachable white objects as garbage.
January 31, 2026
WaitGroup Implementation
How Go's WaitGroup works internally with atomic operations and memory alignment. The implementation uses a single 64-bit value to track both the counter and waiter count efficiently.
January 31, 2026
What nil Really Means in Go
Go's nil behaves differently across types. While numeric types default to zero and strings to empty, pointers, slices, maps, channels, functions, and interfaces use nil as their zero value. Understanding these differences prevents common bugs.
January 31, 2026
Concurrency Protection: Cache, Degradation, and Rate Limiting
Essential techniques for protecting high-concurrency systems including caching strategies to handle traffic spikes, service degradation patterns for maintaining core functionality, and rate limiting algorithms like token bucket and leaky bucket approaches.
January 29, 2026
Cookies and Sessions
How cookies and sessions work to maintain state in HTTP requests. Cookies store small data on the client side while sessions use server-side storage linked by session keys.
January 29, 2026
HTTP Protocols and Security
A practical guide to HTTP protocol evolution from 1.0 to 2.0, HTTPS security, common status codes, request methods, and web security vulnerabilities including XSS, CSRF, and CORS implementation.
January 29, 2026
IO Multiplexing
IO multiplexing lets a single thread manage multiple sockets by tracking their states. Instead of blocking on one socket, your program can wait for multiple sockets to become ready using system calls like select, poll, or epoll.
January 29, 2026
Single Sign-On (SSO)
How single sign-on works step by step. A user logs into one system and gains access to multiple applications without re-authenticating. The process involves service tickets and cross-domain authentication.
January 29, 2026
Socket Programming Explained Simply
A practical guide to socket programming covering the fundamentals of network communication including socket descriptors, address structures, connection handling, and common security issues like SYN flood attacks.
January 29, 2026
TCP Protocol Explained
A practical guide to TCP protocol fundamentals including the five-layer model, reliable transmission mechanisms, connection establishment with three-way handshake, congestion control algorithms, and common interview questions.
January 29, 2026