Example project whith asynchronius web interface, web- and zmq- sockets.
Illustate using SUB\PUB and PUSH\PULL zmq patterns, aiohttp websockets and python async features.
Parts of project are:
- websockets.html - web interface
- web_ws.py - web server
- back-srv.py - backend server
Brief description
- Initially events are generated by user's action.
- Browser sends them to web-server via websocket.
- Web-server pushes events to backend using ZeroMQ library.
- Backend server process events and publishes result for web-server.
- Web-server sends result to all users via websockets.
Single backend serves many web-servers, single web-server serves many web-clients.
Requires pyhton3.7 or higher.