Tagged articles
8 articles
Page 1 of 1
Lin is Dream
Lin is Dream
Aug 15, 2025 · Backend Development

Why Java NIO Beats BIO: Mastering Non‑Blocking Network Programming

This article explains what network programming is, why it matters beyond HTTP, compares BIO and NIO models, dives into Java NIO's design with selectors, channels, and ByteBuffer methods, provides full server/client code examples, and shows how Netty simplifies high‑performance networking.

ByteBufferJavaNetwork programming
0 likes · 23 min read
Why Java NIO Beats BIO: Mastering Non‑Blocking Network Programming
Lin is Dream
Lin is Dream
Jul 30, 2025 · Backend Development

Master Java NIO: Simplify Large File Read/Write with ByteBuffer in 5 Steps

This article explains the fundamentals of Java NIO, showing how to use Channels and ByteBuffer to efficiently read, write, and manipulate large files, including memory‑mapped files and RandomAccessFile alternatives, with clear code examples and step‑by‑step guidance.

ByteBufferFileChannelJava
0 likes · 18 min read
Master Java NIO: Simplify Large File Read/Write with ByteBuffer in 5 Steps
Su San Talks Tech
Su San Talks Tech
Oct 30, 2023 · Backend Development

Boost Backend Performance with HashMap, LinkedHashMap, TreeMap & ByteBuffer

This article explores four powerful yet understated caching techniques—HashMap with read‑write locks, LinkedHashMap‑based LRU caches, TreeMap for consistent hashing, and ByteBuffer pooling—detailing their implementations in middleware such as RocketMQ, MyBatis, and Cobar to enhance backend performance.

Backend DevelopmentByteBufferConcurrentHashMap
0 likes · 10 min read
Boost Backend Performance with HashMap, LinkedHashMap, TreeMap & ByteBuffer
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
Selected Java Interview Questions
Selected Java Interview Questions
Aug 8, 2021 · Backend Development

Understanding Java NIO Buffers: Creation, Core Properties, and Operations

This article explains Java NIO buffers, covering how to create them with allocate() and allocateDirect(), describing their four core properties (position, limit, capacity, mark), and detailing essential methods such as put(), get(), flip(), rewind(), clear(), mark(), reset(), hasRemaining() and remaining() with code examples.

BackendByteBufferJava
0 likes · 12 min read
Understanding Java NIO Buffers: Creation, Core Properties, and Operations
Selected Java Interview Questions
Selected Java Interview Questions
Jun 9, 2021 · Backend Development

Understanding Java Serialization: Limitations, Performance Comparison, and Alternative Frameworks

The article explains what object serialization is, why it is needed for persistence and network transmission, outlines the major drawbacks of Java's built‑in serialization—including lack of cross‑language support, poor performance, and large payloads—and compares it with a custom ByteBuffer approach while reviewing popular alternative serialization frameworks.

ByteBufferJavaProtobuf
0 likes · 7 min read
Understanding Java Serialization: Limitations, Performance Comparison, and Alternative Frameworks
Aikesheng Open Source Community
Aikesheng Open Source Community
Oct 10, 2019 · Databases

Source Code Analysis of DBLE Memory Management Module

This article provides a detailed analysis of DBLE's memory management module, explaining its structure, configuration parameters, allocation and recycling logic, and includes annotated source code snippets for classes such as DirectByteBufferPool and ByteBufferPage, illustrating how off‑heap and on‑heap memory are handled.

ByteBufferDBLEJava
0 likes · 13 min read
Source Code Analysis of DBLE Memory Management Module