Closed edwardyoon closed 5 years ago
It'd be nice if we can get number of total clients in single chatroom on distributed machines like below:
/** * returns the number of total clients in chatroom of given id. */ def getNumOfClients(int chatRoomID)
My simple idea is using Redis's INCR (https://redis.io/commands/incr). We can in/decrement the count when WebSocket connection is established.
It'd be nice if we can get number of total clients in single chatroom on distributed machines like below:
My simple idea is using Redis's INCR (https://redis.io/commands/incr). We can in/decrement the count when WebSocket connection is established.