Interview practice question
Real-time order count per city
System Design · Messaging and Queues · Intermediate
The business wants a live count of orders per city for the last 5 minutes, updated every few seconds. How would you build it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Orders published to Kafka.
- Stream processor (Flink/Kafka Streams).
- Sliding/tumbling windows keyed by city.
- Output to fast store (Redis).
- Dashboard reads store.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.