Tagged articles

websocket

486 articles · Page 2 of 5
Alibaba Cloud Developer
Alibaba Cloud Developer
Sep 18, 2025 · Backend Development

Choosing the Right API Protocol: From RESTful to GraphQL, gRPC, WebSocket, and SSE

This article, based on the open‑source HiMarket project, systematically compares six mainstream API protocols—from classic RESTful and SOAP to modern GraphQL, microservice‑focused RPC frameworks, real‑time WebSocket, and streaming SSE—detailing their core concepts, technical traits, advantages, and ideal application scenarios.

APIGraphQLRESTful
0 likes · 17 min read
Choosing the Right API Protocol: From RESTful to GraphQL, gRPC, WebSocket, and SSE
Java Tech Enthusiast
Java Tech Enthusiast
Sep 6, 2025 · Backend Development

Build a Web SSH Client with Spring Boot: From Architecture to Code

This tutorial walks through creating a browser‑based SSH client using Spring Boot, JSch, WebSocket, and Xterm.js, covering application scenarios, system architecture, backend and frontend implementation, file transfer features, database setup, performance tuning, and security best practices.

Spring BootWeb SSHbackend development
0 likes · 32 min read
Build a Web SSH Client with Spring Boot: From Architecture to Code
Architect's Guide
Architect's Guide
Aug 29, 2025 · Backend Development

Build a High‑Performance Go IM System with WebSocket: From Basics to Scaling

This article walks you through the fundamentals of instant‑messaging systems, explains the WebSocket protocol in depth, and provides a complete Go implementation for a scalable, high‑availability IM service with registration, authentication, single‑ and group‑chat, emoji and image support, plus optimization and architecture recommendations.

GoIM Systemwebsocket
0 likes · 40 min read
Build a High‑Performance Go IM System with WebSocket: From Basics to Scaling
Code Mala Tang
Code Mala Tang
Aug 25, 2025 · Frontend Development

Polling vs WebSocket: Choosing the Right Real‑Time Strategy for Your App

This article compares polling and WebSocket approaches for delivering real‑time updates, explains their advantages and drawbacks, provides React and Node.js code examples, and offers practical guidance on selecting the appropriate method based on task frequency and user experience requirements.

FrontendPollingReAct
0 likes · 7 min read
Polling vs WebSocket: Choosing the Right Real‑Time Strategy for Your App
Architect
Architect
Jul 15, 2025 · Backend Development

When to Use SSE vs WebSocket vs Polling: A Practical Guide

This article explains the three main server‑to‑client push techniques—polling, WebSocket, and Server‑Sent Events (SSE)—detailing their principles, advantages, drawbacks, compatibility, typical use cases, and provides complete Node.js/Express and plain‑HTML demos to help developers choose the right solution.

ExpressFrontendNode.js
0 likes · 13 min read
When to Use SSE vs WebSocket vs Polling: A Practical Guide
Cognitive Technology Team
Cognitive Technology Team
Jul 7, 2025 · Backend Development

Master Spring Bean Scopes: Choose the Right Lifecycle for High‑Performance Apps

An in‑depth guide to Spring Bean scopes explains the seven standard scopes—including Singleton, Prototype, Request, Session, Application, Global Session, and WebSocket—detailing their lifecycles, configuration methods, core principles, and best‑practice scenarios to help developers choose the optimal scope for high‑performance, reliable applications.

Bean ScopeSpringbackend development
0 likes · 12 min read
Master Spring Bean Scopes: Choose the Right Lifecycle for High‑Performance Apps
Open Source Tech Hub
Open Source Tech Hub
Jun 22, 2025 · Frontend Development

Master WebSocket Basics: Handshake, Protocol, and a Live JavaScript Demo

This tutorial explains the WebSocket protocol, shows the exact client handshake request and server response, and provides a concise JavaScript example that opens a connection, sends a message, receives a reply, and closes the socket, illustrating real‑time full‑duplex communication.

JavaScriptprotocolreal-time
0 likes · 2 min read
Master WebSocket Basics: Handshake, Protocol, and a Live JavaScript Demo
Java Web Project
Java Web Project
Jun 14, 2025 · Backend Development

When to Choose SSE, WebSocket, or Polling: A Practical Comparison

This article examines three server‑to‑client push techniques—polling, WebSocket, and Server‑Sent Events (SSE)—by detailing their mechanisms, listing concrete drawbacks and advantages, comparing them side‑by‑side, and providing step‑by‑step Node.js demos for real‑time dashboards and chat scenarios.

ExpressJavaScriptNode.js
0 likes · 13 min read
When to Choose SSE, WebSocket, or Polling: A Practical Comparison
JavaScript
JavaScript
Jun 14, 2025 · Frontend Development

Why Server‑Sent Events (SSE) May Beat WebSocket for One‑Way Updates

While WebSocket is often the go‑to solution for real‑time web apps, many scenarios only need one‑way data pushes; this article explains how Server‑Sent Events (SSE) provide a lightweight, HTTP‑based alternative with simpler implementation, lower overhead, and built‑in reconnection support.

Real‑time communicationSSEServer‑Sent Events
0 likes · 7 min read
Why Server‑Sent Events (SSE) May Beat WebSocket for One‑Way Updates
macrozheng
macrozheng
Jun 13, 2025 · Backend Development

How to Build a Real‑Time Chat with Spring Boot WebSocket: Step‑by‑Step Guide

This article explains how to integrate WebSocket into a Spring Boot project to create a lightweight instant‑messaging system, covering dependency setup, configuration classes, core server implementation, required modules, common deployment issues, and practical solutions with complete code examples.

Instant MessagingReal‑time communicationSpring Boot
0 likes · 14 min read
How to Build a Real‑Time Chat with Spring Boot WebSocket: Step‑by‑Step Guide
Architect's Guide
Architect's Guide
Jun 12, 2025 · Backend Development

How to Build QR Code Login with WebSocket in Spring Boot

This tutorial walks through designing a QR‑code login flow, defining a token table, outlining client and server roles, implementing two REST endpoints, configuring Spring Boot WebSocket support, and handling real‑time login notifications with Java and JavaScript code examples.

JavaScriptQR Code LoginREST API
0 likes · 13 min read
How to Build QR Code Login with WebSocket in Spring Boot
Sohu Tech Products
Sohu Tech Products
Jun 11, 2025 · Frontend Development

Why WebSocket Is the Secret Weapon for Real‑Time Web Apps

This article explains how WebSocket enables low‑latency, bidirectional communication for AI‑driven real‑time applications, covering its protocol basics, advantages, heartbeat mechanism, connection management challenges, security enhancements, and emerging trends such as WebTransport and integration with modern frameworks.

Real‑time communicationfrontend developmentheartbeat
0 likes · 6 min read
Why WebSocket Is the Secret Weapon for Real‑Time Web Apps
php Courses
php Courses
Jun 10, 2025 · Backend Development

Build Real-Time Video Chat with PHP and WebRTC: Step-by-Step Guide

This tutorial walks you through creating a real-time video chat web app using PHP on the server side and WebRTC in the browser, covering environment setup, server code, client implementation, and how to run the application.

Real‑time communicationWebRTCvideo chat
0 likes · 6 min read
Build Real-Time Video Chat with PHP and WebRTC: Step-by-Step Guide
Selected Java Interview Questions
Selected Java Interview Questions
Jun 6, 2025 · Frontend Development

How to Solve Cross-Origin Issues: CORS, JSONP, Nginx Proxy & More

This article explains why browsers enforce the Same‑Origin Policy, illustrates common CORS errors, and provides practical solutions—including CORS headers, JSONP, Nginx reverse proxy, API gateways, WebSocket, and postMessage—along with code examples and best‑practice tips for both development and production environments.

CORSCross-OriginJSONP
0 likes · 9 min read
How to Solve Cross-Origin Issues: CORS, JSONP, Nginx Proxy & More
Java Web Project
Java Web Project
May 26, 2025 · Backend Development

How to Integrate WebSocket with Spring Boot for Real‑Time Messaging

This guide walks through the problem of server‑initiated push in a Spring Boot project, explains why WebSocket is needed over HTTP, and provides step‑by‑step Maven setup, configuration classes, controller code, a test HTML page, and troubleshooting tips for proper initialization.

SpringBootbackendjava
0 likes · 12 min read
How to Integrate WebSocket with Spring Boot for Real‑Time Messaging
FunTester
FunTester
May 24, 2025 · Backend Development

How to Stress-Test Netty WebSocket for 10,000 Subscriptions and Keepalive

This article presents advanced WebSocket testing techniques—including asynchronous connection creation, result statistics, price verification, latency measurement, TPS modeling—and demonstrates a Netty‑WebSocket subscription test for 10,000 users plus Java‑ and Netty‑based keepalive implementations for high‑concurrency scenarios.

NettyPerformance Testingconcurrency
0 likes · 7 min read
How to Stress-Test Netty WebSocket for 10,000 Subscriptions and Keepalive
Architect
Architect
May 22, 2025 · Backend Development

How to Build Real‑Time Device Monitoring with WebSocket and Spring Boot

This article demonstrates how to implement a real‑time device‑monitoring system using WebSocket, covering the problem scenario, front‑end Vue.js visualization, Spring Boot back‑end configuration, WebSocket server setup, and step‑by‑step testing to achieve instant status updates.

Spring BootVue.jsbackend development
0 likes · 11 min read
How to Build Real‑Time Device Monitoring with WebSocket and Spring Boot
FunTester
FunTester
May 22, 2025 · Operations

How to Stress‑Test a WebSocket Product Query API with Java

This guide walks you through designing, implementing, and analyzing a Java‑based performance test for a WebSocket product‑query interface, covering request/response formats, thread‑driven load generation, TPS control, console metrics, and response validation techniques.

Load TestingPerformance Testingbackend
0 likes · 9 min read
How to Stress‑Test a WebSocket Product Query API with Java
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
May 21, 2025 · Backend Development

Master Node.js v24: Real‑Time Watch, Multi‑File Test, Native Env Files & Colorful Console

With Node.js v24 released, this guide demonstrates how to use the new --watch flag for live file monitoring, the --test command for multi‑file testing, native --env-file support for environment variables, colorful console output via util.styleText, and built‑in WebSocket client/server examples.

CLIConsole StylingNode.js
0 likes · 9 min read
Master Node.js v24: Real‑Time Watch, Multi‑File Test, Native Env Files & Colorful Console
Ubiquitous Tech
Ubiquitous Tech
May 20, 2025 · Artificial Intelligence

Turning a Stdio MCP Server into an HTTP SSE Service with Supergateway

This article explains how Supergateway converts a standard Stdio‑based Model Context Protocol (MCP) server into an HTTP SSE (or WebSocket) service, detailing installation, command‑line usage, a train‑ticket MCP example, and how the conversion simplifies web integration and remote debugging.

AIHTTP SSEMCP
0 likes · 8 min read
Turning a Stdio MCP Server into an HTTP SSE Service with Supergateway
Top Architecture Tech Stack
Top Architecture Tech Stack
May 19, 2025 · Backend Development

Understanding Server‑Sent Events (SSE): Concepts, Comparison with Polling and WebSocket, and Practical Implementation

This article explains the scenarios where servers need to push data to clients, compares three implementation methods—polling, WebSocket, and SSE—highlights their advantages and drawbacks, and provides step‑by‑step frontend and Node.js backend demos for building a real‑time SSE connection.

ExpressJavaScriptNode.js
0 likes · 13 min read
Understanding Server‑Sent Events (SSE): Concepts, Comparison with Polling and WebSocket, and Practical Implementation
Open Source Tech Hub
Open Source Tech Hub
May 18, 2025 · Backend Development

Build Real-Time TCP and WebSocket Services with GatewayWorker on Windows

This guide introduces GatewayWorker, a PHP‑based distributed TCP long-connection framework, explains its Gateway-Worker process model, and provides step-by-step Windows demo instructions for both TCP and WebSocket protocols, highlighting deployment, code changes, testing procedures, and suitable real-time communication scenarios.

GatewayWorkerPHPTCP
0 likes · 6 min read
Build Real-Time TCP and WebSocket Services with GatewayWorker on Windows
FunTester
FunTester
May 18, 2025 · Backend Development

Building a High‑Performance Netty WebSocket Client for Large‑Scale Performance Testing

This article explains how to build a high‑performance Netty‑based WebSocket client for large‑scale performance testing, covering Netty fundamentals, custom handler implementation, client bootstrap configuration, message sending, connection closing, batch operations, and client encapsulation to reduce resource consumption and improve scalability.

NettyPerformance Testingbackend
0 likes · 14 min read
Building a High‑Performance Netty WebSocket Client for Large‑Scale Performance Testing
FunTester
FunTester
May 17, 2025 · Backend Development

Detailed Explanation of Java WebSocket Client Development

This article provides a comprehensive walkthrough of building a Java WebSocket client, covering client creation, connection establishment, message sending, graceful closure, header handling, and code encapsulation, with complete example code and best practices for performance testing and robust error handling.

ClientNetworkingPerformanceTesting
0 likes · 11 min read
Detailed Explanation of Java WebSocket Client Development
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.

SSESpring Bootbackend
0 likes · 6 min read
Choosing the Right Real‑Time Web Technique: SSE, WebSocket or Long Polling?
Architecture Digest
Architecture Digest
May 15, 2025 · Backend Development

Why the ChatGPT Browser Conversation System Uses EventSource Instead of WebSocket

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.

BrowserEventSourceNode.js
0 likes · 9 min read
Why the ChatGPT Browser Conversation System Uses EventSource Instead of WebSocket
Senior Tony
Senior Tony
May 13, 2025 · Backend Development

Master WebSocket: From Handshake to Real‑Time Messaging with Java & Spring

This tutorial explains WebSocket’s full‑duplex protocol, compares it with HTTP polling, outlines typical real‑time use cases, details the handshake and frame structure, and provides complete client‑side JavaScript and Spring Boot server examples to help developers quickly implement bi‑directional communication.

JavaScriptReal‑time communicationSpring Boot
0 likes · 9 min read
Master WebSocket: From Handshake to Real‑Time Messaging with Java & Spring
Architect
Architect
Apr 25, 2025 · Backend Development

Building a High‑Performance Real‑Time Communication System with Netty and Spring Boot 3

This article explains Netty's asynchronous architecture, compares BIO/NIO/AIO models, describes its thread and pipeline designs, evaluates real‑time communication options, and provides complete frontend and backend code examples for creating a WebSocket‑based instant messaging service using Netty and Spring Boot 3.

NettyReal‑time communicationbackend development
0 likes · 18 min read
Building a High‑Performance Real‑Time Communication System with Netty and Spring Boot 3
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Apr 25, 2025 · Backend Development

Full‑Stack Gomoku Game with Vue 3, NestJS, AI Opponent, and Real‑Time Multiplayer

This article presents a complete Gomoku web application built with Vue 3 on the front end and NestJS on the back end, featuring customizable pieces, stylish UI, AI opponents of varying difficulty, and real‑time LAN multiplayer using Socket.io, along with detailed code examples and architectural explanations.

AIGomokuMonorepo
0 likes · 14 min read
Full‑Stack Gomoku Game with Vue 3, NestJS, AI Opponent, and Real‑Time Multiplayer
FunTester
FunTester
Apr 13, 2025 · Frontend Development

Mastering Timed Tasks in Chrome Extensions: From Persistent Background to On‑Demand Execution

This guide explains how to implement reliable scheduled tasks in Chrome extensions under Manifest V3, covering the shift from persistent background scripts to service workers, three practical approaches—including chrome.alarms, content script timers, and event‑driven simulations—plus best‑practice tips for idempotency, logging, and state persistence.

Chrome ExtensionIdempotencyServer Push
0 likes · 12 min read
Mastering Timed Tasks in Chrome Extensions: From Persistent Background to On‑Demand Execution
Java Captain
Java Captain
Apr 9, 2025 · Backend Development

Server‑Sent Events (SSE) vs WebSocket vs Polling: Usage Scenarios, Advantages, and Implementation Demo

This article explains the three common server‑to‑client push techniques—polling, WebSocket, and SSE—detailing their principles, pros and cons, browser compatibility, and provides step‑by‑step Node.js/Express and plain JavaScript demos to illustrate how to implement SSE in real‑time applications.

ExpressJavaScriptNode.js
0 likes · 13 min read
Server‑Sent Events (SSE) vs WebSocket vs Polling: Usage Scenarios, Advantages, and Implementation Demo
Top Architecture Tech Stack
Top Architecture Tech Stack
Apr 8, 2025 · Backend Development

Understanding Server‑Sent Events (SSE): Concepts, Comparison with Polling and WebSocket, and Implementation Demo

This article explains the principles and use cases of Server‑Sent Events (SSE), compares it with traditional polling and WebSocket solutions, outlines their advantages and drawbacks, and provides complete front‑end and Node.js/Express demo code to build a real‑time push system.

ExpressJavaScriptNode.js
0 likes · 13 min read
Understanding Server‑Sent Events (SSE): Concepts, Comparison with Polling and WebSocket, and Implementation Demo
Architect
Architect
Apr 5, 2025 · Backend Development

Mastering WebSocket Integration in Spring Boot: Javax, WebMVC & WebFlux

This article compares six WebSocket integration approaches—Javax, WebMVC, WebFlux, Java-WebSocket, SocketIO, and Netty—showing how to configure both server and client sides in Spring Boot, with step‑by‑step code examples, key annotations, and practical tips for each method.

JavaxSpring BootWebFlux
0 likes · 17 min read
Mastering WebSocket Integration in Spring Boot: Javax, WebMVC & WebFlux
macrozheng
macrozheng
Apr 2, 2025 · Backend Development

When to Choose SSE, WebSocket, or Polling? A Hands‑On Guide

This tutorial compares server‑push techniques—polling, WebSocket, and Server‑Sent Events—detailing their mechanisms, advantages, and drawbacks, then walks through setting up a simple SSE demo with Node.js and plain HTML, helping developers pick the right solution for real‑time data scenarios.

ExpressNode.jsPolling
0 likes · 13 min read
When to Choose SSE, WebSocket, or Polling? A Hands‑On Guide
php Courses
php Courses
Mar 26, 2025 · Backend Development

Integrating Ably Real‑Time Messaging in PHP with Composer

This article explains how to solve real‑time data synchronization challenges by integrating the Ably PHP library via Composer, covering installation, basic usage examples such as publishing messages, retrieving history, and checking channel status, all with clear code snippets.

AblyPHPcomposer
0 likes · 4 min read
Integrating Ably Real‑Time Messaging in PHP with Composer
php Courses
php Courses
Mar 25, 2025 · Backend Development

Integrating Ably Real‑Time Messaging in PHP with Composer

This article explains how to integrate the Ably real‑time messaging platform into a PHP project using Composer, covering installation, basic usage such as publishing messages, retrieving history, and checking channel status, and demonstrates how it simplifies global real‑time data synchronization.

AblyPHPcomposer
0 likes · 4 min read
Integrating Ably Real‑Time Messaging in PHP with Composer
Open Source Tech Hub
Open Source Tech Hub
Feb 26, 2025 · Backend Development

Building Real-Time WebSocket Services with Workerman: A PHP High‑Performance Guide

This article introduces Workerman, an open‑source pure‑PHP high‑performance application container, outlines its key features and typical use cases, and provides step‑by‑step installation, server‑side and client‑side code examples, as well as Nginx reverse‑proxy configuration for secure WebSocket deployment.

PHPServerhigh performance
0 likes · 11 min read
Building Real-Time WebSocket Services with Workerman: A PHP High‑Performance Guide
vivo Internet Technology
vivo Internet Technology
Feb 26, 2025 · Backend Development

Building a Million-User Group Chat System: Server-Side Architecture and Implementation

The article details how to engineer a Web‑based group chat that supports one million members by selecting WebSocket for real‑time communication, using read‑diffusion storage, a three‑layer architecture with Redis routing and Kafka queues, ensuring ordered, reliable delivery via TCP, ACKs and UUID deduplication, calculating unread counts with Redis ZSETs, and handling massive traffic through rate‑limiting, protobuf compression and message chunking.

Distributed ArchitectureIM SystemMessage Ordering
0 likes · 21 min read
Building a Million-User Group Chat System: Server-Side Architecture and Implementation
Java Tech Enthusiast
Java Tech Enthusiast
Feb 12, 2025 · Backend Development

How to Implement Single Device Login in Web Applications

The article explains how to enforce single‑device login in web apps by contrasting token‑version control—incrementing a version field in the database and embedding it in JWTs to invalidate older tokens—with a WebSocket‑based method that pushes real‑time logout messages, comparing their trade‑offs and suggesting a hybrid solution.

authenticationbackend developmentforced logout
0 likes · 5 min read
How to Implement Single Device Login in Web Applications
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jan 27, 2025 · Frontend Development

Handling Page Refresh and Cache Updates in Vue SPA with Vite

This article explains why users may still see outdated pages after a Vue SPA deployment, analyzes the caching issues caused by static asset headers, and provides both back‑end coordinated and pure front‑end solutions—including WebSocket, SSE, ETag polling, custom Vite plugins, and example code—to automatically detect and prompt updates.

ETagSSEVue
0 likes · 6 min read
Handling Page Refresh and Cache Updates in Vue SPA with Vite
Alibaba Cloud Native
Alibaba Cloud Native
Jan 26, 2025 · Cloud Native

Why SSE and WebSocket Are the Perfect Fit for Large Language Model Apps

This article explains how Server‑Sent Events (SSE) and WebSocket provide the low‑latency, bidirectional communication required by large language model applications, compares them with traditional HTTP/HTTPS protocols, outlines technical challenges such as gateway stability, bandwidth and security, and offers practical implementation steps and mitigation strategies.

API GatewayReal‑time communicationSSE
0 likes · 19 min read
Why SSE and WebSocket Are the Perfect Fit for Large Language Model Apps
php Courses
php Courses
Jan 20, 2025 · Backend Development

Developing Real-Time Monitoring Applications with PHP and WebSocket

This article explains how to build real-time monitoring applications using PHP and the WebSocket protocol, covering the fundamentals of WebSocket, setting up a Ratchet server, creating client-side JavaScript connections, and providing complete code examples for a stock price monitoring demo.

PHPratchetreal-time monitoring
0 likes · 7 min read
Developing Real-Time Monitoring Applications with PHP and WebSocket
Top Architect
Top Architect
Jan 13, 2025 · Backend Development

Understanding Server‑Sent Events (SSE) vs WebSocket vs Polling: Choosing the Right Real‑Time Communication Technique

This article compares Server‑Sent Events, WebSocket, and traditional polling, explains why SSE can replace heavyweight WebSocket in one‑way push scenarios, provides configuration and code examples for Spring Boot, and shares practical lessons from real project experiences.

PollingReal‑time communicationSSE
0 likes · 12 min read
Understanding Server‑Sent Events (SSE) vs WebSocket vs Polling: Choosing the Right Real‑Time Communication Technique
DaTaobao Tech
DaTaobao Tech
Jan 10, 2025 · Artificial Intelligence

AI-Driven Efficiency Improvements in a Chatroom Project

The article shows how AI accelerated a chatroom project's development—cutting cycle time, lowering developer skill demands, and delivering over 8% efficiency gains—by auto‑generating boilerplate code, debugging suggestions, and routine components such as API, Redis, MySQL, and WebSocket snippets, while outlining future improvements and a potential additional 10% R&D boost through integrated AI tools.

AIEfficiencyPython
0 likes · 9 min read
AI-Driven Efficiency Improvements in a Chatroom Project
Zhuanzhuan Tech
Zhuanzhuan Tech
Jan 10, 2025 · Backend Development

Multiple Approaches to Real-Time Data Updates

This article compares three real-time data update techniques—short and long polling, WebSocket, and Server‑Sent Events—explaining their principles, advantages, drawbacks, and providing practical Vue and Node.js code examples to help developers choose the optimal solution for their specific use case.

Node.jsPollingSSE
0 likes · 14 min read
Multiple Approaches to Real-Time Data Updates
大转转FE
大转转FE
Jan 10, 2025 · Backend Development

Which Real‑Time Data Technique Is Best? Polling, WebSocket, or SSE Compared

This article compares three real‑time data update methods—short and long polling, WebSocket, and Server‑Sent Events—explaining their principles, advantages, drawbacks, and providing practical code examples so developers can choose the most suitable solution for their web applications.

FrontendPollingSSE
0 likes · 16 min read
Which Real‑Time Data Technique Is Best? Polling, WebSocket, or SSE Compared
Dangbei Technology Team
Dangbei Technology Team
Dec 31, 2024 · Backend Development

How WebSocket Powers Real-Time IoT Devices: Architecture & Code Walkthrough

This article explores the role of WebSocket in IoT, detailing its advantages over HTTP, comparing Java implementations, presenting a Netty‑based architecture for smart devices, and providing complete code examples for connection handling, authentication, and message processing to achieve real‑time communication.

IoTNettyReal‑time communication
0 likes · 12 min read
How WebSocket Powers Real-Time IoT Devices: Architecture & Code Walkthrough
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 29, 2024 · Frontend Development

Encapsulating WebSocket with Reconnection, Heartbeat, and Event Handling in JavaScript/TypeScript

This article explains how to wrap WebSocket in a reusable JavaScript/TypeScript class that provides automatic reconnection, heartbeat monitoring, event callbacks, connection state management, and graceful destruction, while also comparing WebSocket advantages over traditional HTTP polling for real‑time H5 applications.

JavaScriptRealtimeTypeScript
0 likes · 14 min read
Encapsulating WebSocket with Reconnection, Heartbeat, and Event Handling in JavaScript/TypeScript
Top Architect
Top Architect
Dec 28, 2024 · Backend Development

Building a Netty + WebSocket Message Push Server in Java

This article presents a step‑by‑step guide to building a Netty‑based WebSocket server in Java, covering server initialization, channel configuration, custom handlers, push‑message services, testing procedures, and includes complete source code, while also containing promotional material for unrelated AI services.

Message PushSpringjava
0 likes · 11 min read
Building a Netty + WebSocket Message Push Server in Java
Top Architect
Top Architect
Dec 27, 2024 · Backend Development

Server‑Sent Events (SSE) vs WebSocket vs Polling: Detailed Comparison and SpringBoot Implementation

This article explains the lightweight Server‑Sent Events (SSE) approach for one‑way server push, compares its features, connection model, performance and use cases against WebSocket and traditional polling, and provides a SpringBoot example with code snippets for building an online‑user SSE endpoint.

PollingReal‑time communicationSSE
0 likes · 11 min read
Server‑Sent Events (SSE) vs WebSocket vs Polling: Detailed Comparison and SpringBoot Implementation
Architect
Architect
Dec 17, 2024 · Backend Development

Why Choose Server-Sent Events (SSE) Over WebSocket: Comparison, Benefits, and Spring Boot Implementation

This article compares Server‑Sent Events, WebSocket, and traditional polling, explains why SSE is often a simpler and more efficient choice for one‑way real‑time communication, and provides a complete Spring Boot example with code snippets for publishing online‑user statistics.

Real‑time communicationSSEServer‑Sent Events
0 likes · 8 min read
Why Choose Server-Sent Events (SSE) Over WebSocket: Comparison, Benefits, and Spring Boot Implementation
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.

HTTPReal‑time communicationServer Push
0 likes · 15 min read
Why Can’t Servers Push Data? Exploring HTTP Polling, Long Polling, and WebSocket
Architecture Digest
Architecture Digest
Dec 12, 2024 · Backend Development

Server‑Sent Events vs WebSocket vs Polling: Choosing the Right Real‑Time Communication Technique for Backend Development

This article compares Server‑Sent Events, traditional polling, and WebSocket for server‑to‑client real‑time messaging, explains why WebSocket may be overkill for one‑way push scenarios, and provides a Spring Boot example of an SSE endpoint with code and configuration details.

PollingReal‑time communicationSpring Boot
0 likes · 7 min read
Server‑Sent Events vs WebSocket vs Polling: Choosing the Right Real‑Time Communication Technique for Backend Development
ITPUB
ITPUB
Dec 6, 2024 · Backend Development

Why ChatGPT Uses Server-Sent Events (SSE) and How to Implement SSE in Spring Boot

This article explains why ChatGPT adopts Server-Sent Events for streaming responses, compares SSE with WebSocket, outlines SSE's core principles and best‑practice considerations, and provides a complete Spring Boot example—including server‑side Java code and client‑side HTML—to demonstrate real‑time data push.

Real‑time communicationSSEServer‑Sent Events
0 likes · 14 min read
Why ChatGPT Uses Server-Sent Events (SSE) and How to Implement SSE in Spring Boot
Architect's Guide
Architect's Guide
Dec 2, 2024 · Backend Development

Implementing QR‑Code Login with WebSocket in Spring Boot

This article explains how to design a QR‑code login flow, create the necessary database table, define the required APIs, and integrate front‑end JavaScript with a Spring Boot back‑end using WebSocket to notify the client of successful authentication.

QR Code LoginSpring Bootbackend
0 likes · 13 min read
Implementing QR‑Code Login with WebSocket in Spring Boot
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 30, 2024 · Frontend Development

Common Data Request Methods for Large Screens and Their Implementation with SSE and WebSocket

This article compares HTTP polling, WebSocket, and Server‑Sent Events (SSE) for large‑screen data fetching, explains their advantages and drawbacks, outlines suitable business scenarios, and provides complete front‑end and back‑end code examples for implementing SSE and WebSocket connections.

HTTP pollingNode.jsReal‑time Data
0 likes · 7 min read
Common Data Request Methods for Large Screens and Their Implementation with SSE and WebSocket
System Architect Go
System Architect Go
Nov 24, 2024 · Artificial Intelligence

Building a Web Voice Chatbot with Whisper, llama.cpp, and LLM

This article demonstrates how to build a web‑based voice chatbot by integrating Whisper speech‑to‑text, llama.cpp LLM inference, and WebSocket communication, detailing both the frontend JavaScript implementation and the Python FastAPI backend, along with Docker deployment and example code.

JavaScriptLLMPython
0 likes · 10 min read
Building a Web Voice Chatbot with Whisper, llama.cpp, and LLM
Java Architect Essentials
Java Architect Essentials
Nov 7, 2024 · Backend Development

Building a Netty + WebSocket Message Push Server in Java

This tutorial explains how to use Netty to create a Java backend server with WebSocket support, covering server initialization, channel configuration, pipeline setup, custom handlers, and message‑push services, and includes complete code examples for each component.

Message PushNettyServer
0 likes · 10 min read
Building a Netty + WebSocket Message Push Server in Java
Architect
Architect
Oct 30, 2024 · Backend Development

How to Build Distributed WebSocket Messaging with Spring, Redis, and Kafka

This article explains how to enable cross‑node WebSocket communication in a distributed Spring application by using a message queue (Redis or Kafka) to broadcast messages, tracking user connections with Redis, and providing a complete step‑by‑step implementation with code samples and configuration details.

KafkaRedisSpring
0 likes · 20 min read
How to Build Distributed WebSocket Messaging with Spring, Redis, and Kafka
Top Architect
Top Architect
Oct 27, 2024 · Backend Development

Building a Netty + WebSocket Message Push Server in Java

This article demonstrates how to build a Netty‑based WebSocket server for message pushing in Java, provides complete source code for the server, configuration, pipeline, custom handler, and push service, and also contains promotional material for AI services and a community group.

MessagePushjavawebsocket
0 likes · 10 min read
Building a Netty + WebSocket Message Push Server in Java
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 26, 2024 · Frontend Development

Cross-Origin and Same-Origin Strategies: JSONP, CORS, Proxy, Nginx, WebSocket, postMessage, and document.domain

This article explains the concepts of cross‑origin and same‑origin policies, and demonstrates multiple solutions—including JSONP, CORS headers, proxy servers, Nginx configuration, WebSocket communication, postMessage, and document.domain—providing both front‑end and back‑end code examples for each method.

CORSCross-OriginJSONP
0 likes · 13 min read
Cross-Origin and Same-Origin Strategies: JSONP, CORS, Proxy, Nginx, WebSocket, postMessage, and document.domain
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 21, 2024 · Backend Development

Design and Implementation of a Live Streaming Danmaku System Using Redis, Kafka, and WebSocket

This article explains how to design a live‑streaming danmaku (bullet‑screen) feature by using Redis Zset as the underlying data structure, limiting the list to the latest ten messages, and handling retrieval via polling APIs or WebSocket, with Kafka for message buffering and a distributed lock to avoid ordering issues.

KafkaReal-time messagingRedis
0 likes · 8 min read
Design and Implementation of a Live Streaming Danmaku System Using Redis, Kafka, and WebSocket
ZhongAn Tech Team
ZhongAn Tech Team
Oct 15, 2024 · Frontend Development

Implementation of an Agora‑Based Video Claim SDK for Insurance: Architecture, Features, and Integration

This article details the design and implementation of a video‑claim system for insurance using Agora video‑call technology, covering background, core features, system architecture, adapter‑pattern code, Web and mini‑program SDK integration, exception handling, and future AI‑driven enhancements.

AgoraFrontendInsurance
0 likes · 15 min read
Implementation of an Agora‑Based Video Claim SDK for Insurance: Architecture, Features, and Integration
php Courses
php Courses
Oct 8, 2024 · Backend Development

Developing a PHP WebSocket Server for Real‑Time Multi‑User Collaboration

This article explains how to build a PHP WebSocket server using the Ratchet library, provides step‑by‑step code examples for server setup and a simple real‑time chat client, and demonstrates how to enable multi‑user online collaboration with WebSocket technology.

PHPbackend developmentratchet
0 likes · 6 min read
Developing a PHP WebSocket Server for Real‑Time Multi‑User Collaboration
macrozheng
macrozheng
Sep 26, 2024 · Backend Development

Build a Real‑Time Chat with Spring Boot WebSocket: Step‑by‑Step Guide

This article explains how to integrate Spring Boot with WebSocket to create a lightweight instant‑messaging system, covering dependency setup, configuration classes, core server code, front‑end integration, essential IM modules, common deployment challenges, and provides complete example code and demos.

Instant MessagingReal‑time communicationSpring Boot
0 likes · 15 min read
Build a Real‑Time Chat with Spring Boot WebSocket: Step‑by‑Step Guide
Architect
Architect
Sep 25, 2024 · Frontend Development

Why Choose EventSource Over WebSocket for ChatGPT‑Style Web Chats?

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.

ChatGPTEventSourceFrontend
0 likes · 9 min read
Why Choose EventSource Over WebSocket for ChatGPT‑Style Web Chats?
Code Ape Tech Column
Code Ape Tech Column
Sep 12, 2024 · Backend Development

Distributed WebSocket Messaging with Redis and Kafka in Spring

This article explains how to enable cross‑server WebSocket communication in a distributed Spring application by using a message queue such as Redis or Kafka, detailing two architectural approaches, concrete code examples, configuration files, and a sample client page.

KafkaMessage QueueRedis
0 likes · 17 min read
Distributed WebSocket Messaging with Redis and Kafka in Spring
php Courses
php Courses
Sep 10, 2024 · Backend Development

Implementing WebSocket Communication in PHP with Ratchet

This tutorial explains how to use the Ratchet library to create a PHP WebSocket server, covering environment setup, Composer installation, server-side code, a simple HTML/JavaScript client, and steps to run and test real‑time data transmission.

PHPTutorialbackend
0 likes · 7 min read
Implementing WebSocket Communication in PHP with Ratchet
Java High-Performance Architecture
Java High-Performance Architecture
Sep 9, 2024 · Backend Development

Designing a Scalable WebSocket Messaging Service with Reliable RabbitMQ Integration

This article outlines a comprehensive backend design that abstracts WebSocket into a reusable communication service, details project structure, business processes, reliability mechanisms for RabbitMQ, message classification, API design, and a unified message format to enable plug‑and‑play real‑time messaging across various Java applications.

Backend ArchitectureMessage Queuejava
0 likes · 9 min read
Designing a Scalable WebSocket Messaging Service with Reliable RabbitMQ Integration
Java Architect Essentials
Java Architect Essentials
Sep 5, 2024 · Backend Development

Comprehensive Guide to WebSocket: Protocol, Lifecycle, API, and Java Implementation

This article provides an in‑depth overview of the WebSocket protocol, covering its fundamentals, advantages, lifecycle, message formats, Java API usage, Spring Boot integration, performance considerations, and future development directions, complete with practical code examples for both server and client sides.

APIReal‑time communicationSpring Boot
0 likes · 18 min read
Comprehensive Guide to WebSocket: Protocol, Lifecycle, API, and Java Implementation