R
R
razer962019-01-22 19:55:13
Redis
razer96, 2019-01-22 19:55:13

What is the socket.io-redis-adapter for?

Hi all. I have a simple question. I don't quite understand what Socket.io-redis-adapter is for? What role does the Redis database play?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Wolf, 2019-01-22
@razer96

When there is a heavy load, you need to split the websocket servers. After separation, it is more difficult to make broadcast distribution. And in order for one server to do it, you need to somehow get information about all the clients that are connected to all servers and send them a message. This is the information stored in redis. This is very simplified and short.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question