Tagged articles
EventSource
16 articles · Page 1 of 1
This article compares polling, WebSocket, and Server-Sent Events (SSE) for server-to-client real-time messaging, detailing SSE's lightweight HTTP-based design, automatic reconnection, and simpler server requirements, then provides a complete Node.js/Express and vanilla HTML/JavaScript demo.
EventSourceExpressHTTP Long Connection
0 likes · 13 min read

This article details implementing Server-Sent Events (SSE) in Spring Boot for real-time server-to-client push, covering SseEmitter endpoints, connection registry with cleanup, heartbeat, Last-Event-ID reconnection, cluster broadcasting via Redis Pub/Sub, Base64 binary transfer, and production tuning for Nginx and thread pools.
EventSourceRedis Pub/SubSSE
0 likes · 17 min read

The article compares polling, WebSocket, and Server‑Sent Events (SSE) for server‑to‑client real‑time messaging, explains each method’s mechanics, advantages and drawbacks, shows browser compatibility, outlines typical business scenarios, and provides a complete Node‑Express demo with code samples.
EventSourceExpressHTTP
0 likes · 12 min read

The article compares polling, WebSocket, and Server‑Sent Events for server‑to‑client real‑time messaging, explains the advantages and drawbacks of each, and provides a complete Node.js/Express and plain‑HTML demo showing how to implement SSE as a lightweight alternative to WebSocket.
EventSourceExpressNode.js
0 likes · 14 min read


java1234Mar 31, 2026 · Backend Development
The article compares polling, WebSocket, and Server‑Sent Events (SSE), explains why polling is inefficient, outlines the advantages and browser compatibility of SSE versus WebSocket, and provides step‑by‑step Node.js and HTML demos for implementing a real‑time push solution.
EventSourceExpressNode.js
0 likes · 12 min read

This article explains why the ChatGPT browser-based conversation system prefers EventSource over WebSocket, covering protocol basics, the system’s single‑direction communication model, long‑polling behavior, deployment simplicity, and includes full Node.js server and client code examples demonstrating the implementation.
EventSourceNode.jsWebSocket
0 likes · 9 min read

This article presents Ctrip's enterprise-grade Server-Sent Events (SSE) solution for its flight booking frontend, detailing the technology overview, use cases, implementation practices, performance considerations, comparison with alternatives, and full‑stack integration across link, framework, and data layers.
EventSourceNode.jsReal-time
0 likes · 16 min read

This article analyzes the reasons for preferring EventSource instead of WebSocket in a browser‑based ChatGPT chat system, covering protocol basics, system characteristics, advantages, code examples, performance trade‑offs, and future extensibility.
ChatGPTEventSourceNode.js
0 likes · 9 min read

This article explains how Server‑Sent Events (SSE) and the EventSource API enable real‑time, one‑way data streams in web pages, covering browser support, key features, client‑side usage, server implementation, data formatting rules, and practical tips for reliable deployment.
EventSourceReal-timeSSE
0 likes · 10 min read


JavaEdgeJun 8, 2024 · Frontend Development
This article explains the technical differences between Server‑Sent Events (EventSource) and WebSocket, compares their advantages, disadvantages, and suitable scenarios, and shows why ChatGPT’s streaming API prefers EventSource for server‑push communication.
ChatGPTEventSourceServer-Sent Events
0 likes · 9 min read

This article explains why the browser‑based ChatGPT conversation system prefers the lightweight EventSource API over WebSocket, detailing protocol differences, system characteristics, advantages, code implementations, performance considerations, and future extension possibilities.
EventSourceFrontend DevelopmentNode.js
0 likes · 9 min read

This article explains how Server‑Sent Events (SSE) enable real‑time, character‑by‑character responses like those seen in ChatGPT, compares SSE with WebSockets, and provides complete server‑side and client‑side code examples for implementing SSE in web applications.
EventSourceSSEServer-Sent Events
0 likes · 17 min read

This article explains how to use HTTP Server-Sent Events (SSE) as an alternative to WebSocket for one‑way data push, demonstrating a NestJS backend implementation with @Sse decorator and Observable streams, and a React frontend using EventSource to receive real‑time JSON messages, including handling logs and binary data.
BackendEventSourceNestJS
0 likes · 7 min read

The article compares EventSource and WebSocket, outlining their respective advantages, disadvantages, and appropriate use cases for server‑push versus bidirectional real‑time communication in web applications such as the ChatGPT interface.
EventSourceServer PushWebSocket
0 likes · 3 min read

This article explains how to use Server‑Sent Events (SSE) and the EventSource API to stream ChatGPT responses in real time, covering both browser‑side JavaScript examples and Node.js backend proxy code, along with configuration tips for Nginx and compatibility notes.
ChatGPTEventSourceNode.js
0 likes · 12 min read

The article explains how Server‑Sent Events (SSE) provide a lightweight, one‑way server‑to‑client push mechanism that avoids the complexity of WebSocket or polling, shows its protocol details, compares it with WebSocket, and demonstrates integration with Spring MVC and the browser EventSource API.
EventSourceSSEServer-Sent Events
0 likes · 6 min read
