Bad batch

  • Build
  • Flow 14

Difficulty 4 of 5

A supplier sends 1,000 price updates/s. Ingest writes each one to the catalog database and the search index. At 0:20 a bad batch starts: for 15 s, 40 percent of the prices are in cents, not euros. Keep 0 bad prices in the shop, errors under 0.1 percent and p99 under 2 s.

Play level

HTTP/2SQLHTTP/2Partner apps1,000 req/sAPI server2 vCPU · 2 GBPostgres2 vCPU · 8 GBSearch index2 vCPU · 8 GB
HTTP/2SQLHTTP/2Partner apps1,000 req/sAPI server2 vCPU · 2 GBPostgres2 vCPU · 8 GBSearch index2 vCPU · 8 GB
The board at the start of the level
Each worker adds one network cardDrag or use arrow keys to change the workers

2 workers · 1 TB moves in 1.1 h · 1,000 Mbps per card

Goals and limits

Data mismatches
none
Error rate
under 0.1%
p99 latency
under 2 s
Monthly cost
under 120 USD/mo
Parts you can add
Stream processor, Worker, Message broker
Part limit
2
Traffic
1,000 req/s

Concepts

How players did

Player results load from the server.