Sukoaa learning

System design tutorials

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.

25 lessons25 narrated walkthroughs · about 95 minutesPrediction questions and practical tasksProgress stays on this device
Start with load balancing

Start here if this is new

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.

A mentor-style study loop

  1. Explain the simple view in your own words.
  2. Pause a video chapter and predict the next step.
  3. Read the engineering view and work the example.
  4. Try the exercise before opening hints or a solution.
  5. Answer an interview prompt, then check the rubric.

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.

Your study progress

… / 25 lessons marked complete. Completion is your own assessment.

Download course notes

25 topics shown

01 · Traffic and capacity

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 balancing
02 · Traffic and capacity

Auto scaling

Auto 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 scaling
03 · Reliability

High availability

High 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 availability
04 · Reliability

Fault tolerance

Fault 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 tolerance
05 · Traffic and capacity

Horizontal scaling

Horizontal 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 scaling
06 · Traffic and capacity

Vertical scaling

Vertical 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 scaling
07 · Traffic and capacity

Caching

A 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 caching
08 · Traffic and capacity

CDN

A 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 cdn
09 · Service boundaries

API gateway

An 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 gateway
10 · Service boundaries

Rate limiting

Rate 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 limiting
11 · Service boundaries

Circuit breaker

A 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 breaker
12 · Asynchronous work

Message queues

A 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 queues
13 · Asynchronous work

Event-driven architecture

In 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 architecture
14 · Data and consistency

Database replication

Replication 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 replication
15 · Data and consistency

Database sharding

Sharding 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 sharding
16 · Data and consistency

Data partitioning

Partitioning 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 partitioning
17 · Service boundaries

Microservices

Microservices 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 microservices
18 · Service boundaries

Service discovery

Service 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 discovery
19 · Service boundaries

Reverse proxy

A 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 proxy
20 · Operations and recovery

DNS management

DNS 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 management
21 · Operations and recovery

Disaster recovery

Disaster 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 recovery
22 · Operations and recovery

Zero-downtime deployments

A 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 deployments
23 · Operations and recovery

Distributed tracing

Distributed 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 tracing
24 · Operations and recovery

Network segmentation

Network 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 segmentation
25 · Operations and recovery

Multi-region setup

A 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 setup

Bring the concepts together

Design 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.

  1. First release: 100 browsing requests/second and 5 booking attempts/second. Draw the client, application, database and optional receipt worker. Explain your seat-allocation invariant.
  2. Sale burst: 2,000 browsing requests/second and 100 booking attempts/second for ten minutes. Choose cacheable content, estimate replica headroom and bound the database/provider load.
  3. Failure drill: one zone fails and a payment response is lost. Show safe retries, pending outcomes, failover and the evidence you would inspect.
  4. Regional recovery: define RTO/RPO with the interviewer, compare active-passive with active-active and explain how you avoid double-selling the last seat.
Interview structure and assessment rubric

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.