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

56 min read

RocketMQ Consumer Deep Dive: Rebalance, Offsets, Retry & Push/Pull Internals

This article provides a comprehensive analysis of RocketMQ's consumer-side mechanisms, covering ConsumerGroup semantics, Rebalance algorithms and costs, offset management with minimum unacknowledged watermark, concurrent vs ordered consumption retry models, Push vs Pull implementations, production configuration baselines, and core source code walkthroughs with real-world incident postmortems.

43 min read

RocketMQ Send Internals: Three Semantics, Retry Budgets, Broker Fault Avoidance

This article dissects RocketMQ's producer-side internals, comparing synchronous, asynchronous, and one-way send semantics, detailing the retry loop's time budget and exception classification, explaining broker latency-based fault avoidance, queue selection algorithms, async backpressure via semaphores, and the end-to-end reliability chain requiring idempotent consumption.

35 min read

RocketMQ Architecture Deep Dive: Core Roles, Message Lifecycle & Three Production Pitfalls

This comprehensive guide dissects RocketMQ's architecture through four core roles, message lifecycle, Topic/Queue model, and Kafka comparisons, illustrating three real-world incidents caused by queue misconfiguration, auto-create topic risks, and reliability layer gaps, with production configs, source code insights, and interview Q&A.

20 min read

Building Production-Grade Face Attendance: Beyond Recognition to Trustworthy Evidence Chains

This article details six critical pitfalls in moving from face-recognition demos to production attendance systems — untrusted client time, GPS accuracy vs. distance, location spoofing, device binding, cross-day shift instances, and duplicate submissions — and shows how to design idempotent APIs, risk-scoring engines, offline tokens, and audit-ready decision records with Spring Boot.

22 min read

Why Splitting Prefill for Prefix Caching Costs 30ms on 4B Models (And When It Pays Off)

Analysis of prefix caching in hybrid attention-recurrent models shows splitting prefill to improve cache hit rates adds 30ms scheduling overhead per request on 4B models, making it a net loss, while larger models benefit; FrontierReplay avoids splitting by reconstructing recurrent state exactly with 5.8-36.9x speedup over full recomputation.

10 min read

Native SQL for Ontologies: OntoL's Intermediate Library vs Palantir's Approach

The article argues that SQL support for ontology products is a foundational design choice, not a late addition, detailing OntoL's architecture using a relational intermediate library (MySQL/Memgraph) for native SQL execution, a custom DSL for cross-source reasoning chains, and key differences from Palantir's platform-centric approach regarding data residency, query portability, and versioned business logic.

9 min read

Microservice Token Auth Patterns: Why Passthrough Fails and K8S-Native Designs Win

The article analyzes six microservice token authentication patterns, rejecting token passthrough for breaking service statelessness, comparing Feign, Dubbo, and Spring Boot Web gateway approaches with their trade-offs, and advocating decentralized auth with K8S Ingress to eliminate registry centers and reduce network hops.

22 min read

Spring AI 2.1: Decision Models, Session API & Stateless MCP for Production Agents

Spring AI 2.1 introduces Decision Models for structured outputs, a new message-part model preserving reasoning traces, Session API replacing ChatMemory with event-sourced memory and recall, tool confirmation and rate limits for safe agent loops, stateless MCP 2026-07-28 protocol, and bring-your-own-vector support across 11 vector stores.

14 min read

Spring Boot Redis Caching: Beyond @Cacheable — Serialization, Keys, and Pitfalls

This article explains how to properly implement Redis caching in Spring Boot using @Cacheable, @CachePut, and @CacheEvict, covering JSON serialization, key design, annotation failure scenarios, memory eviction policies, cache penetration/breakdown/avalanche prevention, consistency patterns, and template selection.

19 min read

Face Login in Spring Boot: 6 Security Boundaries Beyond Simple Face Matching

The article explains that production-grade face login in Spring Boot requires more than a face comparison API; it details critical security boundaries including liveness detection, challenge-response flows, threshold management, device binding, template revocation, and risk-based step-up authentication.

7 min read

Node.js Core Contributor James Snell Releases 18 Skills to Teach AI Built-in Modules

Node.js core contributor James Snell released node-skills, 18 skills that teach AI coding assistants to use built-in Node.js 24–26 modules instead of outdated third-party packages, covering native alternatives, performance tools, and migration guides for deprecated APIs.

36 min read

Production-Grade Multi-Agent: Turning Task Delegation into Recoverable Execution Protocols

This article presents a reference architecture for production-grade multi-agent systems using Go, PostgreSQL, Kafka, and Kubernetes, detailing how to transform task delegation into recoverable execution protocols through persistent state machines, stable business idempotency keys, database conditional updates, tool boundary authorization, and external fact reconciliation.

8 min read

Stop Clicking in Postman: Automate API Testing with Codex + Postman MCP

This tutorial demonstrates how to replace manual Postman API testing with an automated workflow using OpenAI Codex and the Postman MCP server, enabling natural-language test execution, collection and environment management, and schema validation against swagger.json specifications.

12 min read

Prevent Spring Boot Cache Penetration with a Single @BloomCheck Annotation

This article introduces the bloomfilter-spring-boot-starter library that provides declarative @BloomCheck and @BloomAdd annotations to prevent cache penetration in Spring Boot 3.5+, supporting both in-memory and Redis backends with fail-open safety, keyed SipHash, Micrometer metrics, and scheduled filter rebuilds.

61 min read

Master Spring 7.0.8 Source Code: Setup, Pre-compilation Pitfalls & Debug-Driven Reading Guide

This comprehensive guide walks through setting up Spring Framework 7.0.8 source code environment with JDK 17/25, Gradle Wrapper, pre-compilation of spring-core and spring-oxm, IDEA import configuration, creating a minimal debug module, and a systematic debug-driven methodology for reading core IoC/AOP flows including the refresh() 12-step lifecycle.

17 min read

Locate PDF Keywords with Page Numbers and Coordinates Using Apache PDFBox in Java

This tutorial demonstrates how to use Apache PDFBox to find keywords in PDF documents and retrieve their exact page numbers, coordinates, and bounding boxes, covering character-level position extraction, coordinate system conversion, cross-line matching, highlighting, and handling encrypted or rotated pages.