socketcluster
socketcluster copied to clipboard
Can I use SocketCluster to connect microservices?
Hi there! I have a system made of multiple microservices that run independently on different processes or machines. On the other side I have many devices connected to my system via SocketCluster for realtime communication. Some of those microservices have hight rate of update so I decided to publish those updates from microservices to end devices via SocketCluster channels. What I really don't know is that how can I connect those microservices to SocketCluster with a high performance connection. I prefer to avoid HTTP API on worker, because rate of updates is high and HTTP has overhead. Is it a good practice to connect Microservices to SocketCluster like a normal client? Or you suggest another options? I'm confused if I use microservices as normal clients then how can I separate my microservices from end devices so that only microservices are allowed to publish on channels. Thanks!