Communication techniques:
Short polling.
Long polling.
Web sockets.
Server-sent events.
Web Hooks.
Short polling: Short polling means the client makes a request to the server for some interval and gets the response from the server(keep making requests ).
- Keep on pinging and get the real-time data.
- You keep on making requests at certain intervals, and you get data, but the data may be updated or not. Depending on whether you make unnecessary network calls because you don't know whether the client will update the data, will be updated.
- short-lived connection.
- No persistent connection.
- less resource utility.
- problem with scale (if the user base increases, this can become a problem)
Use case:
Real-time system.
Notification
Crickinfo
Analytics