Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between polling and pulling?

What's the difference between polling and pulling (if any)?

like image 834
dontWatchMyProfile Avatar asked May 03 '10 21:05

dontWatchMyProfile


People also ask

What does it mean to poll a server?

It is defined as the process when a client requests a particular piece of data at regular intervals (maybe every x seconds) and the server reverts with a usual response with the required data.

What is long polling?

Start Learning. HTTP Long Polling is a technique used to push information to a client as soon as possible on the server. As a result, the server does not have to wait for the client to send a request. In Long Polling, the server does not close the connection once it receives a request from the client.


3 Answers

They're two distinct words. To "poll" is to ask for an answer. To "pull" is to use force to move (actually or conceptually) something towards oneself (again, actually or conceptually).

One "polls" a server when software on a client periodically asks the server for something. One "pulls" data from a database towards client software.

Note that both words have various distinct uses even within the world of computing, but I can't think of any case where they're interchangeable in such a way as to leave meaning unchanged. Low-level device driver code may "poll" an interface to check whether it's ready for some operation, and there's no network traffic involved. In electronics, one "pulls" a signal up or down.

Clients may both "poll" a server and "pull" data from a server, but note that when I use each verb I use different direct objects. It only makes sense to say "pull the server" when you're dragging it across the computer room floor.

like image 116
Pointy Avatar answered Sep 30 '22 00:09

Pointy


Poll is like when Gallup does a poll of the American people. They are querying for specific information by asking a question.

Pull is like what you do to a rope. You want the rope (or a file, or some data) to be in your location, so you pull it towards you.

like image 24
mathmike Avatar answered Sep 30 '22 00:09

mathmike


There is a possible slight difference.

Polling is attempting to request information at set intervals.

Pulling just refers to the fact that you are requesting data from somebody else rather than having them send it to you.

That being said, I've heard them used interchangeably.

like image 23
Justin Niessner Avatar answered Sep 30 '22 00:09

Justin Niessner