Can Message queues be used as a external service/using any endpoint ? #1035
-
I could understand below the use case of the message queues in the framework. Clients communicate directly with the server, and the server communicates directly with clients. The message queue is used internally when you have more than one server, as a way to coordinate operations such as broadcasts. To my understanding, For eg., if we can use KafkaManager to emit externally to the client by producing the message to Kafka internally and internally consumes the message and emit it to the client. (Correct me if I'm wrong here, as I have checked external emit is producing to the channel and with my custom python file which is already consuming the same channel could read the message)
My requirement :
Also, I just want to ask one last question. Today I have been stress testing the server with gevent async_mode .Due to multiple clients with CPU load. I have divided it into three different machines and ran the client on 3 processors on a single server. I see the server is going to a hung state when I started a background task after certain client connections. It is going to the hung state during emitting and it's closing the client connections? It works when I ran the client on 1 processor. When I have changed the async_mode to eventlet. It works. Please give your ideas on this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
No, I don't think you understood. The bottom line is that there is nothing that this package does with the message queue that can help your application. You provide a queue, and this package uses it exclusively for internal purposes. There is absolutely nothing of use for you in the use of the queue. If you need a queue for your application, you can use one, even the same that you provide to this package, as long as you use a different channel for your needs. |
Beta Was this translation helpful? Give feedback.
No, I don't think you understood. The bottom line is that there is nothing that this package does with the message queue that can help your application. You provide a queue, and this package uses it exclusively for internal purposes. There is absolutely nothing of use for you in the use of the queue.
If you need a queue for your application, you can use one, even the same that you provide to this package, as long as you use a different channel for your needs.