L
L
LakeForest2021-08-18 00:40:33
Software design
LakeForest, 2021-08-18 00:40:33

How to send response from another service (docker container) to user's socket?

I am creating a socket connection.
The user sends a text.
The socket server receives the text and sends it to another container for processing.
The user is waiting for a response.
Another container processed the user's text.
How to return a response to a client socket?

Several users. If one user sends a message, while True will wait for another server (container) to respond, and the second user will immediately connect, won't the socket method hang? Will the second user also be able to send a request?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question