sse - flask应用中向mysql中插入数据时,如何通知某一个模块?
巴扎黑
巴扎黑 2017-04-17 16:39:45
0
1
507
巴扎黑
巴扎黑

reply all(1)
刘奇

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template