Skip to content

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Latest articles

10 min read

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.

36 min read

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.

7 min read

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.