Tagged articles
48 articles
Page 1 of 1
Sanyou's Java Diary
Sanyou's Java Diary
Jul 28, 2025 · Backend Development

Pick the Right Real‑Time Communication: Short Polling, Long Polling, WebSocket, SSE

This article compares four real‑time communication techniques—short polling, long polling, WebSocket, and Server‑Sent Events—detailing their protocols, advantages, disadvantages, latency, resource consumption, and typical use cases, and provides guidance on selecting the most suitable method for different application requirements.

Backend DevelopmentSSElong polling
0 likes · 6 min read
Pick the Right Real‑Time Communication: Short Polling, Long Polling, WebSocket, SSE
Top Architect
Top Architect
Jul 12, 2025 · Cloud Native

How Nacos Implements Long‑Polling for Dynamic Config Updates

This article explains Nacos Config Center's long‑polling mechanism, detailing both client‑side scheduling and server‑side handling, with code walkthroughs, architecture diagrams, and the flow of configuration change detection and notification.

Configuration ManagementJavalong polling
0 likes · 18 min read
How Nacos Implements Long‑Polling for Dynamic Config Updates
Code Ape Tech Column
Code Ape Tech Column
Jul 4, 2025 · Backend Development

How Nacos Implements Long‑Polling for Config Synchronization

This article explains the inner workings of Nacos' configuration center, detailing the client‑side long‑polling mechanism, the server‑side handling of listener requests, and the key classes and code paths that enable real‑time config updates in microservice environments.

BackendConfiguration CenterJava
0 likes · 13 min read
How Nacos Implements Long‑Polling for Config Synchronization
Programmer DD
Programmer DD
May 16, 2025 · Backend Development

Choosing the Right Real‑Time Web Technique: SSE, WebSocket or Long Polling?

This article compares three classic real‑time web technologies—Server‑Sent Events, WebSocket, and Long Polling—explaining their principles, Spring Boot implementations, advantages, disadvantages, and suitable scenarios to help developers select the optimal solution for live data updates.

BackendReal-TimeSSE
0 likes · 6 min read
Choosing the Right Real‑Time Web Technique: SSE, WebSocket or Long Polling?
IT Services Circle
IT Services Circle
May 7, 2025 · Backend Development

Understanding RocketMQ Long‑Polling Mechanism and Its Implementation

This article explains how RocketMQ implements long‑polling for message consumption, detailing the pull‑based model, the broker and consumer timeout settings, the internal suspension of pull requests, and the processing loop that resumes suspended requests to improve efficiency.

BackendBrokerConsumer
0 likes · 7 min read
Understanding RocketMQ Long‑Polling Mechanism and Its Implementation
Su San Talks Tech
Su San Talks Tech
Apr 25, 2025 · Backend Development

Which Real‑Time Communication Method Is Right for Your App? Short Polling, Long Polling, WebSocket, or SSE

This article compares four real‑time communication techniques—short polling, long polling, WebSocket, and Server‑Sent Events—detailing their advantages, drawbacks, latency, resource consumption, and ideal use cases to help developers choose the most suitable solution for their applications.

Backend DevelopmentSSElong polling
0 likes · 7 min read
Which Real‑Time Communication Method Is Right for Your App? Short Polling, Long Polling, WebSocket, or SSE
Java Backend Full-Stack
Java Backend Full-Stack
Apr 8, 2025 · Backend Development

Interview Question: Designing a Service Registry

The article walks through the need for a service registry in a micro‑service scenario, explains how services register and discover each other, discusses high‑availability deployment, and compares push, pull, and long‑polling mechanisms for dynamic detection of service instances.

Microserviceshigh availabilitylong polling
0 likes · 10 min read
Interview Question: Designing a Service Registry
ITPUB
ITPUB
Dec 14, 2024 · Backend Development

Why Can’t Servers Push Data? Exploring HTTP Polling, Long Polling, and WebSocket

This article explains why traditional HTTP cannot let servers initiate messages, compares periodic HTTP polling and long polling as workarounds, and introduces the full‑duplex WebSocket protocol—including its handshake, frame format, and typical use cases such as web games and real‑time chat.

HTTPServer PushWebSocket
0 likes · 15 min read
Why Can’t Servers Push Data? Exploring HTTP Polling, Long Polling, and WebSocket
Top Architect
Top Architect
Oct 7, 2024 · Cloud Native

Understanding Nacos Configuration Center Long‑Polling Mechanism

This article explains how Nacos’s ConfigService initiates a long‑polling task on the client side, how the client periodically checks for configuration changes, and how the Nacos server processes long‑polling requests, detailing the relevant classes, methods, and code flow.

Cloud NativeConfiguration CenterJava
0 likes · 14 min read
Understanding Nacos Configuration Center Long‑Polling Mechanism
Architect
Architect
Sep 2, 2024 · Cloud Native

How Nacos Implements Long‑Polling for Real‑Time Configuration Updates

This article dissects Nacos' configuration center long‑polling mechanism, detailing the client‑side initialization, thread‑pool scheduling, cache handling, and server‑side request processing, while illustrating the flow with code snippets and diagrams to help developers understand real‑time config synchronization.

Configuration CenterJavaNacos
0 likes · 15 min read
How Nacos Implements Long‑Polling for Real‑Time Configuration Updates
Selected Java Interview Questions
Selected Java Interview Questions
Aug 25, 2024 · Backend Development

Understanding Nacos Configuration Center Long‑Polling Mechanism and Its Implementation

This article explains the principles and source‑code flow of Nacos configuration center’s long‑polling mechanism, detailing how the client initiates periodic tasks, how the server processes listener requests, and how configuration changes are detected and propagated through various internal classes and threads.

BackendConfiguration CenterJava
0 likes · 10 min read
Understanding Nacos Configuration Center Long‑Polling Mechanism and Its Implementation
JavaEdge
JavaEdge
Jun 10, 2024 · Backend Development

How Nacos Implements Long Polling with AsyncContext – A Deep Dive

This article walks through Nacos's LongPollingService source code, showing how it extracts headers, calculates timeouts, detects configuration changes, enforces connection limits, and uses Servlet 3.0 AsyncContext to handle long‑polling without blocking threads.

AsyncContextBackend DevelopmentJava
0 likes · 6 min read
How Nacos Implements Long Polling with AsyncContext – A Deep Dive
Su San Talks Tech
Su San Talks Tech
May 28, 2024 · Backend Development

Mastering Web Push: 6 Real‑World Strategies from Short Polling to SSE and WebSocket

This article walks through six practical web‑push techniques—including short polling, long polling, iframe streaming, Server‑Sent Events, MQTT, and WebSocket—explaining their principles, trade‑offs, and providing complete Spring Boot and JavaScript code samples to help developers implement real‑time notification badges.

JavaServer-Sent EventsSpring Boot
0 likes · 18 min read
Mastering Web Push: 6 Real‑World Strategies from Short Polling to SSE and WebSocket
Java High-Performance Architecture
Java High-Performance Architecture
Dec 27, 2023 · Backend Development

How Nacos Implements Long‑Polling: Deep Dive into Client & Server Mechanics

This article explains the inner workings of Nacos' long‑polling mechanism, covering both client‑side scheduling and server‑side handling, with detailed code walkthroughs, architectural diagrams, and insights into how configuration changes are detected and propagated in a distributed system.

Backend DevelopmentConfiguration CenterJava
0 likes · 17 min read
How Nacos Implements Long‑Polling: Deep Dive into Client & Server Mechanics
Code Ape Tech Column
Code Ape Tech Column
Dec 20, 2023 · Backend Development

Understanding Nacos Configuration Center Long‑Polling Mechanism: Client and Server Implementation

This article provides a detailed walkthrough of Nacos' configuration center long‑polling mechanism, explaining how the client initializes ConfigService, schedules periodic checks, processes configuration changes, and how the server receives listener requests, manages long‑polling tasks, and triggers change events, all illustrated with code snippets and diagrams.

BackendConfigurationJava
0 likes · 12 min read
Understanding Nacos Configuration Center Long‑Polling Mechanism: Client and Server Implementation
Top Architect
Top Architect
Oct 12, 2023 · Backend Development

Design and Optimization of a High‑Performance Live‑Streaming Danmaku System

This article details the design and optimization of a high‑throughput live‑streaming danmaku system, covering background requirements, bandwidth challenges, short‑polling versus WebSocket delivery, compression and frequency controls, service splitting with caching and lock‑free ring buffers, and reports successful handling of 700 k concurrent users during a major event.

Backend ArchitectureScalabilitydanmaku
0 likes · 13 min read
Design and Optimization of a High‑Performance Live‑Streaming Danmaku System
Sohu Tech Products
Sohu Tech Products
Jul 19, 2023 · Backend Development

Understanding RocketMQ Consumption Logic in Version 4.9.x

This article provides a comprehensive walkthrough of RocketMQ 4.9.x consumption architecture, covering the four core roles, publish‑subscribe model, storage structures, load‑balancing, long‑polling, concurrent and ordered consumption flows, progress persistence, and retry mechanisms, with illustrative diagrams and code snippets.

ConsumerDistributed SystemsMessage Queue
0 likes · 28 min read
Understanding RocketMQ Consumption Logic in Version 4.9.x
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
May 25, 2023 · Backend Development

Building Real-Time IM Solutions with WebSocket: A Practical Guide

The guide walks through building a real‑time instant‑messaging system—using a multiplayer monster‑battle demo—to compare polling, long‑polling, SSE and WebSocket, explains the WebSocket handshake and frame format, shows a custom Node.js server implementation, and advises adopting mature IM SDKs for production.

Instant MessagingNode.jsSSE
0 likes · 23 min read
Building Real-Time IM Solutions with WebSocket: A Practical Guide
JavaScript
JavaScript
Apr 27, 2023 · Frontend Development

Master Real-Time Frontend: Long Polling vs Server-Sent Events Explained

Explore how long polling and Server‑Sent Events enable real‑time data exchange in front‑end development, comparing their principles, advantages, drawbacks, and providing practical JavaScript examples to help you choose the optimal technique for your application.

JavaScriptServer-Sent Eventsfrontend development
0 likes · 5 min read
Master Real-Time Frontend: Long Polling vs Server-Sent Events Explained
Selected Java Interview Questions
Selected Java Interview Questions
Jan 17, 2023 · Backend Development

Design and Optimization of a High‑Performance Bullet Chat System for Southeast Asian Live Streaming

This article details the design, bandwidth optimization, and reliability strategies of a custom bullet‑chat system for Southeast Asian live streaming, covering background challenges, problem analysis, compression, request throttling, long‑polling versus WebSocket trade‑offs, and a short‑polling solution that successfully supported 700 k concurrent users.

BackendWebSocketbullet-chat
0 likes · 10 min read
Design and Optimization of a High‑Performance Bullet Chat System for Southeast Asian Live Streaming
Top Architect
Top Architect
Jan 13, 2023 · Backend Development

Design and Optimization of a High‑Performance Live‑Streaming Danmaku System

This article describes the design, challenges, and optimization strategies of a custom live‑streaming danmaku system for Southeast Asian markets, covering bandwidth constraints, latency issues, long‑polling versus WebSocket approaches, service splitting, caching, and a ring‑buffer implementation that supported 700 k concurrent users during a major sales event.

BackendWebSocketdanmaku
0 likes · 11 min read
Design and Optimization of a High‑Performance Live‑Streaming Danmaku System
Architecture Digest
Architecture Digest
Jan 6, 2023 · Backend Development

Design and Optimization of a High‑Performance Danmu System for Southeast Asian Live Streaming

This article presents a detailed case study of designing a high‑throughput danmu (bullet‑screen) system for Southeast Asian live streaming, analyzing bandwidth constraints, latency issues, and evaluating long‑polling, WebSocket, and short‑polling approaches, ultimately describing the chosen short‑polling solution, service partitioning, caching, and ring‑buffer techniques to achieve stable performance for millions of concurrent users.

WebSocketbandwidth optimizationlong polling
0 likes · 12 min read
Design and Optimization of a High‑Performance Danmu System for Southeast Asian Live Streaming
Sanyou's Java Diary
Sanyou's Java Diary
Aug 8, 2022 · Backend Development

How RocketMQ Achieves Smart Push Consumption with Long Polling

This article explains RocketMQ's push and pull consumption modes, shows how its pseudo‑push implementation uses long polling to balance real‑time delivery and consumer pressure, and walks through the core source‑code mechanisms that hold and resume pull requests.

BackendRocketMQconsumer pressure
0 likes · 10 min read
How RocketMQ Achieves Smart Push Consumption with Long Polling
Wukong Talks Architecture
Wukong Talks Architecture
Jul 15, 2022 · Backend Development

Understanding Nacos Configuration Center: Pull Model, Long Polling, and Source Code Analysis

This article explains how Nacos configuration center works, clarifies that it uses a client‑initiated pull (long‑polling) model rather than push, and walks through key client and server source code components—including cacheMap, listeners, long‑polling handling, and configuration change notification – to help developers and interviewees master its internals.

Configuration CenterJavaNacos
0 likes · 17 min read
Understanding Nacos Configuration Center: Pull Model, Long Polling, and Source Code Analysis
Code Ape Tech Column
Code Ape Tech Column
Jul 14, 2022 · Cloud Native

Understanding Nacos Long‑Polling Mechanism in Spring Cloud Alibaba

This article explains the internal long‑polling mechanism of Nacos configuration center used in Spring Cloud Alibaba, covering client‑side initialization, thread‑pool scheduling, request handling, server‑side processing, event listening, and code snippets that illustrate how configuration changes are detected and propagated.

Config ServiceJavaMicroservices
0 likes · 13 min read
Understanding Nacos Long‑Polling Mechanism in Spring Cloud Alibaba
Java Interview Crash Guide
Java Interview Crash Guide
Mar 29, 2022 · Cloud Native

How to Build a Scalable Service Registry for Microservices

This article explains how to design a service registry that enables service registration, discovery, high availability, and dynamic handling of service instances in a microservice architecture, covering registration methods, consumer/provider interaction, push/pull mechanisms, long‑polling, and heartbeat health checks.

Microserviceshigh availabilitylong polling
0 likes · 8 min read
How to Build a Scalable Service Registry for Microservices
IT Architects Alliance
IT Architects Alliance
Jul 29, 2021 · Cloud Computing

An Overview of Tencent Cloud Message Queue (CMQ): Architecture, Features, and Practical Use Cases

This article introduces Tencent Cloud Message Queue (CMQ), explains its underlying architecture and reliability mechanisms, compares it with Kafka and RabbitMQ, and demonstrates several practical scenarios such as broadcast‑pull model, long‑polling, delayed messages, message rewind, topic routing, large‑message handling, and encryption, accompanied by Python SDK code examples.

CMQMessage EncryptionMessage Queue
0 likes · 11 min read
An Overview of Tencent Cloud Message Queue (CMQ): Architecture, Features, and Practical Use Cases
Alibaba Cloud Developer
Alibaba Cloud Developer
Feb 17, 2021 · Backend Development

How Long Polling Powers Real‑Time Config Updates in Nacos & Apollo

This article explains the principles of long polling used by configuration centers like Nacos and Apollo, compares it with traditional polling and push models, and provides a complete Java demo showing client and server implementations for dynamic configuration updates.

ApolloBackend DevelopmentConfiguration Center
0 likes · 17 min read
How Long Polling Powers Real‑Time Config Updates in Nacos & Apollo
Efficient Ops
Efficient Ops
Sep 6, 2020 · Backend Development

Why Keep-Alive Isn’t Enough: From Ajax Polling to WebSocket Mastery

This article explains the limits of HTTP keep-alive, compares Ajax polling and long‑polling techniques for server push, and then details how the WebSocket protocol establishes a full‑duplex connection through a handshake and data‑transfer phase.

HTTPKeep-AliveWebSocket
0 likes · 7 min read
Why Keep-Alive Isn’t Enough: From Ajax Polling to WebSocket Mastery
21CTO
21CTO
Feb 14, 2020 · Backend Development

How QR Code Login Works Behind the Scenes: From WeChat to Taobao

This article explains the technical workflow of QR code login, covering the generation of UUIDs, QR images, server‑side Redis storage, mobile‑side token verification, long‑polling mechanisms, and the concrete implementations used by WeChat and Taobao, providing a complete reference for developers building similar authentication features.

QR loginTaobaoWeChat
0 likes · 16 min read
How QR Code Login Works Behind the Scenes: From WeChat to Taobao
政采云技术
政采云技术
Nov 20, 2019 · Frontend Development

WebSocket Fundamentals and a Simple One‑to‑One Chat Implementation

This article explains the limitations of short and long polling, introduces the WebSocket protocol and its handshake mechanism, and provides complete client‑side and Node.js server code to build a basic real‑time chat application with heartbeat keep‑alive support.

Node.jsPollingWebSocket
0 likes · 11 min read
WebSocket Fundamentals and a Simple One‑to‑One Chat Implementation
Java Backend Technology
Java Backend Technology
Apr 11, 2019 · Backend Development

Why Spring Cloud Config Falls Short and How We Rebuilt It with Long Polling

This article examines the limitations of Spring Cloud Config—especially Git‑based permission control and coarse granularity—explains why a database‑backed configuration center is preferable, and details a custom long‑polling refresh mechanism built with Spring's DeferredResult and asynchronous servlets.

Backend DevelopmentConfiguration CenterDeferredResult
0 likes · 10 min read
Why Spring Cloud Config Falls Short and How We Rebuilt It with Long Polling
21CTO
21CTO
Mar 18, 2019 · Frontend Development

Mastering Real-Time Web Push: From Polling to WebSocket

This article reviews the evolution of web real‑time push techniques—polling, long‑polling, iframe streaming—and explains why WebSocket offers superior bidirectional communication, lower latency, and reduced bandwidth, while providing practical code examples for each method.

PollingWebSocketfrontend
0 likes · 12 min read
Mastering Real-Time Web Push: From Polling to WebSocket
Programmer DD
Programmer DD
Mar 9, 2019 · Cloud Native

How Nacos Enables Dynamic Configuration Management: A Step‑by‑Step Guide

This article walks through setting up Nacos for dynamic configuration, covering server installation, compiling from source, starting the service, creating and modifying configuration items, and explaining the client’s long‑polling mechanism that pulls updates and triggers listeners, with detailed code snippets and diagrams.

Config ServiceDynamic Configurationlong polling
0 likes · 14 min read
How Nacos Enables Dynamic Configuration Management: A Step‑by‑Step Guide
Ctrip Technology
Ctrip Technology
Oct 12, 2017 · Frontend Development

Comparison of Web Push Technologies and Practical Implementation for Real‑Time Order Notifications

This article compares common web push techniques—including short polling, long polling, iframe streaming, WebSocket, and Server‑Sent Events—examining their principles, advantages, and drawbacks, and presents a practical selection and implementation case for real‑time order notifications in a client‑server application.

Server-Sent EventsWebSocketlong polling
0 likes · 10 min read
Comparison of Web Push Technologies and Practical Implementation for Real‑Time Order Notifications
Architect
Architect
Nov 12, 2015 · Backend Development

Server Push (Comet) Techniques: Comparison, Implementation, and Best Practices

This article examines server‑push technologies such as Comet, comparing plugin‑based socket approaches with HTTP long‑connection methods like AJAX long‑polling and iframe/htmlfile streaming, and provides practical guidance on building robust Comet applications using frameworks such as Pushlet.

CometHTTPServer Push
0 likes · 19 min read
Server Push (Comet) Techniques: Comparison, Implementation, and Best Practices