Socket.io: Connect from one server to another

后端 未结 6 1100
星月不相逢
星月不相逢 2020-12-16 15:36

I\'m trying to make a nodejs(socket.io) server to communicate with another one. So the client emits an event to the \'hub\' server and this server emits an event to some sec

6条回答
  •  猫巷女王i
    2020-12-16 15:54

    For Server to Server or App to App communication, I think you should look into Redis Pub-sub. Its capable of very good speeds, and can handle the entire message queuing architecture of a big app.

    Here is a slightly complex but quite understandable example for using Redis Pub Sub: Redis Pub Sub Example

提交回复
热议问题