PrepCity

Design an ad click aggregator

Open the lab

By the last page, this is the design you will have built. Drag it, or Show all, to see every part.

Lesson · 13 pages · about 12 min

Design an ad click aggregator

Count a billion clicks a day per ad per minute: redirect first, log every click, count in memory and write once a minute, then make the bill exact overnight.

Words you’ll learn

  • Dashboard
  • Capacity
  • Database
  • Event
  • Request
  • API
  • Redirect
  • PostgreSQL
  • Millisecond
  • Kafka

Page by page