Communication between servers #1534
Replies: 3 comments 1 reply
-
Personal Tips: When I need scaling, I used a message broker in this case, Redis pub/sub, another alternative will be RabbitMQ, but Redis pub/sub can do the job very well. In my case, I need a client because I want to use UNIX domain socket to communicate internally, without any other library. If you cannot use a message broker, I suggest you look in some other native libraries like libwebsockets and do some benchmarks, load tests to see if you can rely on it for client, until uWS get the client working. libwebsockets supports libuv and I use libuv a lot in my projects this is why that is my temporary alternative to uWS for client. Also I can build it with borringssl with is also my option for SSL when using uWS server. For sure uWS will perform better than libwebsockets. That's why I will wait and try to contribute when I have more free time. See #1503 If you want direct communication between 2 servers you need a Client and a Server, uWS provides only a Server for now, so the indication about libwebsockets remains until uWS Clients is released. |
Beta Was this translation helpful? Give feedback.
-
@cirospaciari Thanks in advance |
Beta Was this translation helpful? Give feedback.
-
I did not understand your question, if you want to mock or trigger you can keep the process in a separate function and manually call it. Edit: as recommended before you can also communicate between servers using Redis pub/sub or RabbitMQ. |
Beta Was this translation helpful? Give feedback.
-
I opened this discussion to keep these questions out of the issue.
@HagaiVinik comment on the issue https://github.com/uNetworking/uWebSockets/issues/1527 the following:
"I am trying to use the uWS library somehow and make it generate a connection with a other server.
Do you have any suggestions regarding this mechanism?"
Beta Was this translation helpful? Give feedback.
All reactions