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

14 min read

Why JWT Is Leaving the Browser: A Reality Check on Authentication Patterns

Major websites like Google, Meta, and Amazon avoid JWT for browser authentication, preferring Session + Cookie. This analysis reveals JWT's revocation problems, security trade-offs, and why JWT + Redis is essentially a hand-rolled session, while IETF's 2025 OAuth spec recommends BFF with HttpOnly cookies for SPAs.

63 min read

30K Daily Merges, 40% Fewer Rollbacks: Anthropic's AI Code Review System

Anthropic's AI-driven code review system handles 30,000 daily merges with 90% AI-written code while reducing rollbacks by 40% through a seven-layer defense pipeline, multi-agent review with voting, risk-based approvals, merge queues, and feature flags, with Java implementation examples.

16 min read

Why Playwright Is Replacing Selenium: Architecture, Auto-Wait, and Debugging Advantages

This article compares Playwright and Selenium for UI automation, explaining how Playwright's WebSocket-based architecture eliminates driver version issues, its built-in auto-wait with actionability checks reduces flaky tests from 12% to under 2%, BrowserContext enables lightweight parallel testing, network interception simplifies mocking, and Trace Viewer cuts debugging time from hours to minutes.

4 min read

Why C# GC Uses Generations: The Scan-Reduction Philosophy Architects Must Grasp

This article explains why C#'s generational garbage collection prioritizes scanning short-lived objects to reduce pause times, details the consequences of a single-generation design, and shows how architects can minimize Gen 2 collections through object pooling and avoiding long-lived references.

23 min read

Java Collaborative Editing: Block Versioning, CRDT, and Handling Concurrent Document Edits

This article details how to build real-time collaborative editing in Java using Spring Boot, covering block-level versioning to reduce conflicts, conditional database updates for concurrency control, WebSocket broadcast after transaction commit, reconnection with operation replay, CRDT integration via Yjs for character-level editing, multi-instance deployment with Redis and message brokers, permission validation, and history version recovery without rollback.

26 min read

Integrating AI Agents with ZenTao via MCP Server: Full Implementation Guide

This guide details building a secure MCP server in Node.js to connect AI agents with ZenTao bug tracking, covering token caching, HTTPS enforcement, path validation, multi-path bug list fallback, HTML parsing with image extraction, state transition tools, and local archiving via SKILL for persistent context.

29 min read

Verifiable Microservice Delivery in the AI Era: Contracts, Outbox & Fault Injection

This article demonstrates how to maintain verifiable microservice delivery in the AI coding era by establishing task contracts, state machines, transactional outbox patterns, business idempotency, and fault injection testing, using order timeout cancellation as a concrete example to address distributed system failure semantics and recovery protocols.

43 min read

Why Agents Still Use Stale Memory After Successful Writes: PostgreSQL-to-RAG Consistency Engineering

The article explains why RAG systems serve stale data despite successful writes, presenting a consistency engineering framework using PostgreSQL as source of truth, Outbox for change propagation, Kafka for replayable logs, and Qdrant for candidate indexing, with protocols for write, projection, read, deletion, and rebuild.

43 min read

Kaspar's Actor Mailbox Design: Ring Buffer + Overflow, Why Not Lock-Free, and 4 Queue Benchmarks

This article details the mailbox design in the Kaspar HFT system, explaining the Ring Buffer with overflow approach (BQueue), why lock-free queues aren't default due to cache contention and spin overhead, and benchmarks four implementations (BQueue, BQueueBatched, ShardedBQueue, LockFreeMPSC) under various loads showing ShardedBQueue excels at fan-in while pinning threads matters more than queue choice for latency.

47 min read

RocketMQ Performance Tuning: Full-Chain Bottleneck Analysis & Stress-Test Methodology

This article presents a comprehensive RocketMQ performance tuning methodology covering producer, consumer, broker, and OS layers, emphasizing baseline testing, single-variable changes, and calibration reports, with real incident case studies, configuration templates, and source-code insights.

46 min read

RocketMQ HA: Master-Slave Replication, Dledger Raft, and Production Failover Strategies

This article details RocketMQ's high availability mechanisms, covering master-slave replication models, HA replication internals, synchronous vs asynchronous trade-offs, Dledger's Raft-based consensus for automatic failover, migration strategies, production configurations, monitoring practices, and source code analysis of core replication and election logic.

23 min read

Spring Boot 4.2 Released: AMQP 1.0, OpenTelemetry, Faster Startup & RestTemplate Deprecation

Spring Boot 4.2 introduces AMQP 1.0 support with generic and RabbitMQ-specific starters, adopts OpenTelemetry semantic conventions for unified observability, adds LDAP SSL Bundle configuration, accelerates executable JAR startup and Buildpacks CI caching via remote cache images, enables @DefaultValue property placeholders, and deprecates RestTemplate in favor of the modern RestClient API.

19 min read

Spring Boot 4.2 Released: Deprecations, Silent Changes & Migration Guide

Spring Boot 4.2 introduces major deprecations including RestTemplate and Apache Pulsar support, silent configuration changes like default redirect behavior and forwarded prefix handling, removal of Janino dependency management, and new features such as AMQP 1.0 support and faster executable JAR startup, with detailed migration guidance for upgrading applications.

4 min read

Why .NET GC Doesn't Prevent Memory Leaks: 5 Common Causes

This article debunks the myth that .NET's garbage collector eliminates memory leaks, explaining five common leak scenarios — event subscription leaks, static collection growth, unmanaged resource leaks, large object heap fragmentation, and thread pool task references — and outlines a systematic diagnostic process using dotnet-counters, dotnet-gcdump, and dotnet-dump.

20 min read

Java E-Contract Signing: The Real Challenge Is Guaranteeing Immutability After Signature

This article details the architectural decisions for building a tamper-proof electronic contract signing system in Java, covering immutable contract versioning, content hashing, signing sessions, concurrency control, multi-party workflow, step-up authentication, audit trails, and why PDF generation is the simplest part.

45 min read

RocketMQ Reliability Deep Dive: Three-Phase Model, Transaction Messages & Atomic Guarantees

This article details RocketMQ's end-to-end message reliability through a three-phase model (send, store, consume), transaction messages using half-messages and a check-back mechanism to atomically bind local transactions with message delivery, idempotency design, reconciliation fallback, and production-grade configurations with real incident postmortems.

52 min read

RocketMQ Storage Engine: CommitLog, ConsumeQueue, PageCache & Flush Trade-offs

This article dissects RocketMQ's storage engine, explaining CommitLog hybrid storage, ConsumeQueue's fixed-length indexing, PageCache flush/replication mechanics, disk watermark thresholds, deletion policies, and capacity planning, with real incident analyses and source-code insights.