This is not polling the message queue. It should be that your consumer subscribes to the queue and consumes messages when they are available. The key to your question is how to maintain the session between the front end and the back end. You can use the front end to poll the back end or maintain a long connection. flask should be able to implement long connections through gevent, take a look at this Flask-SocketIO
This is not polling the message queue. It should be that your consumer subscribes to the queue and consumes messages when they are available.
The key to your question is how to maintain the session between the front end and the back end. You can use the front end to poll the back end or maintain a long connection.
flask should be able to implement long connections through gevent, take a look at this Flask-SocketIO