maxdraco

Polling

Checking something over and over on a timer to see whether it has changed, instead of waiting to be told.

Concept Programming and AI Networking

Polling means a program asks the same question again and again: is there new data, is the link still up, has anything changed? It is simple and dependable but wasteful, and when two programs poll the same thing at once they can get in each other’s way. The alternative is to be told when something happens, as with a Webhook.

See also

  • Webhook A way for one service to notify another of an event by sending it a web request.
  • WebSocket A web standard for a long-lived, two-way connection between a browser and a server.
  • Race condition A bug where the outcome depends on which of two things happens first.
  • AI Artificial intelligence: software that performs tasks usually thought to need human judgement.
  • API A defined way for one program to ask another for data or actions.
  • Endpoint (route) One specific address on a web service that a program can call to do one job.
  • Environment variable A named setting a running program inherits from whatever started it.
  • Exit code The number a program hands back when it finishes: zero for success, anything else for failure.

Sources

  1. RFC 6202: Known Issues and Best Practices for the Use of Long Polling and Streaming in Bidirectional HTTPIETFofficial healthy, checked 2026-11-15 archived copy
  2. Polling (computer science)Wikipedia healthy, checked 2026-11-15 archived copy