Database Replication: Leaders, Followers, and Consistency
Master database replication patterns — single-leader, multi-leader, and leaderless. Learn about replication lag, conflict resolution, quorum reads, and how Slack handles replication at scale.
11 posts · page 1 of 1
Master database replication patterns — single-leader, multi-leader, and leaderless. Learn about replication lag, conflict resolution, quorum reads, and how Slack handles replication at scale.
Master scalability patterns including horizontal scaling, stateless services, read replicas, CQRS, database partitioning, and async processing. See how Instagram handles 2B+ users.
Go beyond basic consistent hashing. Learn how virtual nodes solve imbalance, how rebalancing works during scale events, and real-world usage in Cassandra and DynamoDB.
Learn how CQRS separates read and write models for better scalability. Covers architecture, implementation patterns, and when CQRS is worth the complexity.
Compare range, hash, and directory-based sharding strategies, with guidance on choosing shard keys and operating sharded systems.
A senior-engineer guide to designing rate limiters: algorithms, distributed coordination, trade-offs, and production patterns that actually scale.
Design a real-time chat system that supports millions of users with low latency messaging, presence, and message persistence at scale.
Design a file storage service with uploads, sync, deduplication, and sharing, scaling to petabytes while keeping reads fast and cheap.
Design a real-time leaderboard using Redis sorted sets, handling millions of score updates per second with low latency rankings.
Design a notification service that delivers email, SMS, and push reliably with templating, rate limits, retries, and user preferences.
A practical introduction to sharding: range, hash, directory, and geo-based partitioning. Learn how to pick a shard key, handle hot shards, and plan resharding without downtime.