Tagged articles
EventLoop
18 articles · Page 1 of 1

java1234Oct 15, 2026 · Backend Development
This article explores Netty 4.2's major changes including the new adaptive memory allocator, composable MultiThreadIoEventLoopGroup with IoHandlerFactory, official io_uring transport support, ManualIoEventLoop for custom event-loop driving, QUIC/HTTP/3 graduation, and default client TLS hostname verification.
AdaptiveByteBufAllocatorByteBufEventLoop
0 likes · 17 min read

This article analyzes Netty's custom Future system, contrasting CompleteFuture (pre-completed results) with JDK's CompletableFuture (composable async tasks), and explains six architectural reasons Netty retains its own Future—including EventLoop thread binding, deadlock detection, lightweight completed futures, Channel binding, and ecosystem compatibility—with a deep dive into DefaultPromise's CAS-based implementation.
Asynchronous ProgrammingCompletableFutureCompleteFuture
0 likes · 27 min read

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.
ConcurrencyEventLoopJava
0 likes · 5 min read

The article explains the limitations of blocking I/O in traditional multi‑process servers, introduces Fibers as lightweight cooperative units, describes how to replace blocking calls with non‑blocking ones, and outlines key pitfalls such as global state and process‑affecting functions.
EventLoopFiberNonBlockingIO
0 likes · 5 min read

A Docker image upgrade reduced Netty EventLoop threads, causing a Pub/Sub listener’s blocking Future.get() to stall one thread, fill a Redis cluster connection’s receive buffer and trigger widespread Redis timeouts in the custom Lettuce cache framework, which were eliminated by increasing I/O threads or making the callback asynchronous.
DockerEventLoopLettuce
0 likes · 15 min read


政采云技术Sep 12, 2023 · Backend Development
This article explains the Netty EventLoop implementation, covering its reactor‑based event loop design, event handling and task processing mechanisms, code examples, common pitfalls such as the JDK epoll bug, and practical recommendations for building high‑performance backend services.
ConcurrencyEventLoopJava
0 likes · 15 min read

This article provides a comprehensive, code‑driven walkthrough of Netty's internal networking architecture, covering NioEventLoopGroup, selectors, channels, pipelines, bootstrap configuration, binding mechanics, and how new connections and user requests are processed in a Java server environment.
EventLoopJavaNetty
0 likes · 26 min read

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.
EventLoopJavaMultithreading
0 likes · 21 min read

This article explains how Netty abstracts Java NIO's event registration by using SelectionKey interestOps, detailing the registration of OP_ACCEPT and OP_READ events, the underlying doRegister and doBeginRead implementations, and the flow of events through the Netty pipeline with illustrative code snippets.
EventLoopJava NIONetty
0 likes · 10 min read

This article provides a detailed English overview of Netty's complete server lifecycle, covering service startup, connection establishment, data read/write handling, business logic processing, and the procedures for closing connections and shutting down the service.
BackendEventLoopJava
0 likes · 8 min read

A Pulsar community expert investigated why MultiTopicsConsumerImpl delivered only a fraction of the expected throughput, identified lock contention and EventLoop overhead as the main culprits, applied lock‑removal and thread‑pool optimizations, and achieved nearly four‑fold performance gains.
Apache PulsarEventLoopJava
0 likes · 9 min read


JavaEdgeOct 30, 2020 · Backend Development
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.
EventLoopJavaNetty
0 likes · 11 min read

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.
ChannelPipelineEventLoopJava
0 likes · 16 min read

This article dissects Netty’s core components—EventLoopGroup, EventLoop, ServerBootstrap, and channel lifecycle—explaining their initialization, thread‑binding mechanisms, handler pipelines, and port‑binding process with detailed code excerpts and diagrams to reveal how the framework achieves scalable, reactor‑based networking.
Channel pipelineEventLoopJava Networking
0 likes · 21 min read

This article provides a comprehensive walkthrough of Netty’s core components—including ServerBootstrap, EventLoop, Channel, ChannelFuture, ChannelHandler, and ByteBuf—illustrated with a simple server example, code snippets, diagrams, and detailed explanations of threading, zero‑copy, and pipeline processing.
ByteBufEventLoopJava
0 likes · 30 min read

This article explains how Netty initializes and starts a server by detailing the creation of EventLoopGroups, the configuration of ServerBootstrap, the execution of channel(), handler(), childHandler(), and doBind() methods, and the handling of JDK selector bugs, illustrated with code and diagrams.
EventLoopJavaNIO
0 likes · 10 min read


ZhiKe AIMar 9, 2017 · Backend Development
The article outlines the core components of Netty—Bootstrap/ServerBootstrap, EventLoop, EventLoopGroup, ChannelPipeline, Channel, Future/ChannelFuture, ChannelInitializer, and ChannelHandler (Inbound and Outbound)—explaining their roles in configuring, handling I/O, and processing data within a non‑blocking, event‑driven network application.
ChannelHandlerChannelPipelineEventLoop
0 likes · 3 min read

This article explains the internal workflow of Netty when launching a server, covering why Netty is chosen over raw JDK NIO, the key components created during bootstrap, the step‑by‑step source‑code analysis of channel creation, initialization, registration, and the final bind operation that activates the server.
EventLoopJava NIONetty
0 likes · 18 min read
