Answer the question
In order to leave comments, you need to log in
How to connect to Socket.io server via API Gateway?
Good day to all. I have a question. There is a microservice architecture. All requests are accepted by the API Gateway. One of the services is the socket.io server (for messaging). How to connect to this server via API_Gateway??? I know how to do it directly, but what should the API Gateway connection look like? All other http requests API Gateway simply proxies. API Gateway is written in Node.js. Thanks in advance. If you need more information, ask in the comments_)
Answer the question
In order to leave comments, you need to log in
The api gateway should just proxy the websocket connection as if you were connecting directly.
But it seems to me that you are doing something wrong, there should be a queue system, in one place you write to the queue, in another place (web socket server) it is raked.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question