How can data in an app update in real time?
For this, the server sends updates to the client itself without waiting for a request: via WebSocket, a server event stream or push notifications. This is how chats, order statuses and exchange rates work. For data that changes rarely, periodic polling of the server is enough.
More in the guide application back end; send a request on the development page.