-
Hi I am trying to implement a real time service. So the most commonly used uWebsocket.js recently supported pubsub, but I know it needs a client for server-to-server synchronization (though I'm not sure if I'm wrong) Currently, it is used as pubsub embedded in other key value db. In short [ uws pubsub broker ]
[ uws / ws ] [ uws / ws ] [ ... ] [ ... ] I'm not sure yet |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can use Redis pub/sub between servers and then uWS pub/sub as the browser-facing pub/sub. Don't overuse Redis though, I've seen companies with this set-up where they had 1-to-1 subscription (one Redis subscription for every browser client). That had horrible performance. That's my two cents. |
Beta Was this translation helpful? Give feedback.
You can use Redis pub/sub between servers and then uWS pub/sub as the browser-facing pub/sub. Don't overuse Redis though, I've seen companies with this set-up where they had 1-to-1 subscription (one Redis subscription for every browser client). That had horrible performance. That's my two cents.