Load balancing
One address receives requests and shares them across healthy copies of your application. It chooses a destination; it does not create extra servers or make slow database queries disappear.
Study load balancingSukoaa learning
Learn 25 system design concepts through a fictional ticket-booking app. Start with an everyday explanation, follow a narrated animation, explore the diagram at your pace, then practise the engineering trade-offs and interview questions.
A client is the app asking for something. A server does work and sends a response. An API is an agreed way to ask. A database stores records. A request can fail or arrive twice; a network is not a perfect wire.
Latency is how long one operation takes; throughput is work completed per second. The p99 latency is a percentile near the slow end, not the average. A replica is a copy. Consistency describes what results reads/writes may observe. Idempotency means repeating an operation has the intended single logical effect.
Plan roughly 20–35 minutes per lesson. These are self-guided explanations and self-assessment, not an AI examiner or a guarantee of interview success.
… / 25 lessons marked complete. Completion is your own assessment.
25 topics shown
One address receives requests and shares them across healthy copies of your application. It chooses a destination; it does not create extra servers or make slow database queries disappear.
Study load balancingAuto scaling changes capacity automatically when measured demand changes. A controller observes a signal, chooses a replica count and waits for new capacity to become ready. It is a delayed feedback loop, not instant unlimited capacity.
Study auto scalingHigh availability means meeting an agreed target for successful service over time. Redundant components and recovery reduce downtime, but a system can never promise that nothing will ever fail.
Study high availabilityFault tolerance is the ability to keep required behavior correct when specified components fail. Name the failure you tolerate and the degraded behavior you allow. It is not a claim of immunity to every possible fault.
Study fault toleranceHorizontal scaling adds more machines or application copies. Work must be shareable between them. It differs from auto scaling: horizontal describes the direction of growth; automatic describes how the decision is made.
Study horizontal scalingVertical scaling gives one machine more CPU, memory, storage or throughput. It can be the simplest improvement, but it has a size ceiling and does not create a second copy for failover.
Study vertical scalingA cache keeps a reusable copy so future reads can avoid slower work. Copies can become stale or disappear. Decide what may be cached, for how long and who is allowed to read it.
Study cachingA content delivery network serves suitable content from locations closer to users. It can cache public assets and reduce origin traffic. It does not make private or rapidly changing data safe to cache automatically.
Study cdnAn API gateway is an entry layer that applies shared API policies and routes requests to services. Authentication, quotas and request validation may live there, but business authorization still belongs near the protected data.
Study api gatewayRate limiting controls how much work an identity or client may request over time. It protects capacity and fairness, but it is not a complete defense against every attack.
Study rate limitingA circuit breaker temporarily stops calls to a dependency that appears unhealthy, then cautiously tests recovery. It prevents repeated waiting and extra pressure; it does not repair the dependency.
Study circuit breakerA message queue holds work until a consumer can process it. It separates accepting work from finishing it. Durability, retries, ordering and duplicate delivery depend on the queue and configuration.
Study message queuesIn event-driven architecture, components announce facts that happened and other components react. An event such as BookingConfirmed differs from a command such as ConfirmBooking, which asks an owner to perform an action.
Study event-driven architectureReplication keeps copies of database data. It can improve resilience or serve reads, but asynchronous copies may lag. A replica is not the same as an independent backup.
Study database replicationSharding divides records across separate database shards, often using a key. Each record needs a known home. It can spread storage and write load, but cross-shard operations and moving data become harder.
Study database shardingPartitioning splits a dataset into manageable parts using rules such as date ranges or key hashes. Table partitions can remain inside one database; partitioning does not automatically mean physical sharding across servers.
Study data partitioningMicroservices split a system into independently deployable business services. The useful boundary is ownership of a capability and its data, not an arbitrary number of small functions or servers.
Study microservicesService discovery maps a stable service name to current usable destinations. Instances change as they deploy, fail or scale. Discovery finds candidates; routing and health policies decide how requests reach them.
Study service discoveryA reverse proxy receives requests on behalf of backend servers and forwards them. It can terminate TLS, route paths or hosts and manage forwarding behavior. It is different from a forward proxy used on behalf of clients.
Study reverse proxyDNS translates names into records such as addresses. Managing DNS includes authoritative records, TTL, delegation and safe changes. It is not an HTTP redirect and does not instantly move every existing connection.
Study dns managementDisaster recovery is a tested plan for restoring required service and data after a serious disruption. Define the acceptable recovery time and acceptable data-loss window, then prove your procedure can meet them.
Study disaster recoveryA zero-downtime deployment aims to release a change without interrupting required user operations. Rolling or blue-green rollout helps, but database compatibility, readiness and connection draining are part of the design.
Study zero-downtime deploymentsDistributed tracing follows one operation across multiple components using linked spans and propagated context. It helps locate time and errors, but traces are sampled evidence, not proof that every request behaved the same way.
Study distributed tracingNetwork segmentation limits which systems may communicate across network boundaries. It reduces reachability and blast radius. It does not replace identity checks, encryption or resource-level authorization.
Study network segmentationA multi-region design runs required components in more than one geographic region. It can support regional recovery or lower user latency, but distant data coordination adds latency, consistency and operational trade-offs.
Study multi-region setupDesign SeatSpot for a ticket sale. Start with a small system; add a component only when a stated requirement justifies it. All figures below are fictional exercises, not production benchmarks.
Clarify users, requirements and invariants. Estimate traffic/storage with units. Draw the simplest request/data path. Identify one bottleneck and one failure at a time. Explain latency, cost, consistency and recovery trade-offs. State what you would measure and how you would test the design.
For early-career practice, explain the request path and one safe failure response. For mid-level practice, add capacity math, observability and idempotency. For senior practice, defend ownership, migrations, correlated failures, operational cost and recovery evidence. Experience labels guide practice; they do not represent a specific employer question bank.