Tagged “Scalability”
6 articles with this tag.
- Diagram Building BlocksA library of reusable Mermaid diagrams for system design — load balancer, API gateway, services, databases, caches, message brokers, object storage, search indexes, external services, replication, sharding and event flows — each with its responsibility, failure modes and trade-offs.
- IntroductionA repeatable 18-step framework for designing systems and answering system design interviews: requirements, capacity estimation with worked calculations, APIs, data models, architecture, scaling, failure handling and trade-offs.
- Load balancing and proxiesHow traffic is spread across servers: where load balancers sit, layer 4 versus layer 7, algorithms (round robin, weighted, least connections, least response time, IP hash, consistent hashing), health checks, smart clients versus hardware and software balancers like HAProxy, redundant balancers, and forward versus reverse proxies.
- Partitioning (sharding)Splitting a dataset across machines: horizontal versus vertical partitioning, partitioning by key range versus by hash, hot spots and skew, local versus global secondary indexes, rebalancing strategies (fixed partitions, dynamic splitting, consistent hashing), request routing, and the cost of cross-shard joins and transactions.
- Reliability, scalability, maintainabilityThe three goals of every data system, made measurable: faults versus failures, hardware, software and human errors; describing load with parameters such as fan-out; measuring performance with percentiles and tail latency; vertical versus horizontal scaling; and operability, simplicity and evolvability.
- Scaling to millions of usersThe step-by-step evolution of a web system from one server to millions of users: separating the database, vertical versus horizontal scaling, load balancers, database replication, caching, CDNs, stateless web tiers, multiple data centres, message queues, observability and sharding — with what each step fixes and costs.