Hello.
Recently I met a problem when using multiple Python socket servers. I set up a redis
server as a client manager.
And I also use Eventlet as wsgi. So I learnt that in this case, monkey patching the Python standard library is normally required to force the message queue package to use coroutine friendly functions and classes.
Unfortunately, at some eventlet handlers of the socket io server, I use Pika to publish messages to queues. And after my research, Pika's BlockingConnection is not compatible with eventlet patching. ;(
I think there is no way to make monkey_patch work with Pika after my experiments.
So I am asking for suggestion by any change there would be a solution.
I am thinking using celery or background work. I don't have a clear solution or plan yet.
Thanks in advance if anyone could provide a hint.
Hello.
Recently I met a problem when using multiple Python socket servers. I set up a redis
server as a client manager.
And I also use Eventlet as wsgi. So I learnt that in this case, monkey patching the Python standard library is normally required to force the message queue package to use coroutine friendly functions and classes.
Unfortunately, at some eventlet handlers of the socket io server, I use Pika to publish messages to queues. And after my research, Pika's BlockingConnection is not compatible with eventlet patching. ;(
I think there is no way to make monkey_patch work with Pika after my experiments.
So I am asking for suggestion by any change there would be a solution.
I am thinking using celery or background work. I don't have a clear solution or plan yet.
Thanks in advance if anyone could provide a hint.