Realtime chat system
Prompt
Create a system design diagram for a realtime chat application: mobile and web clients, API gateway, auth service, websocket gateway, chat service, message store, Redis presence cache, Kafka for fan-out events, notification worker, and push notification provider.
Why this prompt works
It captures realtime messaging, storage, caching, and fan-out, which are the main moving parts interviewers expect in a chat system discussion.
Follow-up prompt
Add offline delivery path, unread count service, and multi-region considerations.