Interview practice question
Scaling Redis pub/sub for WebSocket servers
Backend Engineering · NoSQL and Redis · Experienced
You use Redis pub/sub to broadcast messages between 200 WebSocket servers, and Redis CPU is maxed. How do you scale it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Every message to every subscriber server.
- Sharded pub/sub (Redis 7) by channel.
- Subscribe only to needed channels.
- Partition by room/conversation.
- Consider Kafka/NATS for large scale.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.