Using a Web Socket would help us deal with it. Using Web Sockets we can get a real-time feel of getting updates in our web app.
Now the question arises why couldn't we use our usual flask app for it?
For that, you need to know about Polling and Streaming – Concept & Scenarios
Usually, the Flask app works on WSGI which needs to request every time the data from the server. We will use ASGI to avoid requesting the data every time.
Get a quick idea on the working of it from the resources below:
Using a Web Socket would help us deal with it. Using Web Sockets we can get a real-time feel of getting updates in our web app. Now the question arises why couldn't we use our usual flask app for it? For that, you need to know about Polling and Streaming – Concept & Scenarios
Usually, the Flask app works on WSGI which needs to request every time the data from the server. We will use ASGI to avoid requesting the data every time.
Get a quick idea on the working of it from the resources below: