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

11 min read

Java SMS One-Click Login: Complete Production-Ready Implementation with Rate Limiting & Anti-Brute Force

This article provides a complete Java implementation of SMS one-click login using Spring Boot 3, Redis, and JWT, covering business flow, configuration, Redis key design, core service code with rate limiting, blacklist, daily limits, one-time verification codes, login verification with JWT issuance, controller endpoints, production security optimizations including Lua atomic scripts, graphical captcha, channel fallback, risk control, and compliance, plus extension directions like carrier authentication and anomaly detection.

16 min read

PHP 8.6's Tiny Standard Library Additions That Unify a Fragmented Ecosystem

PHP 8.6 introduces the SortDirection enum and Time\Duration class to its standard library, replacing over 150 incompatible userland implementations and inconsistent time representations with a shared vocabulary that enables seamless interoperability across the ecosystem and lays groundwork for a modern date/time API.

19 min read

Spring Boot RabbitMQ Reliability: From RabbitTemplate to Dead Letter Queues in Production

This comprehensive guide covers Spring Boot RabbitMQ integration for production reliability, detailing three message-loss scenarios, the three-layer exchange/queue/binding model, publisher confirms and returns, manual acknowledgment modes, local vs requeue retry strategies, dead letter queue triggers, and practical patterns for idempotency, ordering, and backlog handling with code examples.

24 min read

Spring Boot Event-Driven Decoupling: ApplicationEvent Patterns & Pitfalls

This article explores Spring Boot's ApplicationEvent mechanism for decoupling business side effects, detailing synchronous default behavior, transaction-boundary listeners, async patterns with dedicated thread pools, exception handling strategies, event chaining, and practical refactoring of an order service, while contrasting in-process events with message queues.

34 min read

Vending Machine System Design: 5 Questions Before Coding, State Machine, Anti-Overselling & Power-Failure Recovery

This article provides a comprehensive system design for a vending machine, covering requirement clarification, state machine modeling, concurrency control for overselling prevention, payment idempotency, hardware fault tolerance with MQTT and WAL-based power failure recovery, and engineering best practices for offline sales and reconciliation.

14 min read

5 Essential IntelliJ IDEA Plugins for Automated Java Code Quality Analysis

This article details five IntelliJ IDEA plugins — Alibaba Java Coding Guidelines, CheckStyle, PMD, FindBugs, and SonarLint — covering installation, usage, configuration, and rule sets to automate code review, detect bugs, enforce standards, and improve overall code health in Java projects.

38 min read

Building a Traffic Recording & Replay Platform with Spring Boot: Shadow Traffic, Structured Diff & Regression Validation for System Rewrites

This article details a production-grade traffic recording and replay platform built with Spring Boot, covering five-module architecture, deterministic desensitization, shadow database isolation, structured JSON diff with ignore rules, and CI/CD gate integration to validate system rewrites against real traffic.

7 min read

Java Devs: Verify Codex Access Before Subscribing, Then Scope Project Access

This guide walks Java developers through the correct sequence for adopting GPT-6.1 Sol via Codex: first confirm model availability in ChatGPT Work or Codex clients, then select a subscription tier matching actual usage, and finally grant scoped, auditable project access with Git-backed guardrails and PR-style review loops.

14 min read

Backstage 1.55 Task Recovery: Why Restored Jobs May Still Repeat External Operations

Backstage 1.55 adds task recovery for Scaffolder, but recovery only resumes from saved step state and workspace snapshots; external operations can still repeat if they succeed before checkpoint persistence, requiring action authors to implement idempotency and resource verification.

28 min read

Designing Payment Channel Management Systems: Concepts, Lifecycle, and Architecture

This article provides a comprehensive guide to payment channel management systems, covering channel concepts, classification dimensions, lifecycle stages, system architecture, information hierarchy design, permission models, and practical page-level designs for channel info, capabilities, response codes, parameters, blacklists, and merchant-facing views.

17 min read

Spring Boot AOP Deep Dive: Proxy Internals, Business Patterns & Performance Traps

This article dissects Spring Boot AOP from proxy creation (JDK vs CGLIB) and interceptor chain mechanics to practical aspects for logging, tracing, and idempotency, while exposing eight common pitfalls like self-invocation bypass, final method limits, and synchronous I/O in advice that degrade P99 latency.

24 min read

AI-Native Financial API Redesign: From Aggregated to Single-Scenario Interfaces

This article analyzes the mismatch between traditional aggregated financial APIs and LLM-assisted programming, proposing a shift to single-scenario interfaces with atomic parameters, explicit constraints, and an AI gateway layer, validated by GLM-5.2 experiments showing 88% complexity reduction and 65% faster development.

21 min read

Spring Boot Scheduled Tasks: @Scheduled Internals to Distributed Scheduling Evolution

This article explores Spring Boot scheduled task evolution from @Scheduled basics through thread pool configuration, source code analysis of scheduling internals, distributed locking with ShedLock, and migration to XXL-JOB for sharding and high availability, including common pitfalls and a reconciliation system case study.

18 min read

Spring Boot Dynamic DataSource: Routing, Transaction Timing Pitfalls & Multi-Tenant Patterns

Deep dive into Spring's AbstractRoutingDataSource internals, the critical transaction-routing timing bug that breaks read-write separation, LazyConnectionDataSourceProxy fix, AOP ordering rules, replication lag handling, and multi-tenant schema vs database isolation trade-offs with concrete code and production metrics.