HTTP is the most common methods of data transfer in client server-based architecture.
But there are two ways to data transfer: HTTP Push and HTTP Pull.
Pull API
In the HTTP pull method, the client sends a request to the server and the server responds to that request (and the connection is closed). The client pulls the data from the server whenever it requires (by creating a new connection). And it keeps doing it over and over to fetch the updated data
The disadvantage of the HTTP pull method is that if clients keep on periodically makes the pull request for updated data, but there are no updates at the server hence, every time the client will get the same result, bandwidth will be wasted and the server will be busy too.
Also, excessive pulls by the clients have the potential to bring down the server.
This is also called "Polling" and it's basically the same as refreshing your inbox every 5 minutes to check for new mail.
As a developer, if you want to find out whether an API has anything new for the user, you just need to call and ask.
Generally you can poll the API anytime, and as often as you like, but some larger applications typically have limits on how often they allow you to call their API.
Thanks for sharing useful information.
ReplyDeleteMulesoft Training
Mulesoft Online Training in Hyderabad