SIM//LOAD

Home › Scenarios › News feed

System design scenario

Design a news feed (like Facebook or X)

Intermediate

A social feed under a daily traffic wave. Feeds are assembled from a timeline cache, with a slow ranking API on the critical path.

▶ Simulate this design

The goal

Keep p99 < 300 ms and error rate < 0.10% at 200,000 req/s for 5s.

Peak load
200,000 requests per second
Traffic mix
95% reads, 5% writes
p99 latency
under 300 ms
Error rate
under 0.10%

The starting architecture

The simulator opens with this design. It is deliberately too weak for the goal: run it and watch which component saturates first.

How to approach it

The hints unlock one at a time in the app. Try the design yourself before reading them.

Show the hints
  1. The daily wave only reaches the target near its peak: watch the run around t = 60s.
  2. The ranking API is slow and small. Raise its capacity or cut its timeout and add retries.
  3. Turn on autoscaling for the feed service, but remember instances take time to boot.

What the simulator shows you

SimLoad models every component as a queue with real capacity, latency, timeouts and retries, so you see utilisation, p50/p99 latency, errors and monthly cost change as you scale. Insights name the bottleneck in plain language, and the capacity planner sizes the fix. A reference solution that meets the goal is verified by automated tests.

▶ Try it in the simulator

← All scenarios