python - Pushing notifications from a Django app with one server process -
I have a Django app provided by Gunicorn. I want to add WebSocket Notification to it, PostgreSQL as a message queue And want to add either gaget-socketio or torrenadio as a websoclock server.
  Can I use the same gonorrower process to serve WebSocket? Or, instead, do I use  SocketIOServer  of the gadget or  SocketServer  of Tornadoes?  
 Yes, you can use for example and only one for all requests The process is underway. The default socket-IO requests go to  /socket.io/  - You can also use the same URL for socket-requests, as well as for others, but assign them to sub-paths ( Such as for proxy configuration). 
But still it could mean doing a separate process to serve general HTTP requests (like some simple load balances etc ...).
Comments
Post a Comment