Feeds at scale: when to push, when to pull
Fan-out on write makes reads instant until one account has fifty million followers. Here is how to reason about the hybrid most real feeds use.
WRITING / NOTES FROM THE FORGE
10 articles tagged System Design.
Fan-out on write makes reads instant until one account has fifty million followers. Here is how to reason about the hybrid most real feeds use.
Microservices vs monolith compared honestly: trade-offs, the modular monolith middle ground, warning signs it is time to split, and how to migrate safely.
Rate limiting algorithms explained with code: token bucket, leaky bucket, fixed window, and sliding window, plus how to pick one and run it across servers.
Kafka vs RabbitMQ compared: log vs queue model, ordering, replay, routing, consumer groups, and clear guidance on which message broker fits your use case.
CAP theorem explained simply: what consistency, availability, and partition tolerance really mean, CP vs AP with real examples, and how PACELC extends it.
Database sharding explained: when you actually need it, how to pick a shard key, range vs hash vs directory sharding, and how to handle rebalancing.
Load balancing algorithms explained: round robin, weighted, least connections, IP hash, power of two choices, and consistent hashing, with when to use each.
Caching strategies compared: cache-aside, read-through, write-through, write-behind, and write-around, with trade-offs, code, and when to use each.
REST vs GraphQL vs gRPC compared on performance, caching, tooling, and team fit, with a practical decision guide for public, frontend, and internal APIs.
A practical system design interview framework: clarify requirements, estimate scale, define APIs and data, sketch the design, then go deep on trade-offs.