# Polling

> The browser asks the server, is there news? It asks again and again.

**Field:** Software Development  
**Category:** Web Development  
**Also known as:** Long Polling, Short Polling, HTTP Polling

## Think of it like

Think of it like a child in a car asking, are we there yet? every few minutes.

## Definition

Polling means the browser asks the server for news on a timer. Every few seconds it sends a request. The server answers with new data, or with nothing. It is simple and works in all browsers, but most requests come back empty. Long polling is a smarter version: the server holds each request open until it has news. Both are older ways to get live updates.

## Example

Jack's first version checked for new orders every 10 seconds. With 1,000 shop owners online, that was 100 requests a second, mostly empty.

## Why it matters

Polling is the easiest way to get updates. Sometimes it is all you need.

## Common mistake

Asking each second for data that changes once an hour. It wastes battery, data and server power.

## Three principles

- **Ask on a timer.** Again and again.
- **Mostly empty.** Many requests bring nothing.
- **Long polling waits.** The server holds the request.

## Related terms

- [WebSocket](https://learn.benibix.com/term/development/websocket)
- [Server-Sent Events (SSE)](https://learn.benibix.com/term/development/server-sent-events)
- [Back End](https://learn.benibix.com/term/development/back-end)
- [Loop](https://learn.benibix.com/term/development/loop)
- [Automation Trigger](https://learn.benibix.com/term/development/automation-trigger)
- [Interrupt (Hardware)](https://learn.benibix.com/term/development/interrupt)

## Told apart from

- [Webhook vs Polling](https://learn.benibix.com/compare/webhook-vs-polling): With a webhook, the other service calls you as soon as something happens. With polling, you keep asking it if anything has changed. Webhooks are faster and use less, but your server must be open to the web.

---

Source: https://learn.benibix.com/term/development/polling
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
