Engrain by ByteRush

SD.08.01 Mid-level

Scaling web services

Comes up in: Backend design, Frontend system design

This concept is being written. It gets the full five steps — explanation, predict, interview angle, practice with tests, and review cards. Here is exactly what it will cover, so you can study it elsewhere in the meantime.

What it covers

  • vertical vs horizontal scaling
  • stateless services
  • load balancers (L4 vs L7)
  • CDNs
  • autoscaling
  • serverless and edge functions trade-offs

Words you will know

horizontal scalingload balancerstatelessserverless

What you will practise

  • scale a simple API from 100 to 100k RPS (diagram)

Interview questions this answers

  • How would you scale a web application to millions of users?
  • Design a URL shortener.
  • Design a notification service that sends millions of messages a day.
  • Fan-out on write vs fan-out on read for a feed: trade-offs?
  • How do you scale WebSocket servers?