educative.io

Educative

Excessive Pulling

The client pulls the data from the server whenever it requires. And it keeps doing it over and over to fetch the updated data.

An important thing to note here is that every request to the server and the response to it consumes bandwidth. Every hit on the server costs the business money & adds more load on the server.

What if there is no updated data available on the server, every time the client sends a request?

The client doesn’t know that, so naturally, it would keep sending the requests to the server over and over. This is not ideal & a waste of resources. Excessive pulls by the clients have the potential to bring down the server.

Does this only refer to when the client is fetching data dynamically? What if the user keeps triggering an event that sends a HTTP GET request to the server? Wouldn’t that also cause a waste of resources?

@Nedu_Robert

Yes, manually requesting data over and over when the server doesn’t have any new information is also a waste of resources. This process consumes bandwidth and piles up the unwanted load on the servers. To tackle this we use web-hooks. I’ve discussed it in a separate lesson.

2 Likes