internalsGet Pro

System Design · Module 02

Networking, APIs and load balancing

Lessons
14
Free
2
Reading
~4 h

Your progress

0 / 14 lessons done

Sign in to track

Lessons

  1. TCP and UDP: reliable vs low-latency deliveryA slow request can come from the network, not your application. Understanding transport behavior helps you diagnose pauses, set deadlines and avoid unsafe retries.15 min
  2. DNS: how domain names resolve to IP addressesFreeA healthy application can still be unreachable because clients cannot find its address. DNS also determines how safely you can move traffic when infrastructure changes.15 min
  3. HTTP and HTTPS: how clients and servers communicateFreeWhen a page fails, you need to know whether the connection, secure channel or application failed. These boundaries also determine where you can inspect requests and which systems can read customer data.14 min
  4. HTTP/2 and HTTP/3: faster, multiplexed connectionsA slow page may be waiting for a connection, missing network data, or application work. Knowing the difference helps you choose a protocol change instead of adding servers that cannot fix the delay.18 min
  5. REST API design: resources, methods and status codesMobile networks lose responses, clients retry, and several devices can edit the same data. Your API contract determines whether those events produce a recoverable error or an unexpected purchase.15 min
  6. API versioning: changing APIs without breaking clientsMobile apps and partner integrations can outlive several server releases. You need to improve the API without making those clients misread data or stop working.18 min
  7. Pagination: offset vs cursor-basedList endpoints can repeat items, hide items or become slower as users browse deeper. Pagination connects the API contract to the database access path and the consistency users actually see.19 min
  8. gRPC: high-performance calls between servicesBackend components often use different languages and deploy separately. gRPC gives them a shared contract, but you still need to design validation, compatibility and failure behavior.18 min
  9. GraphQL: clients requesting exactly the data they needDifferent screens often need different combinations of the same data. GraphQL gives clients more control over those combinations, but makes backend work and partial failures important parts of API design.19 min
  10. Synchronous and asynchronous service communicationA slow dependency can make an otherwise healthy API feel broken. Separating immediate results from deferred work helps you control that dependency without hiding failures.19 min
  11. Load balancers: distributing traffic across serversAdding application servers only helps when traffic can reach them. You need to understand routing and failure handling before extra servers improve capacity or availability.15 min
  12. API gateways and load balancers: roles comparedBackend teams often inherit several proxies without clear ownership. Knowing each role helps you place security checks, avoid unnecessary network hops and diagnose failed requests.18 min
  13. Sticky routing with consistent hashingRouting related requests to one server can preserve useful local state. You need to understand what happens when that server disappears, the fleet grows, or one key attracts most of the traffic.19 min
  14. Design: a food delivery APIMobile APIs must handle lost responses, old clients and concurrent actions. Food delivery brings these problems together: a customer needs one dinner, the restaurant needs an unambiguous order, and every screen needs the same current state.30 min

Practise with

Terms this module teaches 57

Open glossary

API contract

The accepted requests, returned data and observable behavior that clients can depend on.