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

Backend Development

17 min read

Code Understood ≠ Behavior Verified: Agent-Driven Runtime Validation for Legacy Systems

After mapping code relationships in a legacy import system, the author demonstrates how to verify actual runtime behavior through isolated experiments using a three-row sample, testing partial success, duplicate submissions, lost responses, timeouts, and process interruption after write—revealing a duplicate-write bug that only appears when progress isn't persisted before a crash.

39 min read

JVM Runtime Data Areas Deep Dive: Memory Layout, Object Structure & OOM Troubleshooting

This article dissects JVM runtime data areas — heap, metaspace, thread stacks, direct memory — with object memory layout details, five OOM types mapped to regions, three production incident case studies, and practical measurement tools (JOL, NMT) for capacity planning.

12 min read

E-Commerce Inventory Deduction: From MySQL Row Locks to Redis Lua Scripts

This article analyzes three approaches to e-commerce inventory deduction—single-row MySQL, sharded MySQL, and Redis with Lua scripts—detailing why database row locks fail under high concurrency and providing a complete Redis-based implementation with distributed locking for cache initialization and atomic stock decrement.

17 min read

Spring Boot Dependency Convergence: BOM, Starters & Version Override Rules

This article explains how Spring Boot achieves dependency version convergence through BOM (spring-boot-dependencies), details starter aggregation mechanics, and outlines four version override methods with priority rules, Maven arbitration behavior, conflict troubleshooting via dependency:tree, and risks of overriding tested version combinations.

9 min read

Node.js Green Threads: 8 OS Threads Run 1,000 Isolated V8 Isolates, Beating Workers

Node.js adds an experimental Green Threads module (node:green_threads) that runs thousands of isolated V8 isolates on a shared pool of 8 OS threads, cutting per-instance memory from 6.2 MB to 1.4 MB and achieving higher QPS than Worker threads while providing strong fault isolation for multi-tenant scripting.

15 min read

FastCSV: High-Performance CSV Processing for Million-Row Files in Java

This tutorial introduces FastCSV, a zero-dependency Java library for high-speed CSV parsing and writing, demonstrating Maven setup, sequential and paginated reading, writer/reader configuration, bean mapping via streams, GZIP compression, and robust handling of malformed data like empty lines and field-count mismatches.

7 min read

Stop Manual Dragging: 34k-Star AI Tool Generates Editable Diagrams Inside draw.io

Next AI Draw.io embeds an AI chat panel directly into draw.io, producing editable nodes and connections that developers can manually refine or further modify via AI, supporting architecture diagrams, cloud topologies, and MCP integration for AI coding tools, with Docker and desktop deployment options.

50 min read

Production-Grade Agent Scheduler: Fair Multi-Tenant Scheduling & Fault Recovery

This article details a production-grade Agent Scheduler design covering multi-tenant fairness via Weighted DRF, reliable dispatch using Outbox pattern and fencing tokens, fault takeover with attempt epochs, tool gateway for side-effect safety, and phased rollout from single-cell to multi-cell deployments.

8 min read

Message Queues Explained: Principles, Architecture & Selection Guide

This article comprehensively explains message queue fundamentals including decoupling, async communication, reliability, and buffering; details architecture roles, queue types, persistence, acknowledgment, and protocols; compares ActiveMQ, RabbitMQ, Kafka, RocketMQ, and Pulsar with performance metrics; and provides selection guidance for e-commerce, finance, and big data scenarios.

10 min read

Elegant Payment System Design: From Business Decomposition to TCC Transactions

This article breaks down payment system design into business decomposition, sequence modeling, data structure design, and key technical patterns like TCC transactions, locking, and fund settlement, using e-commerce scenarios to illustrate each layer.

8 min read

Why 5M Fake Users Miss Real Bugs: 3 Data Generation Lessons

The article shares three hard-learned lessons on generating realistic test data: modeling business rules as state graphs for banking payments, matching production distributions with generative models for load testing, and building dialogue trees with LLM fine-tuning for AI intent recognition—proving that data fidelity, not volume, determines test validity.

29 min read

Don't Let LLMs Write SQL: Five Hardened Gates for Production Text2SQL Safety

The article details five code-level constraints — enum whitelists, required parameters, schema allowlists, read-only DB accounts, and parameterized queries — to prevent hallucinated columns, full-table scans, SQL injection, and unauthorized mutations in Text2SQL systems, with a runnable Python skeleton demonstrating error feedback loops.

6 min read

ERP Ontology Essentials: Master Data Alignment, Entity Disambiguation & BOM Reasoning

This article outlines the six most common ontology tasks in ERP systems: master data semantic modeling (TBox), cross-system entity disambiguation (ABox), BOM structure reasoning with change impact propagation, federated semantic queries across business documents, axiom-based rule validation, and end-to-end process ontology for compliance checking.

14 min read

Distributed ID Generation: 8 Strategies from UUID to Snowflake

This article compares eight distributed ID generation approaches—UUID, database auto-increment, segment mode, Redis, Snowflake, Baidu UidGenerator, Meituan Leaf, and Didi TinyID—detailing their mechanisms, pros, cons, and real-world implementations to help choose the right solution for scalable systems.

15 min read

Spring Boot i18n Internals: MessageSource, LocaleResolver & Source Code Flow

This article provides a comprehensive deep dive into Spring Boot internationalization, covering MessageSource message resolution with resource bundle loading and fallback strategies, four LocaleResolver implementations for determining request locale, LocaleChangeInterceptor for runtime language switching, and the complete source-code-level request-to-response flow with practical configuration and code examples.

4 min read

C# async/await Internals: The Hidden State Machine Transforming Your Code

This article explains how the C# compiler transforms async/await methods into state machines implementing IAsyncStateMachine, detailing the role of AsyncTaskMethodBuilder, the importance of ConfigureAwait(false), the dangers of async void, and how lifted local variables cause heap allocations and GC pressure in high-concurrency scenarios.