Tagged articles

Netty

352 articles · Page 3 of 4
21CTO
21CTO
Jan 28, 2022 · Backend Development

How Does RPC Work? A Deep Dive into Java RPC Implementation with Netty and Zookeeper

This article explains the fundamentals of Remote Procedure Call (RPC), walks through the complete request‑response flow, and provides a step‑by‑step Java implementation using Spring, custom XML namespaces, Netty for network communication, and Zookeeper for service registration and discovery.

NettyRPCSpring
0 likes · 17 min read
How Does RPC Work? A Deep Dive into Java RPC Implementation with Netty and Zookeeper
Sanyou's Java Diary
Sanyou's Java Diary
Jan 16, 2022 · Backend Development

Why Netty Beats Tomcat: IO Models, Zero‑Copy, Off‑Heap Memory & Object Pools

This article examines why Netty has become the preferred high‑performance server framework over Tomcat, covering Java I/O models, zero‑copy techniques, off‑heap memory usage, and Netty’s custom object‑pooling, and explains how these features enable handling thousands of concurrent connections efficiently.

Java networkingNettyOff-heap memory
0 likes · 8 min read
Why Netty Beats Tomcat: IO Models, Zero‑Copy, Off‑Heap Memory & Object Pools
Bin's Tech Cabin
Bin's Tech Cabin
Jan 13, 2022 · Backend Development

How Netty Builds Its Reactor Thread Pool: Deep Dive into NioEventLoopGroup

This article explains how Netty constructs its core reactor thread pool using NioEventLoopGroup, detailing the creation of boss and worker groups, the underlying selector optimization, task queue setup, and the round‑robin binding strategy that distributes channels across multiple event loops for high‑performance I/O handling.

IO MultiplexingJava NIONetty
0 likes · 39 min read
How Netty Builds Its Reactor Thread Pool: Deep Dive into NioEventLoopGroup
Zhuanzhuan Tech
Zhuanzhuan Tech
Jan 12, 2022 · Backend Development

Connection Management in ZhiZhi RPC Framework SCF

This article explains how the ZhiZhi RPC framework SCF handles connection lifecycle, including establishment timing, connection pooling versus multiplexing, keep‑alive mechanisms, automatic recovery, and graceful shutdown, providing practical guidance for designing robust RPC protocols.

Connection ManagementKeep-AliveNetty
0 likes · 11 min read
Connection Management in ZhiZhi RPC Framework SCF
Java Interview Crash Guide
Java Interview Crash Guide
Jan 11, 2022 · Backend Development

How to Design and Implement a Custom RPC Framework from Scratch

This article explains the concepts, architecture, communication flow, and implementation details of a custom RPC framework built with Spring Boot, Netty, and Zookeeper, covering service registration, load balancing, custom message protocols, serialization, TCP handling, and deployment steps.

NettyRPCSpring Boot
0 likes · 16 min read
How to Design and Implement a Custom RPC Framework from Scratch
IT Architects Alliance
IT Architects Alliance
Jan 10, 2022 · Backend Development

How RPC Works: Build a Simple RPC Framework with Spring, Netty, and Zookeeper

This article explains the fundamentals of Remote Procedure Call (RPC), detailing the end‑to‑end workflow—from interface definition and dynamic proxy generation on the client, through service registration in ZooKeeper, to server‑side handling with Spring and Netty—accompanied by complete Java code snippets and configuration examples.

NettyRPCSpring
0 likes · 17 min read
How RPC Works: Build a Simple RPC Framework with Spring, Netty, and Zookeeper
Top Architect
Top Architect
Dec 9, 2021 · Backend Development

Design and Implementation of a High‑Performance Spring WebFlux Gateway

This article describes how to design and build a high‑throughput, extensible gateway using Spring WebFlux, Netty, and Nacos, covering technical selection, architecture, core modules, plugin chain, data synchronization, WebSocket cache, testing, and performance results.

GatewayLoad BalancingNetty
0 likes · 20 min read
Design and Implementation of a High‑Performance Spring WebFlux Gateway
IT Architects Alliance
IT Architects Alliance
Dec 9, 2021 · Backend Development

Java NIO Network Programming and Netty Architecture Overview

This article provides a comprehensive overview of Java NIO network programming, explaining BIO, NIO, and AIO models, the core components Channel, Buffer, and Selector, and how Netty leverages the Reactor pattern with multi‑threaded boss and worker groups for high‑performance asynchronous I/O.

NIONettyReactor pattern
0 likes · 15 min read
Java NIO Network Programming and Netty Architecture Overview
Wukong Talks Architecture
Wukong Talks Architecture
Dec 7, 2021 · Backend Development

Netty Core Concepts and NIO Fundamentals in Java

This article provides a comprehensive overview of Java network programming fundamentals, including socket basics, IO models (BIO, NIO, AIO), NIO core components such as Channel, Buffer, and Selector, and detailed example code for building NIO client‑server applications.

NIONettyasynchronous IO
0 likes · 28 min read
Netty Core Concepts and NIO Fundamentals in Java
IT Architects Alliance
IT Architects Alliance
Nov 2, 2021 · Backend Development

Building a Scalable Distributed WebSocket Cluster Using Spring Cloud & Consistent Hashing

This article analyzes the challenges of multi‑user WebSocket communication in a clustered environment, compares Netty and Spring WebSocket implementations, and presents two practical solutions—session broadcast and a consistent‑hashing based routing scheme—complete with code samples, gateway configuration, and load‑balancing considerations.

GatewayLoad BalancingNetty
0 likes · 18 min read
Building a Scalable Distributed WebSocket Cluster Using Spring Cloud & Consistent Hashing
Selected Java Interview Questions
Selected Java Interview Questions
Oct 31, 2021 · Backend Development

Interview Experiences and Technical Questions from Major Chinese Tech Companies (JD, Meituan, Alibaba, Toutiao, Kuaishou)

The author, a second‑year master's student in Java backend development, summarizes interview questions and experiences from JD, Meituan, Alibaba, Toutiao and Kuaishou, covering Java concurrency, JVM locking, Netty, Redis, MySQL/HBase, distributed systems, and several algorithm problems.

HBaseInterviewNetty
0 likes · 15 min read
Interview Experiences and Technical Questions from Major Chinese Tech Companies (JD, Meituan, Alibaba, Toutiao, Kuaishou)
Programmer DD
Programmer DD
Oct 13, 2021 · Backend Development

Why Netty Introduced FastThreadLocal and How It Works

This article explains the motivation behind Netty's FastThreadLocal, compares it with JDK ThreadLocal, details its internal implementation—including InternalThreadLocalMap, FastThreadLocalThread, and key methods like get()—and discusses its performance benefits, resource recycling mechanisms, and practical usage in Netty's ByteBuf allocation.

FastThreadLocalMemory ManagementNetty
0 likes · 13 min read
Why Netty Introduced FastThreadLocal and How It Works
Programmer DD
Programmer DD
Oct 11, 2021 · Backend Development

Build a Real-Time Video Bullet Chat with Netty and WebSocket

This article walks through creating a real‑time video bullet‑chat system using Netty as the backend server and WebSocket for bidirectional communication, covering technology selection, architecture design, data flow, and detailed Java and HTML/JavaScript code to implement the interactive feature.

BulletChatNettybackend
0 likes · 13 min read
Build a Real-Time Video Bullet Chat with Netty and WebSocket
Ctrip Technology
Ctrip Technology
Sep 23, 2021 · Backend Development

Design and Implementation of Ctrip's High‑Performance API Gateway

This article presents the evolution, architecture, and engineering practices of Ctrip's API gateway, covering its transition to full asynchronous processing with Netty and RxJava, stream‑based forwarding, single‑threaded event‑loop design, performance optimizations, multi‑protocol support, routing, and modular governance for large‑scale microservice environments.

API GatewayAsync ArchitectureNetty
0 likes · 17 min read
Design and Implementation of Ctrip's High‑Performance API Gateway
IT Architects Alliance
IT Architects Alliance
Sep 22, 2021 · Operations

Resource Isolation Strategies in Distributed Systems

The article explains why resource isolation is essential for distributed architectures, describes common isolation methods such as thread, process, cluster, data, static and crawler isolation, and provides concrete examples and code snippets for Netty, Dubbo, Tomcat, and Hystrix to illustrate practical implementations.

DubboNettyTomcat
0 likes · 12 min read
Resource Isolation Strategies in Distributed Systems
vivo Internet Technology
vivo Internet Technology
Sep 22, 2021 · Backend Development

Investigation and Resolution of Netty ChannelOutboundBuffer Memory Leak in a Mobile Push System

In a high‑throughput mobile push service built on Netty, an off‑heap memory leak was traced to unchecked ChannelOutboundBuffer growth when half‑closed connections remained active but unwritable; fixing it by disabling autoRead on unwritable channels, configuring write‑buffer watermarks, and adding explicit isWritable() checks eliminated the crash and stabilized the system.

ChannelOutboundBufferNettyjava
0 likes · 10 min read
Investigation and Resolution of Netty ChannelOutboundBuffer Memory Leak in a Mobile Push System
Programmer DD
Programmer DD
Sep 21, 2021 · Backend Development

Why Adding More Dubbo Connections Doesn’t Always Boost Throughput

This article examines Dubbo’s connection‑control feature, demonstrates how long‑living TCP connections are created, runs benchmark tests with one and two connections, discovers that varying IO thread counts skew results, and shows that increasing connections alone rarely improves throughput.

Connection ControlDubboIO threads
0 likes · 14 min read
Why Adding More Dubbo Connections Doesn’t Always Boost Throughput
Top Architect
Top Architect
Sep 18, 2021 · Backend Development

Resource Isolation Techniques in Distributed Systems: Thread, Process, Cluster, and More

The article explains why resource isolation is essential in distributed architectures and details various isolation strategies—including thread, process, cluster, data read/write, static, and crawler isolation—illustrated with Netty, Dubbo, Tomcat examples, code snippets, and a comparison of thread‑pool versus semaphore isolation in Hystrix.

DubboHystrixNetty
0 likes · 13 min read
Resource Isolation Techniques in Distributed Systems: Thread, Process, Cluster, and More
Open Source Linux
Open Source Linux
Sep 8, 2021 · Backend Development

Build Real‑Time Messaging with the Open‑Source CIM Framework – A Hands‑On Overview

This article introduces the open‑source CIM instant‑messaging system, explains its Netty/WebSocket‑based backend architecture, outlines the available client SDKs and server modules, and showcases functional previews for console, Android, and web clients, guiding developers on how to adopt or adapt the solution.

CIMInstant MessagingNetty
0 likes · 4 min read
Build Real‑Time Messaging with the Open‑Source CIM Framework – A Hands‑On Overview
IT Architects Alliance
IT Architects Alliance
Sep 7, 2021 · Backend Development

Implementing Delayed Tasks: Strategies, Code Samples, and Trade‑offs

This article explains various approaches to implementing delayed tasks in backend systems, comparing database polling, Java's DelayQueue, Netty's time wheel, Redis sorted sets and keyspace notifications, and RabbitMQ delayed queues, with detailed code examples and analysis of each method's pros and cons.

Delayed TasksNettyRedis
0 likes · 17 min read
Implementing Delayed Tasks: Strategies, Code Samples, and Trade‑offs
IT Architects Alliance
IT Architects Alliance
Aug 19, 2021 · Backend Development

Deep Dive into RocketMQ Architecture, Principles, and Source Code

This article provides a comprehensive overview of RocketMQ's evolution, core architecture, communication flow, storage mechanisms, flushing strategies, high‑availability synchronization, and transaction message implementation, illustrating each component with diagrams and key source‑code excerpts for developers seeking an in‑depth understanding of the system.

Message QueueNettyRocketMQ
0 likes · 13 min read
Deep Dive into RocketMQ Architecture, Principles, and Source Code
HelloTech
HelloTech
Aug 11, 2021 · Backend Development

Root Cause Analysis and Optimization of Long Young GC Times in gRPC/Netty Services

Long Young GC pauses in gRPC/Netty services were traced to Netty’s default thread‑local cache creating many MpscArrayQueue objects, and disabling the cache with the JVM options ‑Dio.netty.allocator.useCacheForAllThreads=false and ‑Dio.grpc.netty.shaded.io.netty.allocator.useCacheForAllThreads=false reduced GC time from up to 900 ms to about 100 ms, stabilizing the service.

GC optimizationNettyThread Cache
0 likes · 6 min read
Root Cause Analysis and Optimization of Long Young GC Times in gRPC/Netty Services
Java Interview Crash Guide
Java Interview Crash Guide
Jul 19, 2021 · Backend Development

Mastering Zero-Copy in Java: Boost Performance with NIO, Netty, and More

Zero-copy techniques eliminate unnecessary data copying between user and kernel space, dramatically improving I/O performance; this article explains core I/O concepts, explores Java implementations like MappedByteBuffer, DirectByteBuffer, channel-to-channel transfers, and demonstrates Netty’s composite buffers, plus examples from Kafka and RocketMQ.

Memory Mapped FilesNIONetty
0 likes · 14 min read
Mastering Zero-Copy in Java: Boost Performance with NIO, Netty, and More
Yang Money Pot Technology Team
Yang Money Pot Technology Team
Jul 15, 2021 · Backend Development

Spring Cloud Gateway: Principles and Practical Applications

This article explains the architecture, core concepts, routing mechanisms, configuration options, and extensibility of Spring Cloud Gateway, illustrating how it replaces Zuul with a non‑blocking Netty‑based solution and how to customize routes, predicates, filters, and dynamic updates for microservice environments.

API GatewayFiltersNetty
0 likes · 27 min read
Spring Cloud Gateway: Principles and Practical Applications
Alibaba Cloud Developer
Alibaba Cloud Developer
Jul 9, 2021 · Backend Development

How to Build Your Own Distributed RPC Framework from Scratch

This article walks through the motivation, core components, technology choices, architecture, and implementation details—including service registration, provider and consumer modules, custom protocol design, serialization, load balancing, and Netty-based I/O—of a self‑written distributed RPC framework, and presents performance test results.

NettyRPCdistributed systems
0 likes · 17 min read
How to Build Your Own Distributed RPC Framework from Scratch
Alibaba Cloud Developer
Alibaba Cloud Developer
Jun 22, 2021 · Backend Development

Why Netty? Building High‑Performance Distributed Services with Java

This article explains what Netty is, how to design a distributed service framework using it, details the RPC call flow, discusses protocol design, showcases performance‑boosting features and best practices, and provides deep insights into Netty's architecture, threading model, and low‑level optimizations.

NettyRPCdistributed systems
0 likes · 19 min read
Why Netty? Building High‑Performance Distributed Services with Java
Top Architect
Top Architect
Jun 21, 2021 · Backend Development

Implementing High‑Performance Long‑Connection Services with Netty: Challenges and Optimizations

This article explains how to build a scalable long‑connection service using Netty, covering the underlying concepts, Linux kernel tuning, code examples for Java NIO and Netty, performance bottlenecks such as QPS, data‑structure and GC issues, and practical optimization techniques to achieve hundreds of thousands of concurrent connections.

Java NIOLinux TuningNetty
0 likes · 13 min read
Implementing High‑Performance Long‑Connection Services with Netty: Challenges and Optimizations
ITPUB
ITPUB
May 10, 2021 · Backend Development

Unveiling RocketMQ NameServer: How Seven Classes Power the Registry

This article breaks down the design and source‑code implementation of RocketMQ's NameServer, detailing its core responsibilities, component interactions, and the seven Java classes that together provide network handling, connection management, routing, configuration, and startup logic.

Backend ArchitectureMessage QueueNameServer
0 likes · 11 min read
Unveiling RocketMQ NameServer: How Seven Classes Power the Registry
Alibaba Cloud Native
Alibaba Cloud Native
May 3, 2021 · Backend Development

Why Dubbo Fails Under C10K Load and How to Fix It

This article details a large‑scale C10K performance test of Dubbo, analyzes why service calls time out under thousands of concurrent consumers, identifies heartbeat‑induced Netty thread saturation and TCP full‑connection‑queue overflow as root causes, and presents concrete optimizations that dramatically improve latency and stability.

Backend PerformanceC10KDubbo
0 likes · 13 min read
Why Dubbo Fails Under C10K Load and How to Fix It
21CTO
21CTO
Apr 30, 2021 · Backend Development

Why Dubbo Times Out Under C10K Load and How to Fix It

This article analyzes the C10K scenario where Dubbo‑based services experience massive timeout failures, examines root causes such as heartbeat‑induced Netty thread saturation and TCP backlog overflow, and presents a series of optimizations that dramatically improve latency, CPU usage, and stability in large‑scale deployments.

C10KDubboNetty
0 likes · 14 min read
Why Dubbo Times Out Under C10K Load and How to Fix It
Intelligent Backend & Architecture
Intelligent Backend & Architecture
Apr 30, 2021 · Backend Development

Why Netty Is the Go-To Framework for High‑Performance Java Backend Development

This article explains how Netty, an asynchronous event‑driven Java NIO framework, simplifies building high‑performance, maintainable network servers and clients by handling I/O, threading, and protocol concerns, and it covers its thread models, zero‑copy techniques, common interview questions, and real‑world use cases such as Dubbo and RocketMQ.

AsynchronousNIONetty
0 likes · 36 min read
Why Netty Is the Go-To Framework for High‑Performance Java Backend Development
Intelligent Backend & Architecture
Intelligent Backend & Architecture
Apr 29, 2021 · Backend Development

Why Netty Is the Go-To Framework for High‑Performance Java Backend Development

This article explains how Netty, an asynchronous event‑driven network framework built on Java NIO, simplifies the creation of high‑performance, scalable web servers and client components by handling I/O streams, connection management, threading, zero‑copy transfers, and offering flexible reactor thread models for various application scenarios.

NIONettyReactor Model
0 likes · 39 min read
Why Netty Is the Go-To Framework for High‑Performance Java Backend Development
IT Xianyu
IT Xianyu
Mar 31, 2021 · Backend Development

Open-Source Instant Messaging System (CIM) Overview and Features

This article introduces the open‑source CIM instant messaging system, detailing its server‑side architecture based on Netty or Mina, multi‑platform client support (WebSocket, Android, iOS, desktop), core modules, directory structure, and a preview of its console and client interfaces.

CIMInstant MessagingNetty
0 likes · 4 min read
Open-Source Instant Messaging System (CIM) Overview and Features
High Availability Architecture
High Availability Architecture
Mar 29, 2021 · Backend Development

Design and Implementation of a WebSocket Long‑Connection Gateway for Real‑Time Push

This article presents the design, implementation, and performance evaluation of a Netty‑based WebSocket long‑connection gateway that centralizes session management, decouples business logic, supports horizontal scaling, and provides monitoring and alerting for high‑throughput real‑time data push in iQIYI’s platform.

Distributed ArchitectureGatewayNetty
0 likes · 12 min read
Design and Implementation of a WebSocket Long‑Connection Gateway for Real‑Time Push
Programmer DD
Programmer DD
Mar 16, 2021 · Backend Development

Understanding Netty’s Thread Model: Reactor Patterns and Performance Optimizations

This article explains Netty’s high‑performance asynchronous NIO architecture, introduces the Reactor pattern and its three thread‑model variants, and details Netty’s core components such as Selector, EventLoopGroup, ChannelPipeline, and ByteBuf, highlighting how they improve scalability and efficiency.

Java NIONettyReactor pattern
0 likes · 11 min read
Understanding Netty’s Thread Model: Reactor Patterns and Performance Optimizations
IT Architects Alliance
IT Architects Alliance
Mar 14, 2021 · Backend Development

Evolution and Performance Optimization of Ximalaya’s HTTP Gateway: From Tomcat NIO to Netty Full‑Async Architecture

This article describes how Ximalaya’s high‑traffic HTTP gateway evolved from a Tomcat NIO + AsyncServlet design to a Netty‑based fully asynchronous architecture, detailing the challenges of blocking I/O, memory copying, GC pressure, and how layered redesign, lock‑free connection pools, comprehensive monitoring, and performance optimizations enabled stable handling of over 200 billion daily calls with peak QPS exceeding 40 k per machine.

AsynchronousGatewayMonitoring
0 likes · 15 min read
Evolution and Performance Optimization of Ximalaya’s HTTP Gateway: From Tomcat NIO to Netty Full‑Async Architecture
21CTO
21CTO
Mar 1, 2021 · Backend Development

How to Build a Scalable WebSocket Long‑Connection Gateway with Netty

This article explains the challenges of server‑push in HTTP, reviews WebSocket as the mainstream solution, and details the design, implementation, session management, monitoring, and performance testing of a Netty‑based distributed WebSocket long‑connection gateway used at iQIYI.

Distributed ArchitectureMonitoringNetty
0 likes · 12 min read
How to Build a Scalable WebSocket Long‑Connection Gateway with Netty
iQIYI Technical Product Team
iQIYI Technical Product Team
Feb 26, 2021 · Backend Development

Design and Implementation of a WebSocket Long‑Connection Gateway for iQIYI Services

iQIYI built a Netty‑based WebSocket long‑connection gateway that centralizes session management, uses RocketMQ for cluster‑wide broadcast, provides a simple HTTP push API, scales horizontally to millions of connections, integrates Prometheus/Grafana monitoring, and dramatically cuts development effort for real‑time features such as comments and authentication.

GatewayNettyPerformance Testing
0 likes · 15 min read
Design and Implementation of a WebSocket Long‑Connection Gateway for iQIYI Services
Code Ape Tech Column
Code Ape Tech Column
Feb 24, 2021 · Backend Development

How to Build a High‑Performance Java RPC Framework with Netty, Zookeeper, and Custom Load Balancing

This article walks through the design and implementation of a Java RPC framework, detailing added serialization options, multiple load‑balancing strategies, client‑side service caching, TCP long‑connection handling with Netty, performance testing, and provides the full source code for replication.

Load BalancingNettyPerformance Testing
0 likes · 17 min read
How to Build a High‑Performance Java RPC Framework with Netty, Zookeeper, and Custom Load Balancing
Architect's Tech Stack
Architect's Tech Stack
Feb 15, 2021 · Backend Development

Enhancing a Java RPC Framework: Protobuf/Kryo Serialization, Load‑Balancing Strategies, Connection Pooling and Performance Gains

This article describes a series of improvements to a Spring‑Boot based Java RPC framework—including support for Protobuf and Kryo serialization, multiple load‑balancing algorithms, client‑side service caching, TCP long‑connection reuse via Netty, and a performance test that reduces request latency by more than tenfold.

Load BalancingNettyRPC
0 likes · 15 min read
Enhancing a Java RPC Framework: Protobuf/Kryo Serialization, Load‑Balancing Strategies, Connection Pooling and Performance Gains
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Feb 5, 2021 · Backend Development

Scaling Netty RPC with Protostuff: 400k Objects/sec per Server

An in‑depth guide demonstrates how to combine Netty with Protostuff for high‑performance RPC, detailing serialization setup, custom encoder/decoder implementation, multi‑threading pitfalls, and stress‑testing results that achieve up to 400,000 objects per second per server in a clustered environment.

NettyProtostuffRPC
0 likes · 11 min read
Scaling Netty RPC with Protostuff: 400k Objects/sec per Server
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.

NettyTCPheartbeat
0 likes · 18 min read
Implementing Heartbeat and Reconnection Mechanisms with Netty in Java
21CTO
21CTO
Jan 29, 2021 · Backend Development

Scaling Netty RPC with Protostuff: High‑Throughput Serialization Tips

This article details how to build a high‑performance Netty RPC system using Protostuff for serialization, covering dependency setup, custom encoder/decoder implementation, multithreaded buffer handling, and stress‑test results that achieve hundreds of thousands of objects per second per server.

NettyProtostuffRPC
0 likes · 10 min read
Scaling Netty RPC with Protostuff: High‑Throughput Serialization Tips
Sohu Tech Products
Sohu Tech Products
Jan 28, 2021 · Operations

Performance Troubleshooting: JVM Safepoint, Biased Locking, Netty Worker Blocking, and Log Framework Issues

This article details a systematic investigation of various backend performance problems—including CMS GC delays, biased‑lock revocation, Netty worker thread blocking, and log‑framework overhead—provides root‑cause analysis, JVM tuning parameters, and practical recommendations to mitigate latency spikes in production services.

JVMNettySafepoint
0 likes · 16 min read
Performance Troubleshooting: JVM Safepoint, Biased Locking, Netty Worker Blocking, and Log Framework Issues
JD Retail Technology
JD Retail Technology
Dec 28, 2020 · Backend Development

Simplified Analysis of Netty Server and Client Startup and Communication

This article provides a concise, code‑driven walkthrough of Netty's core components—including event‑loop groups, channel initialization, pipeline handling, and the server‑client handshake process—by simplifying the original source to highlight the essential mechanisms behind asynchronous network communication in Java.

Channel pipelineJava NIONetty
0 likes · 19 min read
Simplified Analysis of Netty Server and Client Startup and Communication
JavaEdge
JavaEdge
Dec 25, 2020 · Backend Development

How Netty Accepts Connections: Inside NioEventLoop and Worker Threads

This article explains how Netty's boss and worker NioEventLoop threads collaborate to accept socket connections, register selectors, and transition to read operations, detailing the underlying selector polling, OP_ACCEPT handling, and the code paths that trigger channel activation.

Java NIONettyNioEventLoop
0 likes · 4 min read
How Netty Accepts Connections: Inside NioEventLoop and Worker Threads
JavaEdge
JavaEdge
Dec 22, 2020 · Backend Development

Demystifying Netty's Main, Boss, and Worker Threads in Java NIO

This article explains how Netty creates and uses the main thread, boss thread, and worker threads through NioEventLoopGroup and selectors, detailing the initialization of ServerSocketChannel, event registration, and the transition from OP_ACCEPT registration to active listening.

NettyNioEventLoopGroupbackend
0 likes · 3 min read
Demystifying Netty's Main, Boss, and Worker Threads in Java NIO
JavaEdge
JavaEdge
Dec 15, 2020 · Backend Development

Mastering Netty Codecs: From ByteToMessageDecoder to Fixed‑Length and Line Decoders

This guide explains how Netty handles encoding and decoding, covering abstract decoder classes, concrete implementations like ByteToMessageDecoder, ReplayingDecoder, fixed‑length and line‑based decoders, and essential reference‑count management for building robust network applications.

ByteToMessageDecoderNettyReferenceCounting
0 likes · 6 min read
Mastering Netty Codecs: From ByteToMessageDecoder to Fixed‑Length and Line Decoders
vivo Internet Technology
vivo Internet Technology
Dec 15, 2020 · Backend Development

Designing a High‑Performance Java‑Based API Gateway with Zuul2 and Netty

This article details the background, technology selection, Zuul2 architecture, HTTP parsing, Netty pipeline, filter chains, dynamic configuration, routing, load balancing, security, monitoring, zero‑downtime deployment, cluster isolation, and migration strategies for building a robust Java‑centric API gateway.

API GatewayDynamic ConfigurationMicroservices
0 likes · 23 min read
Designing a High‑Performance Java‑Based API Gateway with Zuul2 and Netty
JavaEdge
JavaEdge
Dec 12, 2020 · Backend Development

Why Does TCP Have Sticky and Half Packets? Causes and Effective Solutions

This article explains why TCP experiences sticky and half packets, analyzes the underlying causes such as buffer size mismatches and MTU limits, and presents practical solutions including short connections, fixed‑length framing, delimiter‑based framing, and length‑field framing, with their advantages and trade‑offs.

NettyTCPnetwork programming
0 likes · 5 min read
Why Does TCP Have Sticky and Half Packets? Causes and Effective Solutions
Programmer DD
Programmer DD
Dec 1, 2020 · Backend Development

Mastering Zero-Copy in Java: Boost I/O Performance with NIO, Netty & Kafka

Zero-copy techniques eliminate unnecessary data copying between user and kernel space, dramatically improving I/O performance; this article explains core concepts, Java NIO’s MappedByteBuffer and DirectByteBuffer, channel-to-channel transfers, Netty’s composite buffers, and how frameworks like Kafka and RocketMQ leverage zero-copy.

NIONettyjava
0 likes · 12 min read
Mastering Zero-Copy in Java: Boost I/O Performance with NIO, Netty & Kafka
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Nov 30, 2020 · Backend Development

Netty Architecture and Principles: An Introductory Tutorial

This tutorial provides a detailed introduction to Netty, covering its architecture, core concepts such as buffers, channels, selectors, reactor thread models, zero‑copy techniques, and includes practical TCP server/client code examples, helping readers understand and apply Netty for high‑performance Java network programming.

Java NIONettyReactor
0 likes · 42 min read
Netty Architecture and Principles: An Introductory Tutorial
Qunar Tech Salon
Qunar Tech Salon
Nov 25, 2020 · Backend Development

Diagnosing and Resolving Thread Leak in a Java Backend System

This article describes how the author investigated recurring errors in a Java-based lecture hall system, identified thread pool leaks caused by improper use of AsyncHttpClient, and resolved the issue through command‑line diagnostics, code fixes, and system monitoring, improving stability.

DebuggingDubboNetty
0 likes · 7 min read
Diagnosing and Resolving Thread Leak in a Java Backend System
Top Architect
Top Architect
Nov 17, 2020 · Backend Development

Java Netty‑Based Chat Application with Swing UI and MySQL Integration

This article details the design and implementation of a Java chat system that uses Netty for server‑side networking, Swing for the client UI, and MySQL with C3P0 for data persistence, covering features such as user authentication, friend management, single‑chat messaging, and online status detection.

MySQLNettyNetworking
0 likes · 23 min read
Java Netty‑Based Chat Application with Swing UI and MySQL Integration
Java Captain
Java Captain
Nov 14, 2020 · Backend Development

Netty‑Based Chat Application: Functional Implementation and Code Walkthrough

This article presents a comprehensive walkthrough of a Java chat application built with Netty for server‑side communication and Swing for the client UI, detailing functional features such as password, nickname, and signature updates, friend management, single‑chat messaging, online status detection, and includes full source code snippets and execution screenshots.

Friend ManagementNettySwing
0 likes · 19 min read
Netty‑Based Chat Application: Functional Implementation and Code Walkthrough
JavaEdge
JavaEdge
Nov 2, 2020 · Backend Development

Understanding Traditional Socket vs Netty: Core Components and Workflow

This article explains the fundamentals of traditional socket programming and compares it with Netty's architecture, covering server and client components, HTTP request handling steps, Netty's NioEventLoop, Channel, ByteBuf, Pipeline, and unsafe implementations, all illustrated with diagrams and code snippets.

NettyNetwork IObackend development
0 likes · 6 min read
Understanding Traditional Socket vs Netty: Core Components and Workflow
JavaEdge
JavaEdge
Oct 30, 2020 · Backend Development

How Netty’s EventLoop Thread Model Powers High‑Performance Networking

This article explains Netty's thread model, covering the evolution from simple Thread usage to Executor‑based pools, the design of the EventLoop interface, task scheduling mechanisms, differences between Netty 3 and Netty 4, and how thread allocation and ThreadLocal affect performance and scalability.

EventLoopNettyThread Model
0 likes · 11 min read
How Netty’s EventLoop Thread Model Powers High‑Performance Networking
58 Tech
58 Tech
Oct 21, 2020 · Backend Development

Understanding Java Memory Pools: Netty’s Implementation and Underlying Theory

This article revisits memory allocation and reclamation concepts by examining Java's Netty memory pool implementation, its theoretical basis in jemalloc, and practical design choices such as arena allocation, thread‑local caches, pool chunks, sub‑pages, and multi‑threaded performance considerations.

Garbage CollectionMemory poolNetty
0 likes · 21 min read
Understanding Java Memory Pools: Netty’s Implementation and Underlying Theory
Top Architect
Top Architect
Oct 21, 2020 · Backend Development

Design and Optimization of High‑Concurrency Push Services Using Netty

This article analyzes common questions about Netty‑based push services, presents a real‑world IoT case study, and provides detailed design guidelines—including kernel tuning, connection handling, heartbeat configuration, buffer management, memory pooling, logging pitfalls, TCP and JVM tuning—to help engineers build stable, scalable, and high‑performance million‑connection push systems.

MemoryNettyPush Service
0 likes · 24 min read
Design and Optimization of High‑Concurrency Push Services Using Netty
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Sep 29, 2020 · Backend Development

Analyzing and Fixing Netty FixedChannelPool Connection Timeout Bugs

This article investigates a recurring Netty connection‑pool timeout bug caused by missing acquire‑timeout handling, explains the internal workings of FixedChannelPool's acquire and release mechanisms, and presents a corrected implementation that configures an AcquireTimeoutAction, adjusts pool sizes, and removes premature timeout calls.

Connection PoolFixedChannelPoolNetty
0 likes · 29 min read
Analyzing and Fixing Netty FixedChannelPool Connection Timeout Bugs
The Dominant Programmer
The Dominant Programmer
Sep 20, 2020 · Backend Development

Integrating Protobuf with Netty for Java Object Transmission

This guide walks through building a Netty server and client that exchange Java objects using Protobuf serialization, covering .proto definition, code generation with protoc, pipeline configuration with Netty's Protobuf handlers, and full example implementations for both sides.

Code ExampleNettyProtobuf
0 likes · 8 min read
Integrating Protobuf with Netty for Java Object Transmission
Programmer DD
Programmer DD
Sep 9, 2020 · Backend Development

How to Integrate Spring Boot with Netty Using Protobuf for Efficient Data Transfer

This article walks through integrating Spring Boot with Netty and using Google Protobuf for binary data exchange, covering Protobuf basics, Maven setup, code generation, server and client implementations, heartbeat handling, reconnection logic, and testing results, all with complete Java examples.

Data TransferNettyProtobuf
0 likes · 20 min read
How to Integrate Spring Boot with Netty Using Protobuf for Efficient Data Transfer
Alibaba Cloud Developer
Alibaba Cloud Developer
Aug 6, 2020 · Backend Development

Mastering Java I/O: From BIO to Netty’s Reactor Model Explained

This article explains the evolution of Java I/O—from blocking BIO to non‑blocking NIO and asynchronous AIO—covers the Reactor pattern and its single‑thread, multi‑thread, and master‑slave models, and details Netty’s thread groups, channel pipeline, and async non‑blocking communication.

I/ONIONetty
0 likes · 13 min read
Mastering Java I/O: From BIO to Netty’s Reactor Model Explained
Programmer DD
Programmer DD
Aug 4, 2020 · Backend Development

Mastering Sticky Packet and Splitting Issues in Netty RPC Applications

This article explains the root causes of sticky and split packet problems in TCP-based RPC frameworks, outlines four common mitigation strategies, and provides detailed Netty implementations—including FixedLengthFrameDecoder, LineBasedFrameDecoder, LengthFieldBasedFrameDecoder, and custom handlers—complete with runnable Java code examples.

NettyRPCpacket framing
0 likes · 21 min read
Mastering Sticky Packet and Splitting Issues in Netty RPC Applications
Architect
Architect
Jul 26, 2020 · Backend Development

Understanding Zero‑Copy in Java: I/O Concepts, mmap, Sendfile, and Netty

This article explains the zero‑copy technique in Java, covering basic I/O concepts, buffer management, mmap + write and Sendfile methods, and how frameworks like NIO, Netty, Kafka, and RocketMQ use these mechanisms to eliminate data copies and improve performance.

NIONettyjava
0 likes · 11 min read
Understanding Zero‑Copy in Java: I/O Concepts, mmap, Sendfile, and Netty
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.

Message EncodingNettyTCP
0 likes · 15 min read
Implementing a Custom Protocol with Netty: Design, Encoding/Decoding, and Heartbeat
Architecture Digest
Architecture Digest
Jul 19, 2020 · Backend Development

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

This article explains why a custom protocol can be more efficient than HTTP for service-to-service communication, defines a simple binary protocol with header and body, and demonstrates a complete Netty implementation—including message classes, encoders/decoders, resolvers, heartbeat handling, and client/server examples.

Message EncodingNettyTCP
0 likes · 18 min read
Implementing a Custom Protocol with Netty: Design, Encoding/Decoding, and Heartbeat
Programmer DD
Programmer DD
Jul 13, 2020 · Backend Development

Unlocking High-Performance I/O: Java Zero-Copy Techniques Explained

This article explains the principles of zero‑copy I/O, covering buffer concepts, virtual memory, mmap + write and sendfile methods, and demonstrates Java implementations using MappedByteBuffer, DirectByteBuffer, channel‑to‑channel transfers, as well as Netty’s CompositeChannelBuffer for efficient data handling.

NIONettyjava
0 likes · 15 min read
Unlocking High-Performance I/O: Java Zero-Copy Techniques Explained
Selected Java Interview Questions
Selected Java Interview Questions
Jul 6, 2020 · Backend Development

Comprehensive Netty Tutorial for Beginners: Installation, Core Concepts, and a Simple String Transmission Example

This article provides a step‑by‑step Netty tutorial for Java beginners, covering framework basics, installation of JDK, Maven and IDEA, core Netty components, differences between BIO/NIO/AIO, practical usage scenarios, and complete client‑server code to transmit a simple string.

MavenNettyTutorial
0 likes · 19 min read
Comprehensive Netty Tutorial for Beginners: Installation, Core Concepts, and a Simple String Transmission Example
dbaplus Community
dbaplus Community
Jul 2, 2020 · Backend Development

Why High Concurrency Is Really About Squeezing CPU Performance

The article explains that high concurrency in distributed systems is measured by QPS, but its essence lies in effectively utilizing CPU resources, discusses control‑variable analysis of the HTTP request flow, compares PHP‑Swoole and Java‑Netty implementations, and shows how coroutine‑based designs can dramatically boost throughput when I/O blocking is present.

Backend PerformanceNettySwoole
0 likes · 15 min read
Why High Concurrency Is Really About Squeezing CPU Performance
JavaEdge
JavaEdge
May 6, 2020 · Backend Development

Why Netty Powers High‑Performance Java Network Applications

Netty, a Java‑based asynchronous event‑driven framework created in 2008, offers a unified API for multiple transports, a powerful reactor thread model, built‑in codecs, extensive protocol support, high throughput, low latency, robust error handling, and a vibrant ecosystem adopted by major tech companies and open‑source projects.

AsynchronousNettyevent-driven
0 likes · 4 min read
Why Netty Powers High‑Performance Java Network Applications
Xiaokun's Architecture Exploration Notes
Xiaokun's Architecture Exploration Notes
Apr 28, 2020 · Backend Development

How Netty Builds and Manages Its Channel Pipeline: Creation, Adding, and Destruction

This article explains Netty's channel pipeline lifecycle—including how the responsibility chain is created during channel initialization, how handlers are added and removed, and how the pipeline is torn down during channel closure—while providing detailed source‑code excerpts and diagrams to illustrate each step.

ChannelPipelineEventLoopNetty
0 likes · 16 min read
How Netty Builds and Manages Its Channel Pipeline: Creation, Adding, and Destruction