Long Polling — IT Glossary | ITU Online IT Training
+1 855.488.5327 customerservice@ituonline.com Mon – Fri: 9:00am – 5:00pm ET

Long Polling

Commonly used in Web Development

Ready to start learning?Individual Plans →Team Plans →

Long polling is a web application development pattern that allows servers to send data to clients asynchronously, effectively emulating real-time data push. Unlike traditional polling, where the client repeatedly asks the server for updates, long polling keeps the request open until the server has new data to send or a timeout occurs, providing a more efficient way to deliver real-time information.

How It Works

In long polling, the client sends a request to the server and waits for a response. The server holds the request open until it has new data available or a predetermined timeout period is reached. If new data becomes available, the server responds immediately with the data. The client then typically immediately sends a new long polling request to continue listening for updates. This process creates a near-continuous connection, reducing the need for frequent polling requests and lowering network overhead.

This approach differs from traditional short polling, where the client repeatedly sends requests at regular intervals regardless of data availability, which can lead to unnecessary network traffic and latency. Long polling maintains a single, persistent request until the server has data to send, making it more efficient for real-time applications.

Common Use Cases

  • Real-time chat applications where messages need to be delivered instantly to users.
  • Live notifications for social media updates or news feeds.
  • Stock trading platforms providing real-time market data updates.
  • Collaborative tools that sync document changes across users in real-time.
  • Online multiplayer games requiring low-latency data exchange.

Why It Matters

Long polling is important for IT professionals and developers who build real-time web applications, as it offers a practical way to deliver instant updates without the complexity of WebSockets or server-sent events. It helps improve user experience by reducing latency and network load, especially in environments where full-duplex communication protocols are not feasible. Understanding long polling is essential for preparing for certifications related to web development, networking, and cloud services, as it forms the foundation for many real-time data exchange strategies.

Ready to start learning?Individual Plans →Team Plans →
Discover More, Learn More
Understanding the Security Operations Center: A Deep Dive Discover how a Security Operations Center enhances your cybersecurity defenses, improves incident… What Is a Security Operations Center (SOC)? Discover what a security operations center is and how it enhances organizational… Step-by-Step Guide to Implementing a Security Operations Center in Your Organization Discover how to effectively implement a security operations center in your organization… Building a Security Operations Center: A Complete SOC Setup Blueprint Discover how to build a comprehensive Security Operations Center to enhance cybersecurity… Understanding SOC Functions: The Complete Guide to Security Operations Center Operations Discover how SOC functions support security monitoring, threat detection, and incident response… Counterintelligence and Operational Security in Cybersecurity: A Guide for CompTIA SecurityX Certification Discover essential strategies to enhance your cybersecurity skills by understanding counterintelligence and…