Tag

heartbeat

1 views collected around this technical thread.

Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Jun 16, 2025 · Cloud Native

How Nacos Handles Service Registration in Microservices – A Deep Dive

This article explains the principles and workflow of Nacos service registration, covering why dynamic service discovery is needed, how instances register, send heartbeats, and are deregistered, and includes code examples and diagrams to illustrate the process.

Nacoscloud nativeheartbeat
0 likes · 4 min read
How Nacos Handles Service Registration in Microservices – A Deep Dive
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 CommunicationWebSocketfrontend development
0 likes · 6 min read
Why WebSocket Is the Secret Weapon for Real‑Time Web Apps
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.

JavaScriptTypeScriptWebSocket
0 likes · 14 min read
Encapsulating WebSocket with Reconnection, Heartbeat, and Event Handling in JavaScript/TypeScript
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 22, 2024 · Frontend Development

Comprehensive Introduction to WebSocket with Heartbeat and Reconnection Implementations

This article explains the WebSocket protocol, its advantages over traditional Ajax polling, typical use cases, the standard WebSocket API, and provides complete JavaScript implementations of a heartbeat base class and an extensible Socket wrapper with reconnection logic.

JavaScriptNode.jsRealtime Communication
0 likes · 11 min read
Comprehensive Introduction to WebSocket with Heartbeat and Reconnection Implementations
Zhuanzhuan Tech
Zhuanzhuan Tech
Aug 21, 2024 · Backend Development

Design and Implementation of a Real-Time Customer Service IM System

This article analyzes the challenges of real-time, reliability, and message ordering in a customer service instant messaging system and presents solutions such as WebSocket adoption, ACK-based reliability, heartbeat mechanisms, and a structured message protocol to ensure efficient and stable communication.

ACK mechanismIM systemReal-time Messaging
0 likes · 11 min read
Design and Implementation of a Real-Time Customer Service IM System
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
May 28, 2024 · Frontend Development

Implementing a WebSocket Client with Automatic Reconnection and Heartbeat in TypeScript/JavaScript

This article explains how to build a WebSocket client that supports automatic reconnection after network loss and periodic heartbeat messages, provides a drop‑in API compatible with the native WebSocket interface, and includes complete TypeScript and JavaScript implementations with detailed code examples.

JavaScriptTypeScriptWebSocket
0 likes · 19 min read
Implementing a WebSocket Client with Automatic Reconnection and Heartbeat in TypeScript/JavaScript
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Apr 4, 2024 · Frontend Development

Building a WebSocket Manager for Real‑Time Message Push in JavaScript

This article demonstrates how to create a reusable WebSocket manager in JavaScript that handles connection creation, automatic heartbeat, message sending, reconnection attempts, and graceful closure, providing a complete front‑end solution for real‑time communication without relying on polling.

JavaScriptWebSocketfrontend
0 likes · 8 min read
Building a WebSocket Manager for Real‑Time Message Push in JavaScript
Top Architect
Top Architect
Nov 23, 2023 · Backend Development

Understanding Nacos Architecture and Service Registration in Spring Cloud

This article explains the Nacos architecture, the principles of service registration, how Spring Cloud integrates with Nacos for automatic registration, the implementation details of NacosServiceRegistry, heartbeat mechanisms, service address queries, and dynamic service discovery, providing a comprehensive guide for backend developers working with microservices.

NacosRegistrationSpring Cloud
0 likes · 10 min read
Understanding Nacos Architecture and Service Registration in Spring Cloud
Architecture Digest
Architecture Digest
Oct 8, 2023 · Cloud Native

Nacos Architecture and Service Registration Mechanism in Spring Cloud

This article explains Nacos's architecture, the principles of service registration and discovery, how Spring Cloud integrates Nacos through auto‑configuration and event listeners, and details the registration, heartbeat, and dynamic address update mechanisms used by Nacos servers and clients.

Consistent ProtocolNacosSpring Cloud
0 likes · 7 min read
Nacos Architecture and Service Registration Mechanism in Spring Cloud
Top Architect
Top Architect
Aug 15, 2022 · Cloud Native

Understanding Nacos Architecture and Service Registration in Spring Cloud

This article explains Nacos's core components, the principles of service registration and health checking, how Spring Cloud integrates Nacos via ServiceRegistry and AutoServiceRegistration, the implementation details of NacosServiceRegistry, heartbeat mechanisms, and dynamic service address discovery using HostReactor.

Dynamic UpdatesNacosRegistration
0 likes · 9 min read
Understanding Nacos Architecture and Service Registration in Spring Cloud
Top Architect
Top Architect
Jul 29, 2022 · Cloud Native

Understanding Nacos Architecture and Service Registration in Spring Cloud

This article explains the Nacos architecture, its components, and how Spring Cloud integrates with Nacos for service registration, health checking, and dynamic service discovery, detailing the underlying mechanisms, code implementations, and the role of heartbeats in maintaining service health.

NacosRegistrationSpring Cloud
0 likes · 8 min read
Understanding Nacos Architecture and Service Registration in Spring Cloud
Code Ape Tech Column
Code Ape Tech Column
Jun 30, 2022 · Backend Development

Implementing a Timing Wheel for RPC Timeout and Heartbeat Tasks

This article explains the problems caused by naive timer implementations in high‑concurrency RPC frameworks and introduces the timing‑wheel mechanism, illustrating its principles, multi‑level design, and practical applications such as request timeout, startup timeout, and heartbeat handling.

RPCTimeoutbackend
0 likes · 12 min read
Implementing a Timing Wheel for RPC Timeout and Heartbeat Tasks
Sanyou's Java Diary
Sanyou's Java Diary
Jun 27, 2022 · Backend Development

How Eureka’s Heartbeat Keeps Microservices Alive: A Deep Dive

This article explores how Eureka’s heartbeat mechanism works in microservice architectures, comparing it to the Tang dynasty tribute system, and details who sends the heartbeat, its interval, the sending process, server handling, and the actions performed after receipt, with code examples and thread‑pool configuration.

Eurekaheartbeatmicroservices
0 likes · 7 min read
How Eureka’s Heartbeat Keeps Microservices Alive: A Deep Dive
Wukong Talks Architecture
Wukong Talks Architecture
Jun 20, 2022 · Backend Development

Understanding the Eureka Service Heartbeat Mechanism in Microservices

This article explains how Eureka’s heartbeat mechanism works in microservice architectures, covering who sends the heartbeat, the scheduling interval, the request implementation, server-side handling, and the effect on service registration, using code examples and analogies to historical tribute systems.

EurekaJavabackend
0 likes · 6 min read
Understanding the Eureka Service Heartbeat Mechanism in Microservices
Sanyou's Java Diary
Sanyou's Java Diary
Jan 25, 2022 · Cloud Native

Inside Nacos NamingService: Service Registration and Heartbeat Source Code Explained

This article dissects Nacos 1.4.1's NamingService implementation, detailing how services are registered via HTTP, the construction of registration parameters, the heartbeat mechanism that periodically confirms instance health, and the underlying code flow, including request handling, retry logic, and task scheduling.

JavaNacosheartbeat
0 likes · 9 min read
Inside Nacos NamingService: Service Registration and Heartbeat Source Code Explained
Top Architect
Top Architect
Oct 12, 2021 · Cloud Native

Understanding Nacos Architecture and Service Registration in Spring Cloud

This article explains the architecture of Nacos, its core components such as Provider/Consumer apps, Name Server, Nacos Server and Console, and details how Spring Cloud integrates with Nacos for service registration, heartbeat monitoring, dynamic address discovery, and the underlying Open API/SDK mechanisms.

NacosService RegistrySpring Cloud
0 likes · 7 min read
Understanding Nacos Architecture and Service Registration in Spring Cloud
Code Ape Tech Column
Code Ape Tech Column
Feb 2, 2021 · Backend Development

Implementing Heartbeat and Reconnection Mechanisms with Netty in Java

This article explains the concept of TCP heartbeat, demonstrates how to use Netty's IdleStateHandler to implement client‑server heartbeat detection, and provides a complete Java example with reconnection logic, retry policies, and detailed code snippets for building a robust long‑connection service.

JavaNettyTCP
0 likes · 18 min read
Implementing Heartbeat and Reconnection Mechanisms with Netty in Java
Top Architect
Top Architect
Feb 1, 2021 · Backend Development

Implementing Heartbeat Mechanism and Reconnection Logic with Netty

This article explains how to implement a TCP heartbeat mechanism using Netty's IdleStateHandler, details client and server handler implementations, and demonstrates a robust reconnection strategy with customizable retry policies, providing complete Java code examples for each component.

JavaNettyTCP
0 likes · 19 min read
Implementing Heartbeat Mechanism and Reconnection Logic with Netty
Aikesheng Open Source Community
Aikesheng Open Source Community
Dec 18, 2020 · Databases

Analyzing MySQL Replication Heartbeat Incompatibility Caused by Large Binlog Transactions

The article investigates why MySQL replication reports the error “heartbeat is not compatible with local info” when large transactions exceed the 4 GB limit of the binlog's next_position field, reproduces the issue with a controlled experiment, analyzes packet structures, and proposes practical mitigation strategies.

MySQLReplicationbinlog
0 likes · 7 min read
Analyzing MySQL Replication Heartbeat Incompatibility Caused by Large Binlog Transactions
Top Architect
Top Architect
Jul 24, 2020 · Backend Development

Implementing a Custom Protocol with Netty: Design, Encoding/Decoding, and Heartbeat

This article explains why a custom TCP protocol can be more efficient than HTTP, defines the protocol header and body format, and demonstrates a complete Netty implementation—including message classes, encoders/decoders, resolver factories, server‑client bootstraps, and a Ping/Pong heartbeat mechanism—complete with runnable Java code and sample output.

Custom ProtocolJavaMessage Encoding
0 likes · 15 min read
Implementing a Custom Protocol with Netty: Design, Encoding/Decoding, and Heartbeat