Tag

Java NIO

0 views collected around this technical thread.

macrozheng
macrozheng
Oct 10, 2024 · Fundamentals

How Zero‑Copy Boosts Data Transfer: IO Mechanisms, mmap, sendfile & splice Explained

This article explains the concept of zero‑copy, compares traditional I/O copying with mmap, sendfile, DMA scatter/gather and splice techniques, and shows how Java NIO leverages mmap and sendfile to achieve high‑performance data transfer while minimizing CPU involvement.

IOJava NIOLinux
0 likes · 15 min read
How Zero‑Copy Boosts Data Transfer: IO Mechanisms, mmap, sendfile & splice Explained
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Apr 3, 2024 · Backend Development

Comprehensive Introduction to Netty: Features, Architecture, Core Components, and Application Scenarios

This article provides a detailed overview of Netty, a high‑performance asynchronous NIO framework, covering its key features, architectural design, core components, high‑performance strategies, and typical use cases in internet services, gaming, and big‑data systems, while also highlighting why it outperforms native JDK NIO.

Java NIONettyNetwork Framework
0 likes · 9 min read
Comprehensive Introduction to Netty: Features, Architecture, Core Components, and Application Scenarios
Sanyou's Java Diary
Sanyou's Java Diary
Jan 18, 2024 · Big Data

Inside Kafka’s Network Layer: How Messages Are Sent and Received

This article walks through Kafka’s network‑layer internals, detailing how the client prepares, pre‑sends, and actually sends messages, then reads and parses responses, with code snippets that illustrate the Selector, KafkaChannel, and related classes in Java NIO.

Java NIOKafkaMessage Receiving
0 likes · 22 min read
Inside Kafka’s Network Layer: How Messages Are Sent and Received
政采云技术
政采云技术
Nov 14, 2023 · Backend Development

Understanding the C10K Problem and I/O Models: BIO, NIO, select, poll, epoll, and AIO

This article explains the historic C10K problem of handling ten thousand concurrent connections, compares traditional BIO with modern I/O models such as NIO, select, poll, epoll, and AIO, and provides Java and C++ code examples illustrating how each model improves scalability and performance.

C10KI/O multiplexingJava NIO
0 likes · 22 min read
Understanding the C10K Problem and I/O Models: BIO, NIO, select, poll, epoll, and AIO
Sanyou's Java Diary
Sanyou's Java Diary
Jul 17, 2023 · Backend Development

How Kafka’s Broker Handles Millions of Requests: Inside Its Network Architecture

This article deeply analyzes Kafka broker’s network architecture and request‑handling pipeline, walking through simple sequential models, multithreaded async designs, the Reactor pattern with Java NIO, key thread roles, core processing flow, and practical tuning parameters for high‑throughput, low‑latency deployments.

Java NIOKafkaPerformance Tuning
0 likes · 21 min read
How Kafka’s Broker Handles Millions of Requests: Inside Its Network Architecture
vivo Internet Technology
vivo Internet Technology
Mar 15, 2023 · Backend Development

Analysis of Java NIO and Tars Framework Network Programming

The article explains Java NIO’s non‑blocking channels, buffers, and selectors, then shows how the open‑source Tars RPC framework builds a multi‑reactor, multi‑thread network model on top of NIO—detailing server socket setup, event dispatch, session management, and read/write processing.

Java NIONon‑Blocking IOReactor Pattern
0 likes · 18 min read
Analysis of Java NIO and Tars Framework Network Programming
Aikesheng Open Source Community
Aikesheng Open Source Community
Dec 12, 2022 · Backend Development

Investigating Off‑Heap Memory Leak in Dble Using Java NIO and BTrace

This article walks through a real‑world case of off‑heap memory leakage in the Dble proxy, detailing symptom observation, log analysis, monitoring, BTrace instrumentation, code review, and the eventual fix that delays buffer allocation until needed.

BTraceBackendDBLE
0 likes · 11 min read
Investigating Off‑Heap Memory Leak in Dble Using Java NIO and BTrace
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 NIOMMAPNetty
0 likes · 13 min read
Understanding Zero‑Copy in Java: Concepts, Mechanisms, and Implementations
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
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
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
Refining Core Development Skills
Refining Core Development Skills
Jul 18, 2022 · Big Data

Deep Dive into Kafka Broker Network Architecture and Request Processing Flow

This article thoroughly examines Kafka's broker‑side network architecture, tracing its evolution from a simple sequential model to a high‑performance, event‑driven Reactor design using Java NIO, and provides practical tuning guidance for achieving optimal throughput and latency.

Big DataBroker ArchitectureJava NIO
0 likes · 18 min read
Deep Dive into Kafka Broker Network Architecture and Request Processing Flow
Wukong Talks Architecture
Wukong Talks Architecture
Jun 25, 2022 · Big Data

Deep Dive into Kafka Broker Network Architecture and Request Processing Flow

This article thoroughly analyzes Kafka broker's high‑throughput network architecture, tracing its evolution from simple sequential handling to a multi‑selector Reactor model, detailing Acceptor and Processor thread implementations, request‑handling pipelines, and practical tuning parameters for optimal performance.

BrokerJava NIOKafka
0 likes · 20 min read
Deep Dive into Kafka Broker Network Architecture and Request Processing Flow
Architecture Digest
Architecture Digest
Jun 22, 2022 · Backend Development

Implementing and Optimizing a High‑Concurrency Long‑Connection Service with Netty

This article explains how to build a scalable long‑connection server using Netty, discusses the underlying bottlenecks such as Linux kernel limits, CPU and GC issues, and provides practical code examples and tuning techniques to achieve hundreds of thousands of connections and high QPS.

Java NIOLong ConnectionsNetty
0 likes · 15 min read
Implementing and Optimizing a High‑Concurrency Long‑Connection Service with Netty
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
Wukong Talks Architecture
Wukong Talks Architecture
Mar 7, 2022 · Backend Development

From Java NIO to Netty: A Practical Guide to High‑Performance Network Programming

This article explains the limitations of traditional blocking I/O, introduces Java NIO with selectors, compares the two models using a kindergarten analogy, critiques raw JDK NIO, and demonstrates how Netty simplifies and optimizes network development with concise server and client code examples while promoting a comprehensive Netty learning book.

Java NIONettyReactor
0 likes · 17 min read
From Java NIO to Netty: A Practical Guide to High‑Performance Network Programming
Selected Java Interview Questions
Selected Java Interview Questions
Sep 22, 2021 · Backend Development

Understanding Netty's Event Registration and Its Integration with Java NIO

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
Understanding Netty's Event Registration and Its Integration with Java NIO
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 TuningLong Connection
0 likes · 13 min read
Implementing High‑Performance Long‑Connection Services with Netty: Challenges and Optimizations
Top Architect
Top Architect
Jun 1, 2021 · Backend Development

Zero‑Copy Mechanisms in Operating Systems and Java

This article explains how zero‑copy techniques such as mmap, sendfile, and splice reduce CPU involvement in data transfer by avoiding memory copies between kernel and user spaces, and shows how Java NIO and Netty implement these mechanisms for high‑performance backend I/O.

BackendJava NIOMMAP
0 likes · 8 min read
Zero‑Copy Mechanisms in Operating Systems and Java
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Mar 22, 2021 · Big Data

Kafka Performance Optimization: Sequential Writes, Zero‑Copy, PageCache, and Network Model

This article provides a comprehensive overview of Kafka performance optimization, covering network, disk, and complexity challenges, sequential write techniques, zero‑copy data transfer, page‑cache usage, reactor‑based networking, batch processing, compression, partition concurrency, and file‑structure design to help developers build high‑throughput, low‑latency streaming systems.

Disk I/OJava NIOKafka
0 likes · 17 min read
Kafka Performance Optimization: Sequential Writes, Zero‑Copy, PageCache, and Network Model