Discussion about this post

User's avatar
Surinder's avatar

Question: why do we need to maintain two different mappings, 2 user chats and group chats. They are essentially the same.

Anubhav Gupta's avatar

Hi, Thanks

In case of multiple web socket servers ( 1:1 either via group or private) :

u1 → GW1 , u2 → GW2 , u1 → send → u2 or chat server → u1.

are we maintaining user : server mapping ( then calling via some sync way) or how are we doing that ? ( in outbound ). or we have multiple queues (or topic in kafka) for each server :? , If yes what about if any server get fails something ?

considering having ~300k peak qps.

2 more comments...

No posts

Ready for more?