Tag

Netty

0 views collected around this technical thread.

FunTester
FunTester
May 18, 2025 · Backend Development

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

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

BackendJavaNetty
0 likes · 14 min read
Building a High‑Performance Netty WebSocket Client for Large‑Scale Performance Testing
Architect
Architect
Apr 25, 2025 · Backend Development

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

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

IO modelJavaNetty
0 likes · 18 min read
Building a High‑Performance Real‑Time Communication System with Netty and Spring Boot 3
Cognitive Technology Team
Cognitive Technology Team
Apr 17, 2025 · Backend Development

Understanding and Solving NIO Empty Polling in Java with Netty

This article explains the root causes of Java NIO empty polling, its impact on CPU usage, and presents Netty's multi‑layer detection, threshold‑based auto‑rebuild, and selector reconstruction techniques, along with configuration tips and future optimization directions for high‑concurrency backend systems.

BackendEmptyPollingJava
0 likes · 8 min read
Understanding and Solving NIO Empty Polling in Java with Netty
Sohu Tech Products
Sohu Tech Products
Apr 16, 2025 · Operations

1. Architecture Overview

Drawing on experience with TimerTask, Quartz, SpringTask, HashWheelTimer, Elastic‑Job, XXL‑JOB, and AirFlow, the author created a teaching‑focused, horizontally scalable task‑scheduling platform supporting over 100 000 jobs, organized into gateway, admin, and worker layers, with a detailed architecture and tech‑stack overview.

NettyQuartzarchitecture
0 likes · 6 min read
1. Architecture Overview
Cognitive Technology Team
Cognitive Technology Team
Apr 11, 2025 · Backend Development

Understanding Netty 4 Thread Model: Master‑Worker Multithreading and EventLoop Design

Netty 4 employs a global multithreaded, locally single‑threaded (event‑loop) architecture where a boss thread pool accepts connections and delegates them to worker thread pools, each containing NioEventLoop instances with selectors, task queues, and pipelines, ensuring lock‑free, ordered processing while avoiding thread blocking.

BackendEventLoopJava
0 likes · 5 min read
Understanding Netty 4 Thread Model: Master‑Worker Multithreading and EventLoop Design
Architect's Tech Stack
Architect's Tech Stack
Apr 11, 2025 · Backend Development

Understanding FastThreadLocal vs ThreadLocal in Java: Implementation and Performance

This article explains the internal workings of Java's ThreadLocal and Netty's FastThreadLocal, compares their memory management and lookup mechanisms, provides code examples, and offers guidance on when to choose each for high‑concurrency backend applications.

JavaNettyconcurrency
0 likes · 7 min read
Understanding FastThreadLocal vs ThreadLocal in Java: Implementation and Performance
Top Architect
Top Architect
Jan 16, 2025 · Backend Development

Guide to Using the XXL‑JOB Distributed Task Scheduling Framework with Spring Boot

This article introduces the XXL‑JOB open‑source distributed scheduler, compares it with Quartz and other solutions, and provides a step‑by‑step tutorial for server deployment, executor configuration, task development, execution, logging, and the underlying Netty‑based communication design, complete with code examples.

BackendJavaNetty
0 likes · 15 min read
Guide to Using the XXL‑JOB Distributed Task Scheduling Framework with Spring Boot
Top Architecture Tech Stack
Top Architecture Tech Stack
Jan 9, 2025 · Backend Development

Understanding Netty's Asynchronous Model, IO Multiplexing, and Epoll Implementation

This article explains Netty's powerful asynchronous architecture, compares classic multithread, Reactor, select, poll, and epoll I/O multiplexing models, demonstrates JNI integration for native performance, and provides complete example code for building a high‑performance epoll‑based server in Java.

BackendIO MultiplexingJNI
0 likes · 32 min read
Understanding Netty's Asynchronous Model, IO Multiplexing, and Epoll Implementation
Dangbei Technology Team
Dangbei Technology Team
Dec 31, 2024 · Backend Development

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

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

IoTJavaNetty
0 likes · 12 min read
How WebSocket Powers Real-Time IoT Devices: Architecture & Code Walkthrough
Top Architect
Top Architect
Dec 28, 2024 · Backend Development

Building a Netty + WebSocket Message Push Server in Java

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

BackendJavaNetty
0 likes · 11 min read
Building a Netty + WebSocket Message Push Server in Java
DaTaobao Tech
DaTaobao Tech
Dec 11, 2024 · Backend Development

Resolving Metaspace and Off‑Heap Memory Issues After JDK 11 Upgrade

After upgrading core services to JDK 11, the team encountered a Metaspace rise and off‑heap memory growth caused by class‑loading changes and Netty’s disabled native buffers, which were resolved by expanding Metaspace to 768 MB and adding JVM options to enable Netty reflection and open required modules, restoring normal memory usage.

JDK11JVMMemoryLeak
0 likes · 8 min read
Resolving Metaspace and Off‑Heap Memory Issues After JDK 11 Upgrade
Code Ape Tech Column
Code Ape Tech Column
Dec 4, 2024 · Backend Development

Deep Dive into Netty’s Asynchronous Model, Epoll, IO Multiplexing, and JNI with Hands‑On C Code

This article explains Netty’s asynchronous architecture, compares classic multithread, Reactor, select, poll and epoll models, clarifies level‑triggered versus edge‑triggered event handling, and provides step‑by‑step JNI and hand‑written epoll server examples in C to illustrate high‑performance backend development.

C++IO MultiplexingJNI
0 likes · 33 min read
Deep Dive into Netty’s Asynchronous Model, Epoll, IO Multiplexing, and JNI with Hands‑On C Code
Java Architect Essentials
Java Architect Essentials
Nov 7, 2024 · Backend Development

Building a Netty + WebSocket Message Push Server in Java

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

BackendJavaNetty
0 likes · 10 min read
Building a Netty + WebSocket Message Push Server in Java
Cognitive Technology Team
Cognitive Technology Team
Oct 28, 2024 · Backend Development

Investigation of Sporadic Netty Message Send Delays Exceeding One Second

During performance testing of a Netty-based service, occasional message sends exceeded one second despite low CPU usage, prompting an investigation that identified a blocking ChannelHandler caused by a conditional sleep, leading to NioEventLoop thread stalls and delayed transmissions.

ChannelHandlerGCJava
0 likes · 4 min read
Investigation of Sporadic Netty Message Send Delays Exceeding One Second
Top Architect
Top Architect
Oct 27, 2024 · Backend Development

Building a Netty + WebSocket Message Push Server in Java

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

BackendJavaMessagePush
0 likes · 10 min read
Building a Netty + WebSocket Message Push Server in Java
JD Tech
JD Tech
Aug 1, 2024 · Backend Development

Overview of RPC and How to Build a Custom RPC Framework Using Netty

This article explains the fundamentals and key characteristics of Remote Procedure Call (RPC), outlines common use cases and popular frameworks, and then walks through the design and implementation of a simple custom RPC system—including a bespoke binary protocol, client‑side proxy generation, serialization, Netty‑based encoding/decoding, server‑side request handling, and result delivery—using Java and Netty.

Custom ProtocolJavaNetty
0 likes · 21 min read
Overview of RPC and How to Build a Custom RPC Framework Using Netty
High Availability Architecture
High Availability Architecture
Jul 11, 2024 · Backend Development

AutoMQ Memory Cache Design and Mitigating Netty PooledByteBufAllocator Memory Fragmentation

The article explains AutoMQ's memory‑cache architecture, compares LogCache and BlockCache designs, analyzes Netty's internal and external memory fragmentation caused by the Buddy and PageRun/PoolSubpage allocators, and presents mitigation techniques such as ByteBufSeqAlloc to reduce OOM risks.

BackendCacheDesignDirectMemory
0 likes · 14 min read
AutoMQ Memory Cache Design and Mitigating Netty PooledByteBufAllocator Memory Fragmentation
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jul 8, 2024 · Backend Development

Understanding Netty's Pooled Memory Allocation Mechanism Based on jemalloc4

This article explains Netty's memory pool architecture after switching from jemalloc3 to jemalloc4, detailing the new memory size classes, core components such as PoolArena, PoolChunkList, PoolChunk, and PoolSubpage, and provides Java code snippets to illustrate their implementations.

BackendJavaNetty
0 likes · 10 min read
Understanding Netty's Pooled Memory Allocation Mechanism Based on jemalloc4
Cognitive Technology Team
Cognitive Technology Team
Jul 7, 2024 · Backend Development

Understanding TCP Packet Framing Issues and Netty Decoder Solutions

This article explains the TCP packet fragmentation and aggregation problems, introduces Netty's various decoder mechanisms such as FixedLengthFrameDecoder, LineBasedFrameDecoder, DelimiterBasedFrameDecoder, LengthFieldPrepender, and LengthFieldBasedFrameDecoder, and provides detailed configuration examples and code snippets for implementing robust TCP protocols.

DecoderFramingJava
0 likes · 7 min read
Understanding TCP Packet Framing Issues and Netty Decoder Solutions