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

20 min read

Optimal Coupon Combination: Bounded DFS, Four-Layer Pruning & DDD for Production Checkout

This article details a production-grade coupon optimization system for e-commerce checkout, replacing greedy algorithms with bounded DFS search, four-layer pruning, and DDD-modeled rule engine separation to handle complex heterogeneous constraints while ensuring stability via hard limits, timeout fallback, snapshots, and gradual rollout.

8 min read

Why MCP's readOnlyHint Can't Be Trusted: Enforce Read-Only at the Database Layer

The article explains that MCP's readOnlyHint is a server-declared hint, not an enforceable guarantee; clients must treat annotations as untrusted unless from verified servers, and true read-only enforcement requires execution-layer permissions like database roles, while also noting data exfiltration risks via openWorldHint.

28 min read

Java Structured Concurrency: StructuredTaskScope, Joiner Strategies & Virtual Thread Integration

This article explains Java's Structured Concurrency API (StructuredTaskScope) introduced in Project Loom, covering its core concepts, Joiner policies for failure handling, cancellation propagation via thread interruption, timeout configuration, ScopedValue for context propagation, JSON thread dump debugging, and API evolution across JDK 19-27.

5 min read

OntoL7.0 Architecture: MySQL8 Migration with SQLite Dialect Translation

The article details OntoL7.0's technical architecture after migrating business data to MySQL8, maintaining a single codebase with two isolated data stores (MySQL for business, SQLite for system) plus graph and vector storage, using a dialect translation layer to convert SQLite syntax to MySQL at the driver level.

9 min read

Why One Agent Works But 1,000 Fail: Capacity Planning for Agent Orchestration

The article explains why scaling a single agent to thousands requires load-testing capacity, releasing resources during waits, using bounded queues and backpressure, enforcing tenant quotas and isolation, handling cancellations without duplicating external actions, and validating failure scenarios like cold starts and process crashes.

22 min read

Ontology Integration: Reuse Master Data and Interfaces Instead of Rebuilding Systems

This article explains how to integrate ontologies with existing systems by reusing master data and interfaces, verifying product and warehouse identities, aligning quantity units, choosing appropriate data access patterns (direct query, cache, or replica), and establishing reconciliation and permission checks — without requiring a full data migration.

6 min read

How to Implement Redis Cache Warming in Spring Boot

This article demonstrates how to implement Redis cache warming in Spring Boot using an abstract cache class, ApplicationContextAware utility, and CommandLineRunner to preload hot data at startup, with a concrete NewsCache example showing RedisTemplate integration and automatic cache reload on expiration.

17 min read

Designing a Scalable Multi-Account Login System: From Phone Auth to Carrier One-Click Login

This article details the evolution of a unified login system covering phone-based registration, third-party OAuth integration, a normalized database schema separating user profiles from authentication methods, and carrier-based one-click login that reduces authentication time from 20 seconds to 2 seconds.

68 min read

Designing a Collaborative Document Editor: WebSocket, OT/CRDT & Snapshot Replay Deep Dive

This comprehensive guide covers designing a real-time collaborative document editing system, detailing WebSocket communication, OT/CRDT conflict resolution algorithms, server-side sequencing, snapshot-based storage, offline editing, presence, and performance optimization with runnable Java code examples.

17 min read

Kafka 4.2: Share Groups Unlock Per-Partition Parallelism, Streams Rebalancing Moves to Broker

Kafka 4.2 introduces Share Groups (KIP-932) allowing multiple consumers to process records from the same partition concurrently using fetch locks and explicit acknowledgments (ACCEPT, RELEASE, REJECT, RENEW), while Kafka Streams gains server-side rebalancing (KIP-1071) and dead-letter queues (KIP-1034); version 4.2.2 adds 33 fixes including exactly-once checkpoint cleanup, deadlock resolution, and latency metric corrections.

17 min read

Spring Boot Graceful Shutdown: SIGTERM to Container Exit, Request Draining & Kubernetes Timing

This article dissects Spring Boot's graceful shutdown process, explaining how SIGTERM triggers request draining, the interplay between server.shutdown modes, Lifecycle phases, thread pool behavior, SmartLifecycle ordering, and Kubernetes terminationGracePeriodSeconds, with reproducible experiments showing how misconfigured timeouts cause deployment errors.

37 min read

IndexMap: Rust's Ordered HashMap – Implementation, Benchmarks & Use Cases

This article analyzes IndexMap, a Rust crate providing an insertion-order preserving hash map with HashMap-level lookup performance and significantly faster iteration, covering its API, internal design using a dense entry vector plus hash index, benchmark results against HashMap and BTreeMap, and practical use cases like deterministic serialization and order-book queues.

8 min read

vLLM Adds FP8 W8A8 Kernel for AMD Strix Halo, Up to 2.54x GEMM Speedup

vLLM's PR #63199 introduces a dedicated FP8 W8A8 Blockscale GEMM kernel for AMD's gfx1151 (RDNA 3.5) architecture, accelerating specific small-batch matrix multiplications by 1.70–2.54x and improving end-to-end generation throughput by ~6.8% on Ryzen AI MAX+ 395, though the PR remains in draft and covers only a subset of FP8 operations.

16 min read

Unitized Architecture: E-commerce Dual-active Lessons – Sharding, Routing, Consistency

This article shares practical lessons from implementing unitized architecture for an e-commerce platform's cross-region dual-active deployment, covering sharding strategies, traffic routing, data classification, consistency trade-offs, hidden risks, and a decision checklist for when to adopt unitization.