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
4 articles tagged Scalability.
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.
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.
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.