How Kafka Works - and Why You Probably Don't Need It
A clear explanation of how Apache Kafka works under the hood - topics, partitions, consumer groups, offsets - and an honest take on when Kafka is overkill.
Distributed systems, backend engineering, caching, and software design concepts explained clearly.
A clear explanation of how Apache Kafka works under the hood - topics, partitions, consumer groups, offsets - and an honest take on when Kafka is overkill.
How rate limiting works under the hood: fixed window, sliding window, token bucket, and leaky bucket. Includes a working Redis implementation and an LLD breakdown.
Redis is fast until it isn't. Here's how Redis actually works as a cache - including eviction policies, cache stampede, and the failure modes most engineers miss.
The actual tradeoffs between SQL and NoSQL databases - not the surface-level answer. When each breaks, why PostgreSQL is almost always the right start, and when NoSQL genuinely earns its place.
Regular hashing breaks every time you add or remove a server. Consistent hashing fixes that. Here is how the hash ring works and where you will actually run into it.
Indexes are the difference between a query taking 50ms and 12 seconds. Here is how B-trees actually work, why composite index column order matters, and what silently breaks your indexes.