Tagged articles
333 articles
Page 2 of 4
Top Architect
Top Architect
May 6, 2023 · Backend Development

Netty TCP Client Demo with Spring Boot: Architecture, Message Queue, and Complete Code Walkthrough

An in‑depth tutorial demonstrates building a Netty‑based TCP client with Spring Boot, covering project architecture, module layout, message‑queue simulation, detailed Java code for client creation, connection handling, and testing endpoints, providing a complete, production‑ready demo for IoT socket communication.

BackendMessage QueueNetty
0 likes · 26 min read
Netty TCP Client Demo with Spring Boot: Architecture, Message Queue, and Complete Code Walkthrough
Top Architect
Top Architect
May 3, 2023 · Backend Development

Understanding RPC: Principles, Implementation Details, and Code Walkthrough

This article explains the fundamentals of Remote Procedure Call (RPC), covering its definition, core challenges, service registration and discovery with Zookeeper, client proxy generation, network transmission using Netty, serialization and compression, server-side request handling via reflection or Javassist, and performance comparisons between proxy strategies.

Distributed SystemsJavassistNetty
0 likes · 24 min read
Understanding RPC: Principles, Implementation Details, and Code Walkthrough
Top Architect
Top Architect
Apr 28, 2023 · Backend Development

Netty TCP Demo: Long‑Lived Socket Connection Architecture and Implementation

This article presents a complete Netty‑based TCP demo for IoT projects, detailing the project background, architecture, module layout, business flow, and in‑depth Java code examples—including a local queue, multithreaded processing, client creation, Redis locking, and SpringBoot integration—along with testing instructions and source links.

MessageQueueNettySocket
0 likes · 19 min read
Netty TCP Demo: Long‑Lived Socket Connection Architecture and Implementation
Top Architect
Top Architect
Apr 21, 2023 · Backend Development

Netty TCP Long‑Connection Demo for IoT Messaging with Redis and Spring Boot

This article presents a complete Netty‑based TCP client/server demo for IoT long‑connection messaging, explains the project architecture, module layout, business flow, and provides detailed Java code for a local message queue, multithreaded processing, client creation, handler logic, and testing endpoints.

IoTMessageQueueNetty
0 likes · 19 min read
Netty TCP Long‑Connection Demo for IoT Messaging with Redis and Spring Boot
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Apr 13, 2023 · Backend Development

Comprehensive Introduction to Netty: Features, Architecture, High‑Performance Design, Core Components, and Application Scenarios

Netty is a high‑performance, asynchronous, event‑driven NIO framework widely used in Java backend systems such as Dubbo and RocketMQ, and this article explains its fundamentals, key characteristics, architectural layers, high‑performance design, core components, and typical application scenarios across internet, gaming, and big‑data domains.

NettyNetwork Frameworkbackend-development
0 likes · 9 min read
Comprehensive Introduction to Netty: Features, Architecture, High‑Performance Design, Core Components, and Application Scenarios
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Apr 12, 2023 · Backend Development

Understanding Java I/O Models: BIO, NIO, AIO and Their Applications

This article explains the three main Java I/O models—BIO (blocking), NIO (non‑blocking), and AIO (asynchronous)—detailing their characteristics, differences in blocking behavior, core components like Buffer, Channel, and Selector, and shows how they are applied in popular frameworks such as Netty, Mina, and Dubbo.

AsynchronousBackendI/O Models
0 likes · 9 min read
Understanding Java I/O Models: BIO, NIO, AIO and Their Applications
Selected Java Interview Questions
Selected Java Interview Questions
Mar 22, 2023 · Backend Development

Netty TCP Demo: Architecture, Code Walkthrough, and Usage Guide

This article presents a comprehensive Netty TCP demo project, covering its architecture, module layout, business flow, detailed Java code for message queuing, client execution, handler implementation, testing endpoints, and deployment considerations, providing a practical learning resource for backend developers.

NettySocketSpring Boot
0 likes · 21 min read
Netty TCP Demo: Architecture, Code Walkthrough, and Usage Guide
JavaEdge
JavaEdge
Feb 26, 2023 · Backend Development

Which Network I/O Model Should You Choose for RPC Design?

This article explains the role of network communication in RPC, compares blocking I/O, non‑blocking I/O, I/O multiplexing and asynchronous I/O, discusses why blocking I/O and multiplexing dominate, introduces zero‑copy techniques at the OS and Netty levels, and shows how Netty optimizes data handling for high‑performance RPC.

NettyNetwork I/ORPC
0 likes · 11 min read
Which Network I/O Model Should You Choose for RPC Design?
Architect's Guide
Architect's Guide
Jan 28, 2023 · Backend Development

Implementing a Simple Java RPC Framework with Zookeeper, Netty, and Javassist

This article walks through the design and implementation of a lightweight Java RPC framework, covering core concepts such as service registration and discovery with Zookeeper, network communication via Netty, serialization, compression, dynamic proxy generation using Javassist, and performance comparisons between reflection and bytecode‑generated proxies.

Distributed SystemsJavassistNetty
0 likes · 23 min read
Implementing a Simple Java RPC Framework with Zookeeper, Netty, and Javassist
Top Architect
Top Architect
Jan 19, 2023 · Backend Development

Implementing a Simple Java RPC Framework: Architecture, Service Registration, Proxy Generation, and Network Transport

This article explains the principles and implementation of a lightweight Java RPC framework, covering service registration with Zookeeper, client-side dynamic proxies, serialization, compression, Netty-based network transport, and both reflection and Javassist proxy generation, with extensive code examples and performance comparison.

Distributed SystemsJavassistNetty
0 likes · 25 min read
Implementing a Simple Java RPC Framework: Architecture, Service Registration, Proxy Generation, and Network Transport
Huolala Tech
Huolala Tech
Dec 22, 2022 · Mobile Development

How Huolala Built a Scalable Cloud Real‑Device Testing Platform for Mobile Apps

Huolala's data team created a cloud‑based real‑device platform that centralizes phone resources, enables remote screen casting and control via adb, minicap, and minitouch, and uses Spring Boot and Netty‑WebSocket to deliver scalable, cost‑effective mobile testing across multiple scenarios.

ADBNettySpring Boot
0 likes · 13 min read
How Huolala Built a Scalable Cloud Real‑Device Testing Platform for Mobile Apps
HomeTech
HomeTech
Dec 6, 2022 · Backend Development

Design and Optimization of a High‑Performance IM Instant Messaging Platform

This article details the architectural decisions, network protocol choices, message framing strategies, and server‑level optimizations—including Netty adoption, TCP handling, token management, load balancing, NIC queue configuration, and CPU affinity—that enable a scalable, low‑latency instant messaging service supporting millions of concurrent connections.

BackendIMInstant Messaging
0 likes · 19 min read
Design and Optimization of a High‑Performance IM Instant Messaging Platform
Top Architect
Top Architect
Nov 16, 2022 · Backend Development

Understanding Zero‑Copy in Java: Concepts, Mechanisms, and Implementations

This article explains the zero‑copy technique in Java, covering I/O fundamentals, kernel read/write flow, mmap+write and Sendfile methods, virtual memory mapping, MappedByteBuffer and DirectByteBuffer usage, channel‑to‑channel transfer, Netty composite buffers, and how frameworks like RocketMQ and Kafka leverage zero‑copy for performance.

Java NIONettyZero Copy
0 likes · 13 min read
Understanding Zero‑Copy in Java: Concepts, Mechanisms, and Implementations
DeWu Technology
DeWu Technology
Nov 7, 2022 · Backend Development

Design and Implementation of a Custom RPC Framework

The article explains RPC fundamentals and why they are vital for distributed systems, then details the core components—service provider, consumer, and registry—along with extensions such as load‑balancing, circuit breaking, and serialization, and walks through a concrete Java implementation using Zookeeper, Netty, custom protocol, JSON/Protobuf, and Spring Boot SPI plugins.

NettyRPCjava
0 likes · 11 min read
Design and Implementation of a Custom RPC Framework
Architect's Guide
Architect's Guide
Nov 6, 2022 · Backend Development

Zero‑Copy Techniques in Java: Buffers, MappedByteBuffer, Sendfile, and Netty

This article explains the concept of zero‑copy, how it eliminates redundant data copying in I/O operations, and demonstrates its implementation in Java through buffers, mmap+write, Sendfile, MappedByteBuffer, DirectByteBuffer, channel‑to‑channel transfers, and Netty’s composite buffers.

FileChannelJava NIOMappedByteBuffer
0 likes · 12 min read
Zero‑Copy Techniques in Java: Buffers, MappedByteBuffer, Sendfile, and Netty
Top Architect
Top Architect
Oct 25, 2022 · Backend Development

Understanding Netty's Asynchronous Model, Linux I/O Multiplexing (select, poll, epoll) and JNI Integration

This article explains Netty's high‑performance asynchronous architecture, compares classic multithread, Reactor, select, poll and epoll I/O multiplexing models, describes level‑triggered versus edge‑triggered event handling, and provides a step‑by‑step JNI example and a hand‑written epoll server implementation in C.

BackendIO MultiplexingJNI
0 likes · 34 min read
Understanding Netty's Asynchronous Model, Linux I/O Multiplexing (select, poll, epoll) and JNI Integration
Architect's Guide
Architect's Guide
Oct 21, 2022 · Backend Development

Understanding Netty's Asynchronous Model and Linux epoll: From the Stone Sword Analogy to High‑Performance IO

This article explains how Netty implements a powerful asynchronous, event‑driven architecture using the Reactor pattern, compares classic multithread, select, poll and epoll I/O multiplexing models, demonstrates JNI integration with Java, and provides a complete, annotated epoll server example with level‑triggered and edge‑triggered handling for high‑concurrency backend development.

AsynchronousBackendIO Multiplexing
0 likes · 32 min read
Understanding Netty's Asynchronous Model and Linux epoll: From the Stone Sword Analogy to High‑Performance IO
Java Architect Essentials
Java Architect Essentials
Sep 26, 2022 · Backend Development

Understanding Netty's FastThreadLocal: Background, Implementation, and Usage

This article explains why Netty created FastThreadLocal, describes its internal design and source‑code analysis—including UnpaddedInternalThreadLocalMap, InternalThreadLocalMap, FastThreadLocalThread, and FastThreadLocal implementations—covers performance degradation in ordinary threads, outlines its three resource‑recycling mechanisms, and shows how it is used for ByteBuf allocation in Netty.

FastThreadLocalNettyThreadLocal
0 likes · 14 min read
Understanding Netty's FastThreadLocal: Background, Implementation, and Usage
Architect
Architect
Sep 13, 2022 · Backend Development

Understanding Zero‑Copy in Java I/O, NIO, Netty and Messaging Systems

This article explains the concept of zero‑copy, its benefits for I/O performance, and how Java NIO, Netty, Kafka, RocketMQ and related APIs such as mmap+write and sendfile implement zero‑copy to avoid unnecessary data copying between kernel and user space.

I/O performanceJava NIOMappedByteBuffer
0 likes · 13 min read
Understanding Zero‑Copy in Java I/O, NIO, Netty and Messaging Systems
Code Ape Tech Column
Code Ape Tech Column
Sep 9, 2022 · Backend Development

Understanding Netty’s Asynchronous Model, Epoll, and IO Multiplexing – From Theory to a Hand‑Written Server

This article explains Netty’s reactor‑based asynchronous architecture, compares classic multithread, select, poll and epoll models, demonstrates JNI integration with C code, and provides a complete hand‑written epoll server example to illustrate high‑performance backend networking in Java.

IO MultiplexingJNINetty
0 likes · 34 min read
Understanding Netty’s Asynchronous Model, Epoll, and IO Multiplexing – From Theory to a Hand‑Written Server
IT Architects Alliance
IT Architects Alliance
Aug 30, 2022 · Backend Development

Understanding Netty’s Asynchronous Model, Linux epoll, and JNI: Theory, Code Walkthrough, and Hand‑written Server Implementation

This article explains Netty’s high‑performance asynchronous architecture, the evolution of I/O multiplexing models from select to poll and epoll, demonstrates Java‑C integration via JNI with detailed code examples, and provides a complete hand‑written epoll server in C for achieving million‑connection concurrency.

IO MultiplexingJNILinux
0 likes · 32 min read
Understanding Netty’s Asynchronous Model, Linux epoll, and JNI: Theory, Code Walkthrough, and Hand‑written Server Implementation
Top Architect
Top Architect
Aug 25, 2022 · Backend Development

Building a Custom RPC Spring Starter: Architecture, Principles, and Code Walkthrough

This article explains the fundamentals of remote procedure call (RPC), presents a complete system architecture diagram, and provides a step‑by‑step implementation of a custom rpc‑spring‑starter using Java, Spring, Zookeeper for service registration, Netty for network communication, and dynamic proxy techniques for client‑side invocation.

Dynamic ProxyNettyRPC
0 likes · 18 min read
Building a Custom RPC Spring Starter: Architecture, Principles, and Code Walkthrough
Architect's Guide
Architect's Guide
Aug 24, 2022 · Backend Development

Optimizing Long‑Connection Services with Netty: From Millions of Connections to High QPS

This article summarizes the challenges and optimization techniques for building a high‑performance long‑connection service with Netty, covering non‑blocking I/O, Linux kernel tuning, client‑side testing, VM‑based scaling, data‑structure tweaks, CPU and GC bottlenecks, and the final results of achieving hundreds of thousands of connections and tens of thousands of QPS on a single server.

GC tuningJava NIOLinux Tuning
0 likes · 14 min read
Optimizing Long‑Connection Services with Netty: From Millions of Connections to High QPS
Programmer DD
Programmer DD
Aug 17, 2022 · Backend Development

How to Build a Netty WebSocket Server with Spring Boot and Java

This tutorial walks through creating a Netty‑based WebSocket server in Java, adding Maven dependencies, integrating it with a SpringBootApplication, implementing server and channel handlers, crafting a simple HTML client, and extending the setup to support URL parameters, complete with code examples and screenshots.

NettySpringBootWebSocket
0 likes · 12 min read
How to Build a Netty WebSocket Server with Spring Boot and Java
Bin's Tech Cabin
Bin's Tech Cabin
Aug 11, 2022 · Backend Development

Unlocking Netty’s ByteBuf: A Deep Dive into Java NIO Buffers and Byte Order

This article explores Netty’s low‑level data container ByteBuf by examining Java NIO Buffer design, its core attributes, view mechanisms, heap and direct implementations, byte‑order handling, and how to read and write primitive types, providing a comprehensive foundation for high‑performance network programming.

Byte OrderByteBufHeapByteBuffer
0 likes · 54 min read
Unlocking Netty’s ByteBuf: A Deep Dive into Java NIO Buffers and Byte Order
Programmer DD
Programmer DD
Aug 4, 2022 · Backend Development

Build a Netty‑Powered Instant Chat Plugin for IntelliJ IDEA – Full Guide

This article introduces XEChat‑Idea, a Netty‑based instant messaging and game‑battle plugin for IntelliJ IDEA, detailing its features, project structure, required environment, step‑by‑step build, run and deployment instructions for both the server and the IDEA plugin, and how to install it locally.

Chat PluginGradleIntelliJ IDEA
0 likes · 5 min read
Build a Netty‑Powered Instant Chat Plugin for IntelliJ IDEA – Full Guide
Laravel Tech Community
Laravel Tech Community
Jul 26, 2022 · Backend Development

Netty 5.0.0.Alpha4 Released with API Cleanup and Unix Domain Socket Support

Netty 5.0.0.Alpha4 has been released, removing duplicated code, cleaning up the API, adding ProtocolFamily‑based socket creation, renaming options, supporting JDK Unix Domain Sockets, improving EventLoop registration, fixing macOS disconnect, and replacing synchronized blocks with Java Locks for better Loom compatibility.

BackendNettyNetworking
0 likes · 3 min read
Netty 5.0.0.Alpha4 Released with API Cleanup and Unix Domain Socket Support
macrozheng
macrozheng
Jul 22, 2022 · Backend Development

Build an Instant Chat & Game Plugin for IntelliJ IDEA with Netty

This guide walks you through installing, using, and deploying a Netty‑based instant messaging and game plugin for IntelliJ IDEA, covering setup steps, chat commands, game play, server deployment with Maven, and how to explore its source code for learning.

ChatIntelliJNetty
0 likes · 4 min read
Build an Instant Chat & Game Plugin for IntelliJ IDEA with Netty
Selected Java Interview Questions
Selected Java Interview Questions
Jul 21, 2022 · Backend Development

XEChat-Idea: Netty‑Based Instant Chat Plugin for IntelliJ IDEA – Overview, Structure, Environment, and Deployment Guide

This article introduces XEChat‑Idea, a Netty‑based instant messaging and game‑battle plugin for IntelliJ IDEA, detailing its project structure, required development environment, and step‑by‑step instructions for building, running, and deploying both the server and the IDEA plugin.

ChatIDEA PluginNetty
0 likes · 4 min read
XEChat-Idea: Netty‑Based Instant Chat Plugin for IntelliJ IDEA – Overview, Structure, Environment, and Deployment Guide
Architect's Guide
Architect's Guide
Jul 19, 2022 · Backend Development

Design and Implementation of a Custom Java RPC Framework

This article presents a comprehensive overview of a hand‑crafted RPC framework built with Spring Boot, Netty, and Zookeeper, covering its core concepts, architecture, custom message protocol, load‑balancing strategies, serialization choices, starter design, deployment steps, and testing procedures.

Distributed SystemsNettyRPC
0 likes · 15 min read
Design and Implementation of a Custom Java RPC Framework
Su San Talks Tech
Su San Talks Tech
Jul 17, 2022 · Backend Development

How xxl-job Leverages Netty and Dynamic Proxies for High‑Performance RPC

This article explores xxl-job’s underlying communication architecture, detailing how it employs Netty HTTP, dynamic proxy patterns, full asynchronous processing, and thread‑blocking mechanisms to achieve efficient remote procedure calls, accompanied by code examples and a visual activity diagram.

Dynamic ProxyNettyRPC
0 likes · 8 min read
How xxl-job Leverages Netty and Dynamic Proxies for High‑Performance RPC
Bin's Tech Cabin
Bin's Tech Cabin
Jul 8, 2022 · Backend Development

Graceful Shutdown in Java: From Kernel Signals to Netty, Spring & Dubbo

This article explores the complete lifecycle of graceful shutdown for Java server applications, detailing how operating‑system signals, JVM shutdown hooks, and framework‑level mechanisms in Spring, Dubbo, and Netty collaborate to safely stop services while preserving in‑flight requests and resources.

DubboGraceful ShutdownJVM
0 likes · 75 min read
Graceful Shutdown in Java: From Kernel Signals to Netty, Spring & Dubbo
Top Architect
Top Architect
Jul 7, 2022 · Backend Development

Building a Simple Java RPC Framework: Service Registration, Discovery, and Proxy Generation

This article explains the core concepts and implementation steps of a lightweight Java RPC framework, covering RPC definition, service registration and discovery with Zookeeper, client-side dynamic proxies, network transmission using Netty, serialization, compression, and two server‑side proxy generation strategies (reflection and Javassist).

JavassistNettyRPC
0 likes · 25 min read
Building a Simple Java RPC Framework: Service Registration, Discovery, and Proxy Generation
Yang Money Pot Technology Team
Yang Money Pot Technology Team
Jul 4, 2022 · Backend Development

Understanding Netty’s Multithreaded Reactor Model and Its Application in an Online Customer Service IM System

This article explains Netty’s multithreaded Reactor architecture, introduces the underlying concepts such as Channel, ChannelPipeline, and EventLoop, shows how threads are allocated to ChannelHandlers, and demonstrates how to customize thread pools for customer‑service and agent‑side logic in an IM system.

EventLoopNettyReactor Pattern
0 likes · 21 min read
Understanding Netty’s Multithreaded Reactor Model and Its Application in an Online Customer Service IM System
Java Backend Technology
Java Backend Technology
Jun 29, 2022 · Backend Development

How xxl-job Leverages Netty and Dynamic Proxies for High‑Performance RPC

xxl-job uses Netty HTTP for communication, employing dynamic proxy patterns, full asynchronous processing, and thread‑blocking mechanisms to efficiently dispatch tasks from the scheduler to executors, with detailed code examples illustrating request IDs, future responses, and synchronized result retrieval.

AsynchronousDynamic ProxyNetty
0 likes · 8 min read
How xxl-job Leverages Netty and Dynamic Proxies for High‑Performance RPC
Selected Java Interview Questions
Selected Java Interview Questions
Jun 27, 2022 · Backend Development

Implementation Principles and Sample Code of RPC (Remote Procedure Call) in Java

This article explains the fundamentals of RPC, describes the components involved in a basic remote call, and provides a complete Java implementation using Spring, custom XML configuration, Netty for network communication, and Zookeeper for service registration and discovery, complete with server and client code examples.

NettyRPCZooKeeper
0 likes · 18 min read
Implementation Principles and Sample Code of RPC (Remote Procedure Call) in Java
IT Architects Alliance
IT Architects Alliance
Jun 12, 2022 · Backend Development

Design and Implementation of the xxl-job Communication Layer Using Netty and Dynamic Proxy

This article explains how xxl-job implements its communication layer with Netty HTTP, outlines the overall workflow, and highlights key design choices such as dynamic proxy abstraction, full asynchronous processing, and request‑ID based thread synchronization, accompanied by detailed Java code examples.

AsynchronousDistributed SchedulingDynamic Proxy
0 likes · 8 min read
Design and Implementation of the xxl-job Communication Layer Using Netty and Dynamic Proxy
Big Data Technology & Architecture
Big Data Technology & Architecture
Jun 6, 2022 · Backend Development

Netty Overview: Core Concepts, Architecture, and Practical Implementation

This article provides a comprehensive guide to Netty, covering its definition, advantages, key features, application scenarios, performance characteristics, architectural components, threading models, code examples, handling of packet framing, zero‑copy techniques, connection management, object pooling, and supported serialization protocols.

AsynchronousNettyNetworking
0 likes · 24 min read
Netty Overview: Core Concepts, Architecture, and Practical Implementation
Selected Java Interview Questions
Selected Java Interview Questions
May 24, 2022 · Backend Development

Implementing a Netty Cluster Long‑Connection Service with Redis Pub/Sub for Message Forwarding

This article explains how to build a high‑concurrency Netty long‑connection server cluster using Redis publish/subscribe to forward messages across nodes, detailing the background, technology choices, architecture, and implementation steps for a microservice‑based backend system.

Message ForwardingMicroservicesNetty
0 likes · 5 min read
Implementing a Netty Cluster Long‑Connection Service with Redis Pub/Sub for Message Forwarding
FunTester
FunTester
May 22, 2022 · Backend Development

Why Netty Beats JDK NIO: A Hands‑On Comparison and Code Walkthrough

This article compares traditional Java IO, JDK NIO, and the Netty framework, explaining their thread models, selector mechanisms, and performance trade‑offs, while providing complete server‑client code examples that demonstrate how Netty simplifies high‑performance network programming.

AsynchronousBackendNetty
0 likes · 13 min read
Why Netty Beats JDK NIO: A Hands‑On Comparison and Code Walkthrough
Architect's Tech Stack
Architect's Tech Stack
May 18, 2022 · Backend Development

FastThreadLocal in Netty: Background, Design Principles, and Source Code Analysis

This article explains why Netty implements FastThreadLocal instead of using JDK ThreadLocal, describes its array‑based design, internal classes such as InternalThreadLocalMap and FastThreadLocalThread, walks through the get() and initialization logic, discusses cleanup mechanisms, performance degradation on ordinary threads, and shows its practical use for ByteBuf allocation in Netty.

FastThreadLocalNetty
0 likes · 12 min read
FastThreadLocal in Netty: Background, Design Principles, and Source Code Analysis
Bin's Tech Cabin
Bin's Tech Cabin
May 16, 2022 · Backend Development

Deep Dive into Netty’s Pipeline: How ChannelHandlers Work Internally

This article provides a comprehensive, step‑by‑step explanation of Netty’s pipeline architecture, detailing how ChannelHandlerContext wraps handlers, how inbound and outbound events are classified and propagated, and how handlers are added, removed, and initialized within the pipeline.

BackendChannelHandlerNetty
0 likes · 70 min read
Deep Dive into Netty’s Pipeline: How ChannelHandlers Work Internally
IT Architects Alliance
IT Architects Alliance
May 5, 2022 · Backend Development

How to Build a Million‑Connection Netty Server: Tips, Code, and Tuning

This article walks through the challenges and solutions for building a high‑performance long‑connection service with Netty, covering Netty basics, non‑blocking I/O, sample Java NIO and Netty code, Linux kernel tuning, QPS optimization, data‑structure tweaks, GC adjustments, and the final performance results.

GC tuningJava NIOLinux Tuning
0 likes · 14 min read
How to Build a Million‑Connection Netty Server: Tips, Code, and Tuning
Top Architect
Top Architect
May 5, 2022 · Backend Development

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

This article explains how to build a scalable long‑connection server using Netty, covering the fundamentals of non‑blocking I/O, practical code examples for achieving millions of concurrent connections, common Linux kernel limits, CPU and GC bottlenecks, and a series of tuning techniques to dramatically improve QPS and stability.

Java NIOLong ConnectionsNetty
0 likes · 15 min read
Implementing High‑Performance Long‑Connection Services with Netty: Challenges, Bottlenecks, and Optimizations
Java Backend Technology
Java Backend Technology
Apr 25, 2022 · Backend Development

Why Netty’s IntObjectHashMap Beats HashMap: Deep Dive into Performance and Design

This article explores Netty’s IntObjectHashMap, explaining how its use of primitive int keys and open‑addressing linear probing reduces memory overhead and improves performance compared to standard HashMap, while detailing its source‑code evolution, capacity handling, probing strategy, load factor, and deletion compaction.

Data StructuresHashMapIntObjectHashMap
0 likes · 19 min read
Why Netty’s IntObjectHashMap Beats HashMap: Deep Dive into Performance and Design
Code Ape Tech Column
Code Ape Tech Column
Apr 16, 2022 · Backend Development

Design and Implementation of a Custom RPC Framework with Spring Boot and Netty

This article presents a comprehensive overview of designing and implementing a custom RPC framework using Spring Boot and Netty, covering concepts, architecture, service registration with Zookeeper, load balancing, custom message protocol, serialization, handling TCP fragmentation, and various client invocation modes.

NettyRPCSpring Boot
0 likes · 14 min read
Design and Implementation of a Custom RPC Framework with Spring Boot and Netty
Su San Talks Tech
Su San Talks Tech
Apr 9, 2022 · Backend Development

Why Netty’s IntObjectHashMap Beats HashMap: A Deep Dive into Performance and Design

This article explores how Netty’s IntObjectHashMap improves high‑concurrency ticket‑pricing scenarios by using primitive int keys, open‑addressing linear probing, and careful capacity adjustments, revealing the source‑code evolution, hashIndex optimizations, load‑factor tuning, and deletion compaction that together deliver significant memory and CPU savings.

Data StructuresHashMapIntObjectHashMap
0 likes · 20 min read
Why Netty’s IntObjectHashMap Beats HashMap: A Deep Dive into Performance and Design
Java High-Performance Architecture
Java High-Performance Architecture
Mar 9, 2022 · Backend Development

Mastering Custom RPC Frameworks: Architecture, Protocols, and Implementation

This article provides a comprehensive guide to building a custom RPC framework, covering core concepts, architecture diagrams, registration with Zookeeper, Netty communication, custom message protocols, serialization, load balancing, handling TCP packet issues, and practical deployment steps with starter modules.

Distributed SystemsMicroservicesNetty
0 likes · 16 min read
Mastering Custom RPC Frameworks: Architecture, Protocols, and Implementation
Programmer DD
Programmer DD
Mar 8, 2022 · Backend Development

Why Netty Beats JDK NIO: A Hands‑On Guide to High‑Performance Java Networking

This article walks through the limitations of traditional Java IO, explains how NIO and its selector mechanism solve thread‑resource and efficiency problems, and demonstrates why Netty’s higher‑level abstraction makes network programming far simpler and more performant, complete with runnable code examples.

Java NIONettyReactor Pattern
0 likes · 17 min read
Why Netty Beats JDK NIO: A Hands‑On Guide to High‑Performance Java Networking
Bin's Tech Cabin
Bin's Tech Cabin
Feb 23, 2022 · Backend Development

How Netty’s Sub‑Reactor Efficiently Handles OP_READ Events and Dynamically Adjusts ByteBuffer Size

This article explains the complete flow of how Netty's Sub‑Reactor processes OP_READ events, from selector polling to channel pipelines, and details the adaptive mechanisms of AdaptiveRecvByteBufAllocator and PooledByteBufAllocator that dynamically resize DirectByteBuffers for optimal network data reception.

AdaptiveRecvByteBufAllocatorByteBufferNetty
0 likes · 36 min read
How Netty’s Sub‑Reactor Efficiently Handles OP_READ Events and Dynamically Adjusts ByteBuffer Size
Yang Money Pot Technology Team
Yang Money Pot Technology Team
Feb 21, 2022 · Backend Development

Design and Implementation of an Online Customer Service Instant Messaging System

This article details the design and implementation of an online customer service instant messaging system, covering requirements analysis, client‑server network model, HTTP and WebSocket protocols, distributed architecture choices such as routing rules, Redis shared memory, server‑master sync, and message‑queue broadcasting, and explains why Netty was selected as the development framework.

Distributed SystemsInstant MessagingMessage Queue
0 likes · 17 min read
Design and Implementation of an Online Customer Service Instant Messaging System
Java Interview Crash Guide
Java Interview Crash Guide
Feb 14, 2022 · Backend Development

How Does RPC Work? A Deep Dive into Building a Custom Java RPC Framework

This article explains the principles of Remote Procedure Call (RPC), walks through a complete end‑to‑end RPC workflow—including interface definition, service registration, Netty‑based network communication, request/response handling, and client‑side dynamic proxy generation—while providing runnable Java code examples.

NettyRPCZooKeeper
0 likes · 19 min read
How Does RPC Work? A Deep Dive into Building a Custom Java RPC Framework
Bin's Tech Cabin
Bin's Tech Cabin
Feb 11, 2022 · Backend Development

Why Netty’s Connection Handling Slows Down – Inside the OP_ACCEPT Bug and Fix

This article dissects Netty’s core connection‑acceptance mechanism, explains how the OP_ACCEPT event is processed, reveals a subtle bug that limits read loops to a single connection, and shows the fix introduced in version 4.1.69.final, offering developers a complete understanding of Netty’s reactor architecture.

Java NIONettyOP_ACCEPT
0 likes · 40 min read
Why Netty’s Connection Handling Slows Down – Inside the OP_ACCEPT Bug and Fix
IT Architects Alliance
IT Architects Alliance
Feb 10, 2022 · Backend Development

Design and Implementation of a Custom RPC Framework

This article presents a detailed overview of a custom Java RPC framework, covering its core concepts, architecture, communication flow, message protocol, load balancing, serialization, handling of TCP packet fragmentation, and practical implementation using Spring Boot, Netty, and Zookeeper, along with deployment instructions.

NettyRPCSpring Boot
0 likes · 15 min read
Design and Implementation of a Custom RPC Framework
Top Architect
Top Architect
Feb 9, 2022 · Backend Development

Implementing RPC from Scratch: Service Interface, Registration, Netty Server, and Client Proxy

This article explains the fundamentals of Remote Procedure Call (RPC), detailing the definition, basic call flow, service interface design, server registration with Zookeeper, Netty-based network communication, dynamic proxy generation on the client side, and provides complete Java code examples for a working RPC framework.

Dynamic ProxyNettyRPC
0 likes · 17 min read
Implementing RPC from Scratch: Service Interface, Registration, Netty Server, and Client Proxy
Top Architect
Top Architect
Jan 31, 2022 · Backend Development

Delayed Queue Technology Research and Implementation Overview

This article surveys various delayed queue implementations—including Kafka, RocketMQ, Redis (Redisson), and Netty’s HashedWheelTimer—examining their design principles, advantages, drawbacks, and integration strategies, and proposes a unified micro‑service architecture leveraging Kafka topics, Redis ZSETs, and thread‑pool optimizations for reliable message scheduling.

KafkaMicroservicesNetty
0 likes · 15 min read
Delayed Queue Technology Research and Implementation Overview
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.

NettyRPCZooKeeper
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.

IO ModelJava networkingNetty
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.

Distributed SystemsNettyRPC
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.

Nettygatewayload balancing
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.

NettyNetwork programmingReactor 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.

Nettyasynchronous-iojava
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.

Distributed SystemsNettySpring Cloud
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.

BackendHBaseNetty
0 likes · 15 min read
Interview Experiences and Technical Questions from Major Chinese Tech Companies (JD, Meituan, Alibaba, Toutiao, Kuaishou)
Su San Talks Tech
Su San Talks Tech
Oct 18, 2021 · Backend Development

Demystifying Socket I/O: From Creation to Blocking in TCP Communication

This article explains the fundamentals of I/O, details how sockets are created, bound, listened to, and accepted, describes the client-side connect process, and clarifies why read, write, accept, and connect operations can block, laying the groundwork for deeper Netty studies.

BlockingNettyNetwork I/O
0 likes · 10 min read
Demystifying Socket I/O: From Creation to Blocking in TCP Communication
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.

BackendBulletChatNetty
0 likes · 13 min read
Build a Real-Time Video Bullet Chat with Netty and WebSocket