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

Latest articles

11 min read

Idempotency Strategies for APIs: Preventing Duplicate Submissions

The article analyzes why network timeouts, client retries, user double‑clicks, and at‑least‑once MQ delivery cause duplicate intents, then details five practical idempotency techniques—conditional updates, unique constraints, Idempotency‑Key tokens, state machines with optimistic locks, and distributed locks—along with their trade‑offs and monitoring tips.

29 min read

Defending SMS APIs from Abuse: Multi-Layer Protection with Redis+Lua Token Bucket & Bloom Filters

A comprehensive guide to protecting SMS interfaces from malicious flooding, covering emergency response, multi-layer defense (frontend to third-party), business logic optimization, monitoring, and production-ready code for distributed token buckets, Bloom filters, and sliding-window circuit breakers.

28 min read

API Flood Protection: Emergency Mitigation, Multi-Layer Defense & Rate Limiting Algorithms

This article provides a comprehensive guide to handling API abuse, covering emergency mitigation within three minutes, a multi-layer defense architecture, comparison of four rate limiting algorithms, practical implementations using Redis+Lua token bucket, Sentinel, and Guava Bloom filter, cache protection strategies, idempotency design, and a simulated interview scenario with code examples for distributed rate limiting and replay attack prevention.

35 min read

Payment Callback After Order Cancellation? 3 Consistency Challenges and Practical Engineering Solutions

The article examines why payment callbacks that arrive later than order cancellations cause money‑in‑order‑canceled anomalies, outlines the three core eventual‑consistency problems—message ordering, duplicate consumption, and message loss—and presents a complete engineering solution using business idempotency keys, a transactional outbox, state‑machine handling, and reconciliation compensation.

14 min read

Agent Architecture Evolution: From Monolithic Self‑Management to Distributed Hosting

The article outlines a step‑by‑step evolution of Agent systems, explaining why traditional microservice patterns fail, describing three monolithic deployment models, detailing how separating session, memory, and environment state enables distributed hosting, and presenting function‑as‑a‑service to fully managed ReAct and multi‑Agent collaboration via Registry and A2A.

26 min read

API Idempotency Deep Dive: 5 Patterns, Code & Interview Guide

This comprehensive guide covers five proven idempotency patterns for distributed systems—database unique indexes, token mechanisms, distributed locks, state machines, and deduplication tables—with code implementations, Lua-script atomicity, Spring AOP aspects, optimistic locking, and a simulated interview covering race conditions, clock drift, and hotspot mitigation.

17 min read

How Dingdang Kuaike Achieves 28‑Minute Drug Delivery: The Underlying Tech Architecture

In this interview, Dingdang Kuaike’s R&D head Song Zilong explains how the company transformed a tightly coupled monolith into a micro‑service system, built intelligent real‑time scheduling, migrated Oracle to sharded MySQL across hybrid‑cloud IDC, and leveraged AI to sustain a 28‑minute drug‑delivery promise.

7 min read

Distributed vs Monolithic: Uncovering the Real Performance Trade‑offs

The article analyzes distributed and traditional monolithic architectures across response latency, throughput, scalability, and fault‑tolerance cost, revealing that distributed systems introduce network latency, serialization overhead, higher resource consumption, and complex failure modes that often offset their scalability benefits, and provides concrete case studies from Netflix, Alibaba, and LinkedIn.

18 min read

Orchestration-Driven SOA: Topology, Pitfalls, and Lessons for Modern Architects

This article dissects orchestration-driven SOA, a 1990s enterprise architecture pattern centered on a central ESB and strict service taxonomy, explaining its layered topology, how reuse led to tight coupling and bloated models, the difficulties of distributed transactions, and why its failures directly inspired modern microservices principles.

9 min read

Spring Cloud + Kafka: 6 Common Pitfalls and How to Avoid Them

The article walks through six real‑world pitfalls when integrating Spring Cloud with Kafka—message loss, duplicate processing, out‑of‑order events, massive consumer lag, serialization mismatches, and misuse of Kafka transactions—and provides concrete configuration tweaks, code examples, and operational safeguards to prevent each issue.

37 min read

Why Splitting into Microservices Can Drop Performance by 300%: 10 Common Anti‑Patterns to Avoid

A high‑traffic e‑commerce monolith was split into 13 microservices, causing order latency to jump from 300 ms to 1.2 s, P99 over 8 s, and throughput to halve, and the article analyzes why this happens and presents ten fatal anti‑patterns with concrete remediation steps.

7 min read

Why Software Architecture Is Hard: 8 Core Trade-offs from 'The Hard Parts'

This article reviews 'Software Architecture: The Hard Parts', highlighting eight key architectural challenges including trade-offs, data-architecture tensions, service granularity, database decomposition, distributed data access, contract design, code reuse, and error handling in distributed systems.

45 min read

Designing an Industrial‑Grade Message Queue for Tens of Millions of Orders

This article presents a step‑by‑step design of HermesMQ, an industrial‑grade message queue built from scratch to support ten‑million‑order traffic, covering storage as sequential logs, network architecture with Netty and Reactor, high‑availability replication, partition ordering, transaction messaging, back‑pressure, observability, and practical deployment guidelines.

18 min read

Designing Lampara: Ant Group’s Real‑Time Data Processing System for End‑to‑End SLA Guarantees

The article details Ant Group’s Lampara, a next‑generation real‑time data processing platform that embeds end‑to‑end SLA guarantees, active disaster‑recovery, scenario‑driven development and enhanced operators, showing how it improves reliability, efficiency and cost while supporting large‑scale business scenarios such as flash sales, AI agents and marketing campaigns.

12 min read

Why Ryan Dahl Defied His Promise and Built the celld JavaScript Runtime

After vowing never to create another JavaScript runtime, Ryan Dahl spent over a year developing celld, an open‑source, self‑hosted distributed runtime that brings Cloudflare Workers and Durable Objects to your own machines, using V8, SQLite, Rust async, and S3 for coordination, while exposing its performance trade‑offs and early‑stage limitations.

24 min read

MQ Duplicate Consumption: Three Idempotency Patterns with Code & Pitfalls

This article explains why MQ duplicate consumption occurs due to ACK loss, and details three idempotency solutions—database unique index, Redis atomic operations, and business state machines—with code examples, comparison tables, production pitfalls like race conditions and transaction boundaries, best practices, and interview-focused implementation insights.

12 min read

Domain Event Reliability & Eventual Consistency: Production-Ready DDD Event-Driven Patterns

This article details a production-ready event-driven architecture for DDD microservices, covering the complete domain event flow, local event table for message loss prevention, three idempotency patterns for duplicate consumption, ordering solutions, five common pitfalls, and a five-layer eventual consistency architecture.

17 min read

Orchard: Microsoft’s Open‑Source Agent Framework Hits 0.28 s Latency with 1,000 Sandboxes

Orchard is Microsoft’s open‑source, Kubernetes‑native agent modeling platform that isolates execution in lightweight sandboxes, separates control‑plane operations, supports arbitrary base images and multiple built‑in harnesses, and—according to official benchmarks—delivers an average command latency of 0.28 seconds when running 1,000 concurrent sandboxes.

37 min read

Ditch Glue Code: Skill‑Based Distributed Engine for Multi‑API Orchestration and Real‑Time DB Checks

The article analyzes why traditional script‑based API tests fail in microservice environments and proposes a Skill‑oriented, DAG‑driven distributed automation engine that unifies HTTP calls, database verification, message validation, retries, and observability into a scalable, governable platform.

14 min read

Why Multi-Agent Systems Are Fundamentally Distributed Systems

The article argues that multi‑agent workflows behave like traditional distributed systems, showing how deadlocks, state pollution, and silent drift arise from coordination failures rather than AI shortcomings, and it offers concrete engineering practices—timeouts, idempotency, cycle detection, and audit trails—to build reliable production‑grade agent pipelines.

31 min read

MySQL & Redis Dual-Write Consistency: 4 Proven Strategies with Code & Interview Guide

This comprehensive guide analyzes four production-ready strategies for MySQL-Redis dual-write consistency, from basic cache-aside with delayed double-delete to binlog-based CDC, including Spring Boot code examples, concurrency pitfalls, and interview-focused scenario breakdowns.

9 min read

How Military Command Structures Reveal the Secrets of Large‑Scale System Architecture

The article draws a detailed analogy between the People's Army command hierarchy and modern distributed system design, mapping each military layer to software architecture components and highlighting fault tolerance, unified standards, elastic scaling, and comprehensive security as lessons for IT professionals.

14 min read

Why Multi‑Agent Systems Are Fundamentally Distributed Systems

Multi‑agent workflows often deadlock or drift because their agents behave like distributed nodes, so treating them as a distributed system reveals classic failure modes—deadlocks, state pollution, lack of timeouts, and missing idempotency—allowing proven engineering practices to keep AI pipelines reliable.

13 min read

Six-Month Study Plan for System Architecture Designer Exam: Build Foundations, Aim for 70+ Scores

This guide outlines a detailed 24‑week, 360‑hour preparation roadmap for the System Architecture Designer certification, targeting working professionals and beginners, dividing the study into six phases—from entry to adjustment—each with specific weekly tasks, learning topics, practice exams, and milestones to achieve a 70+ score.

31 min read

Will AI Replace Kubernetes? Co‑Founder Brendan Burns on Its Rise and End

Brendan Burns recounts how he convinced Google to back Kubernetes, built the MVP in five days, navigated open‑source governance, tackled technical challenges like Etcd and declarative design, expanded the platform for AI workloads, and reflects on why even successful software like Kubernetes inevitably faces obsolescence.

28 min read

Seckill System Architecture: 7 Core Design Strategies for High-Concurrency Sales

This article presents a comprehensive, step‑by‑step analysis of building a flash‑sale (seckill) system that can survive instant traffic spikes, detailing seven essential design ideas such as static page delivery, token gating, Redis atomic decrement, asynchronous queuing, multi‑layer rate limiting, service isolation, idempotent processing, and end‑to‑end monitoring and recovery.

34 min read

From MySQL to 10M QPS: A Full‑Stack Engineering Blueprint for High‑Throughput Transaction Systems

This white‑paper dissects why a monolithic MySQL‑based order service collapses under peak traffic and presents a layered, asynchronous architecture—using Redis for stock pre‑allocation, RocketMQ for transactional messaging, sharding, idempotency, and comprehensive observability—to reliably handle tens of millions of queries per second.

12 min read

How Google’s New Open‑Source Projects Make AI Agents Production‑Ready

Google Cloud recently open‑sourced two Go projects—Scion, which isolates and coordinates multiple AI agents, and AX, a distributed runtime that enables a single long‑running agent to resume after failures—detailing their architectures, usage steps, real‑world use cases, limitations, and the broader strategy of turning agents from experimental toys into reliable production workers.

23 min read

How Taobao’s Backend Architecture Evolved Over a Decade

The article walks through Taobao’s backend architecture transformation from a single‑server setup to a cloud‑native, micro‑service ecosystem, detailing fourteen evolutionary stages—including separate Tomcat and DB, caching, load balancing, sharding, NoSQL, ESB, containerization, and cloud deployment—while highlighting key concepts, challenges, and design principles.

11 min read

Key Takeaways from 'Designing Large-Scale Distributed Systems'

This note distills the core engineering practices for building and operating large‑scale distributed systems, covering system definition, distributed vs single‑node trade‑offs, CAP theorem choices, consistency levels, transaction patterns, load‑balancing algorithms, cache strategies, message‑queue reliability, coordination services like ZooKeeper, and essential design principles.

18 min read

7 Golden Rules for Building High‑Availability Cloud‑Native Go Services (Production‑Proven)

This article presents a step‑by‑step guide to building highly available cloud‑native Go systems, covering graceful error handling, structured logging, minimal dependencies, concurrency control, health checks, Raft‑based replication, timeout/retry strategies, circuit breaking, rate limiting, observability with Zap, Loki, Prometheus, OpenTelemetry, and future architectural directions.

7 min read

Smart Cellular Bricks: 3D Neural Cellular Automata for Life‑Like Modular Robots

The study introduces Smart Cellular Bricks, a modular robot system that uses 3D Neural Cellular Automata to enable identical cubes to exchange minimal local information, achieve 98.97% shape‑classification accuracy, 94.8% damage‑detection precision, and self‑repair within 60 update cycles, demonstrating scalable, life‑like collective intelligence.

17 min read

Ten‑Million QPS Architecture: From Strong to Eventual Consistency with Layered Design

The article examines why ultra‑high‑throughput systems must move from costly strong consistency to eventual consistency, explaining consistency layering, the trade‑offs of coordination latency, availability, and tail latency, and how local message tables, idempotent delivery, compensation (Saga) and periodic reconciliation together ensure data eventually aligns without sacrificing performance.

28 min read

Three Critical Guarantees for Message Queues: No Loss, No Duplicates, No Disorder – Deep Dive into Production‑Grade Solutions

This article dissects why modern systems must enforce three reliability guarantees—no message loss, no duplicate processing, and no out‑of‑order delivery—by examining real‑world order flows, outbox patterns, idempotent keys, partitioning strategies, consumer acknowledgments, and operational safeguards such as replay, dead‑letter handling, and monitoring.

36 min read

Beyond Delayed Double Delete: How CDC Closed‑Loop Governance Solves Cache Consistency

The article dissects why the classic "update‑DB‑then‑delete‑cache" or its reverse is only a probability fix for cache inconsistency, demonstrates the failure modes of delayed double delete under high load and replication lag, and presents a production‑grade solution built on Binlog CDC with versioning, four‑plane governance, and robust error handling to achieve reliable cache synchronization.

14 min read

Java Interview Essentials: 10 Must‑Ask Microservice Questions

This article presents ten essential microservice interview questions, covering service registration and discovery, API gateways, fault tolerance, distributed transactions, tracing, configuration management, messaging, ID generation, and service decomposition, each explained with principles, diagrams, code snippets, and tips for impressing interviewers.

39 min read

Scalable Knowledge Base with High‑Concurrency Crawling and Vector Search

The article explains why a production‑grade enterprise knowledge base requires more than just dumping PDFs into a vector store, detailing a distributed, event‑driven architecture with separate collection, processing, retrieval, and governance layers that handle high‑concurrency crawling, real‑time cleaning, versioned indexing, permission filtering, and feedback‑driven updates.

15 min read

Designing a Restaurant Reservation System: How to Slice Time Granularity?

The article compares interview‑style answers and real‑world production for a restaurant reservation system, outlining six design dimensions, three time‑slot strategies, five engineering challenges, and architectural considerations to help engineers choose the right granularity and avoid common pitfalls.

27 min read

Milvus 3.0 Streaming Architecture: 16 PChannels, Five Interceptor Layers, and a Self‑Built WAL 5.8× Faster Than Kafka

Milvus 3.0 replaces the dual‑track write path of 2.x with a unified WAL‑first design, introduces a three‑layer channel model (PChannel, VChannel, CChannel) and a five‑layer interceptor chain, adds the Woodpecker WAL that outperforms Kafka/Pulsar by up to 5.8×, and provides pluggable back‑ends, atomic broadcasting, and provable recovery mechanisms.

6 min read

Designing a High‑Availability Architecture: Core Principles and Practices

This article outlines the essential principles for building a high‑availability system, covering cluster and distributed designs, fault‑tolerance, reliable hardware, disaster recovery, monitoring, security, capacity planning, and automated scaling to achieve optimal performance and resilience.

14 min read

21-Day Study Roadmap for the Shifen Architect Exam: Building the High‑Frequency Scoring Framework

This article presents a 21‑day learning roadmap for the Shifen Architect certification, covering system architecture fundamentals, database and high‑frequency topics, case analysis, and software engineering, with suggested study order, methods, and key concepts for each day.

15 min read

Why Fixed Timeouts Cause Snowball Failures and How Tiered Timeouts Save a 10M QPS System

A 3‑second fixed timeout turned an 800 ms latency spike in a recommendation service into a full‑site outage, illustrating how static timeouts can exhaust thread pools; the article walks through evolving from global timeouts to per‑interface limits, deadline propagation, and coordinated timeout‑retry‑circuit‑breaker strategies for resilient 10 M‑QPS systems.

6 min read

Multi-Agent Deadlocks? Two-Step Circuit Breaker & Arbitration Protocol

The article explains how multi-agent AI systems deadlock due to circular resource dependencies, framing it as a distributed systems problem rather than a prompt engineering issue, and provides a YAML-based topology arbitration protocol with agent priorities, preempt actions, and a 3-second timeout to automatically break deadlock cycles and degrade gracefully.

10 min read

Architecture Styles: Patterns, Partitioning, Distributed Fallacies & Team Topologies

This article distinguishes architecture styles from patterns, explores three primitive patterns, compares technical vs domain partitioning, details the fallacies of distributed computing, and explains how Conway's Law and Team Topologies align team structure with architecture.

7 min read

How to Tackle the “Three Highs” of Internet Systems Without Burning Out

The article analyzes the intertwined challenges of high concurrency, high performance, and high availability in internet services, explains why they cannot all be maximized simultaneously, and presents concrete architectural tactics—partitioning, caching, async processing, redundancy, and CAP trade‑offs—to achieve a balanced, resilient system.

19 min read

Evolving Message Expiration for 10 Million QPS: From No TTL to Smart Policies

When a high‑traffic system processes billions of messages per day, stale “zombie” messages can corrupt business state; this article walks through the evolution from never‑expiring queues to uniform TTL, then per‑topic and per‑message TTL, and finally to smart, context‑aware expiration, detailing the engineering trade‑offs, implementation patterns, and operational checklist needed for reliable 10 M‑QPS message pipelines.

23 min read

Evolution of Banking Core System Architecture: Historical Review and Future Trends

This article examines the three major phases of Chinese commercial banks' core system architecture—system budding, centralized mainframe, and distributed designs—analyzes the technical improvements and shortcomings of each generation, and forecasts post‑distributed trends such as domestic‑technology adoption, cloud‑native deployment, intelligent operations, real‑time data warehousing, micro‑service structures, and large‑model integration.

19 min read

Message Duplication Is Inevitable: Building a Multi‑Layer Idempotency Middleware for Ten‑Million QPS

Message queues guarantee at‑least‑once delivery, making duplicate messages a normal feature; the article examines a real coupon‑distribution incident, critiques business‑level idempotency approaches, and outlines a layered platform‑wide middleware design—including unique keys, state machines, storage choices, and TTL strategies—to achieve reliable processing at ten‑million QPS scale.

27 min read

Scaling Message Queues to 10M QPS: From Downtime to Seamless Online Expansion

At the 10‑million‑QPS scale, expanding a message‑queue cluster no longer hinges on simply adding brokers; it requires coordinated online upgrades of metadata, data migration with dynamic throttling, cooperative consumer rebalance, shadow‑traffic warm‑up, and rollback snapshots, making the act of adding machines the hardest part.

32 min read

Four Levels of Concurrency Control: Optimistic Locks to Message Queues for Million‑QPS

High‑concurrency systems must go beyond simple locking; the article breaks down four progressive strategies—optimistic locking, database pessimistic locking, Redis distributed locks, and finally message‑queue serialization—explaining their trade‑offs, implementation details, pitfalls, and how to combine them into a layered architecture that sustains million‑QPS workloads with consistency, throughput, and recoverability.

26 min read

Rack Awareness: From Zero to High‑QPS – Boost Availability, Cut Cross‑AZ Traffic

A real‑world rack‑power outage showed that three‑replica Kafka clusters can lose all replicas when brokers share a failure domain, prompting a deep dive into rack awareness—how fault‑domain tags are injected, replica‑placement and leader‑distribution algorithms, consumer‑proximity reads, bandwidth costs, failure scenarios, and the stepwise evolution from hundred‑thousand to ten‑million QPS deployments.

16 min read

Microservices Beyond Theory: Big Tech Production Hard Truths

A 10-year big-tech backend veteran reveals why 90% of developers only memorize microservice concepts but fail at production implementation, covering service decomposition pitfalls, fault tolerance patterns, distributed transaction strategies, and high-availability architecture with concrete configurations and real incident lessons.

18 min read

Choosing the Right Replication Factor for 10M QPS Message Queues: From Dual to Multi‑Replica

The article walks through why a single replica is insufficient for million‑scale message queues, explains the latency and data‑loss trade‑offs of dual‑replica sync and async modes, shows how three‑replica majority voting becomes the sweet spot, and then details the engineering considerations for scaling to five or more replicas across availability zones and regions.

16 min read

Duplicate Requests Aren’t Bugs: 5 Idempotency Solutions for Distributed Systems

When network timeouts or retries cause the same payment request to be processed multiple times, duplicate requests become a common failure mode in distributed systems; this article explains five practical idempotency strategies—unique DB indexes, token checks, state machines, Redis SETNX, and downstream dedup tables—and offers guidance on choosing the right approach.

13 min read

Choosing the Wrong Scheduler? Deep Comparison of @Scheduled, Quartz, and XXL‑Job with Pitfall Guide

The article provides a detailed analysis of three popular Java scheduling solutions—@Scheduled, Quartz, and XXL‑Job—highlighting their core features, differences, common pitfalls, and practical advice for selecting the right tool based on project requirements and deployment scenarios.

48 min read

Microservices: Rebuilding Systems, Not Just Splitting Projects – A Production‑Ready Guide

This comprehensive guide explains why microservices are a system‑reconstruction effort rather than a simple code‑splitting exercise, covering when to split, how to define service boundaries, concurrency governance, reliable messaging, observability, deployment, security, and a step‑by‑step production checklist.

16 min read

Consumer Rate Limiting: From Zero to Full Control in Million‑QPS Architectures

The article explains why consumer‑side rate limiting is essential in million‑QPS systems, detailing how unchecked consumers can overwhelm downstream services, and presents practical strategies—including pause/resume, token‑bucket algorithms, adaptive thresholds, and global coordination—to safely throttle consumption without dropping messages.

3 min read

How Alibaba’s Two‑Region Three‑Center Design Achieves 99.99% Availability

The article explains Alibaba’s “two‑region three‑center” architecture, detailing how geographically separated primary, backup, and disaster‑recovery data centers work together to provide financial‑grade high availability and protect against single‑site failures or regional catastrophes.

6 min read

Architecture Quantum: Defining the Scope of Architectural Characteristics in Distributed Systems

This article introduces architecture quantum as the boundary for architectural characteristics, explaining why system-level assumptions fail in microservices. It details four coupling types — semantic, implementation, static, and dynamic — and defines architecture quantum by four properties: independent deployability, high functional cohesion, low external static coupling, and synchronous communication, guiding architectural style selection.

8 min read

Master Bloom Filters in 10 Minutes: How They Prevent Cache Penetration

A Bloom filter is a probabilistic data structure that answers set‑membership queries with guaranteed no false negatives but possible false positives, using a bit array and multiple hash functions; the article demonstrates its mechanics with examples and shows its use in preventing cache penetration, URL de‑duplication, accelerating distributed databases, and handling blacklists, while noting drawbacks like no deletion and limited scalability.

15 min read

Why Consistency Is a Luxury: A Practical Guide to BASE Theory in Distributed Systems

During peak events like Alibaba's Double‑11 and WeChat's red‑packet frenzy, distributed systems must trade strict consistency for availability; this article explains the CAP theorem, introduces the BASE model, compares CP and AP designs, and provides real‑world case studies and selection guidelines.

11 min read

Why Banks Let You Wait but Never Miscalculate: A 5‑Minute Guide to the CAP Theorem

Every delay you notice in WeChat messages, flash‑sale pages, or bank transfers stems from the same underlying distributed‑system trade‑off, and this article explains the CAP theorem, its three guarantees, common misconceptions, and how CP versus AP architectures shape real‑world services.

28 min read

1 Million QPS Coupon‑Grab System: Distributed Rate Limiting, Stock Capping, and CAP Trade‑offs

The article explains how a production‑grade coupon‑grab service can survive millions of requests per second by treating rate limiting as a business admission layer, separating stock capping from throttling, making explicit CAP trade‑offs, and implementing a hybrid Redis‑based token‑bucket limiter with local fallback, monitoring, and deployment best practices.

5 min read

Inside Alibaba’s Same‑City Active‑Active Architecture: A Complete Visual Guide

The article breaks down Alibaba’s same‑city active‑active high‑availability architecture, detailing its four design layers—traffic scheduling, stateless application services, data replication, and operational automation—while illustrating how each component ensures continuous service during data‑center failures.

12 min read

How Agora Uncovered 15 Zero‑Day Deep Bugs in Consensus Protocols with an Industrial‑Grade Multi‑Agent Framework

The paper presents Agora, a hypothesis‑driven multi‑agent system that integrates domain knowledge with large‑model agents to automatically detect deep logic bugs in production‑level consensus protocols, discovering 15 previously unknown vulnerabilities across Raft, EPaxos, HotStuff and BullShark while outperforming GPT‑5.2, Claude 4.5 and other baselines at a fraction of the token cost.

34 min read

How to End Duplicate Consumption in RocketMQ with Idempotence and High‑Concurrency Architecture

The article explains why RocketMQ inevitably delivers duplicate messages under at‑least‑once semantics, analyzes root causes in producer, broker and consumer stages, and presents a production‑grade idempotent solution that combines business keys, Redis caching, Redisson locks, a MySQL idempotent table, AOP interception, and comprehensive monitoring to guarantee exactly‑once business outcomes even under high concurrency and Kubernetes graceful shutdown.

13 min read

What’s the Dubbo Service Call Process? A 10‑Step Deep Dive

The article breaks down a complete Dubbo RPC invocation into ten precise steps—five on the consumer side and five on the provider side—explaining each core component such as Proxy, Filter, Cluster, LoadBalance, Protocol, and Transport, and addresses common interview follow‑up questions about clustering, load balancing, and sync vs async calls.

44 min read

Why Fixed‑Window Rate Limiting Fails in High‑Concurrency: Full Guide to Three Production‑Ready Approaches

The article explains why the simple fixed‑window counter is a hidden trap for high‑traffic systems, outlines five essential questions for production‑grade rate limiting, and compares three practical deployment patterns—single‑node Guava token bucket, Redis‑based distributed sliding window, and Sentinel‑driven microservice governance—complete with code and operational tips.

18 min read

Queue Selection at Ten‑Million QPS: From General‑Purpose to Specialized Queues

In systems handling ten‑million QPS, generic message queues like Kafka hit scalability and latency limits, so the article breaks down a three‑question framework—loss tolerance, latency sensitivity, and ordering needs—to match five specialized queue types and guide a transition from a single‑queue approach to a queue matrix.

13 min read

Prevent Duplicate API Submissions in Spring Boot with Redis, AOP & Custom Annotations

This article explains how to implement duplicate submission prevention in Spring Boot using a token mechanism with Redis, AOP, and custom annotations, covering idempotency concepts, solution comparisons, code implementation with Lua scripts for atomic operations, and common pitfalls.

7 min read

What Journey to the West Teaches About Distributed System Architecture

Using the classic tale Journey to the West, the article maps each disciple to a microservice, explains the shift from monolith to microservices, and illustrates service governance, load balancing, service discovery, fault tolerance, and distributed transactions through vivid analogies and concrete examples.

23 min read

Quickly Build Enterprise Self‑Evolving Agents with AgentScope Builder and Harness Framework

This article presents a deep technical walkthrough of AgentScope Builder, showing how the Harness framework enables a single Java agent implementation to run on a personal machine as MinQwenPaw and then scale to a multi‑tenant, distributed enterprise platform with workspace isolation, sandboxing, and pluggable storage backends.

15 min read

How RedProcess Evolved into DES: Optimizing Xiaohongshu’s Multimedia Task Scheduler

The article details the evolution from the first‑generation RedProcess scheduler to the Distributed Execution Scheduler (DES), explaining how architectural redesigns in storage layering, push‑based dispatch, and systematic disaster‑recovery transformed Xiaohongshu’s video‑cloud task scheduling from merely usable to highly efficient and resilient.

9 min read

From Straw Hut to Skyscraper: The Evolution of Software Architecture

This article traces the historical evolution of software architecture—from early monolithic programs likened to straw huts, through layered, distributed, and microservice designs, to modern cloud‑native and AI‑driven approaches—explaining why each shift addresses growing complexity and organizational needs.

16 min read

From Computer Use to Datacenter Use: Enabling AI Agents to Drive Data Centers Like Function Calls

The article analyzes how AI agents require datacenter‑scale compute beyond a single virtual machine, explains why existing cloud‑native stacks cannot meet this demand, and details Ant Group's AKernel and openYuanrong solution—including three technical pillars, performance benchmarks, a tiny development team, and a streamlined deployment workflow that turns any developer into a "Build Your Own Cluster" operator.

14 min read

Stop Fighting Microservice Calls—Why Experts Prefer Event‑Driven Architecture for Decoupling Distributed Systems

The article explains how traditional synchronous microservice calls create tight coupling, cascading failures, scaling bottlenecks, and high latency, and demonstrates that adopting an event‑driven architecture with producers, consumers, and a message broker such as Kafka can fully decouple services, improve scalability, and enable patterns like event sourcing and CQRS.

11 min read

Essential Architecture Exam Topics: A Must‑Read Review Guide

This guide compiles the most critical architecture concepts for the software architect certification, covering mandatory styles, quality‑attribute analysis, ATAM evaluation, microservice vs. SOA/monolith trade‑offs, Lambda/Kappa big‑data designs, cloud‑native fundamentals, high‑concurrency web patterns, distributed‑system theories, DDD, AI‑ops, IoT/edge computing, blockchain basics, and DevOps practices, each illustrated with concrete metrics and decision‑making steps.

40 min read

Production Design for Order Timeout Closure: RabbitMQ Delay Queues, Idempotent State Machine

This article presents a production‑grade architecture for automatically closing unpaid orders, detailing why simple scheduled tasks are insufficient, outlining high‑risk scenarios, defining five core objectives, comparing implementation options, and providing a complete RabbitMQ TTL + DLX solution with state‑machine idempotency, high‑concurrency handling, observability, and Kubernetes deployment guidance.

35 min read

8 Practical API Idempotency Solutions to Eliminate Duplicate Requests (Pitfall Guide)

The article explains the causes of duplicate requests in distributed systems, defines idempotency, and presents eight concrete implementation strategies—including token mechanisms, unique database indexes, optimistic and pessimistic locks, distributed locks, state machines, request serial numbers, and MQ‑based handling—each with code samples, advantages, drawbacks, and usage guidelines.

13 min read

Idempotency in Practice: Handling the Same Key with Different Parameters

The article explains why simple key‑based idempotency fails when a second request carries different parameters, and demonstrates how to use database row locks, request fingerprinting, state machines, and explicit error handling to guarantee safe, non‑duplicate execution in payment‑critical APIs.

13 min read

How to Build a Reliable 15‑Minute Order Auto‑Cancel in Java: From Naïve @Scheduled to Production‑Ready Redisson

The article walks through the pitfalls of a seemingly simple 15‑minute unpaid‑order cancellation requirement, evaluates five implementation options—from a basic @Scheduled poll to Redis ZSet, DelayQueue, and distributed Redisson solutions—culminating in a production‑grade Redisson scheduler with optimistic‑lock safeguards and detailed best‑practice guidelines.

31 min read

High‑Concurrency Flash‑Sale Blueprint: Redis Atomic Stock and Kafka Throttling

The article presents a production‑grade, scalable flash‑sale architecture that combines Redis atomic inventory deduction, Kafka asynchronous peak‑shaving, and careful database finalization, detailing each layer’s goals, pre‑filtering techniques, Lua scripting, idempotency, capacity planning, monitoring, and compensation strategies to prevent overselling and ensure reliability.

10 min read

Why Scheduled Tasks Fail for Million‑Scale Order Cancellation and How Redis Solves It

The article dissects a common interview question about automatically canceling unpaid orders after 30 minutes, explains why naïve cron‑based scans are unsuitable for tens of millions of rows, and presents three progressively robust solutions using Redis expiration, Redis ZSet polling, and message‑queue or time‑wheel architectures.

7 min read

Senior Architects Reveal a Comprehensive Learning Roadmap for Aspiring System Designers

The article outlines a step‑by‑step learning system compiled by senior architects, covering skill foundations, source‑code analysis, distributed and microservice architectures, concurrency, performance tuning, essential Java tools, and a hands‑on e‑commerce project to help developers become well‑rounded architects.

8 min read

How Leading Tech Companies Elegantly Avoid the Delayed Double Delete Pitfall

The article dissects why the delayed double‑delete cache‑consistency pattern breaks under high traffic, illustrates Alibaba’s painful experience, and then details two production‑grade alternatives—lease‑based token control and version‑number comparison—explaining their principles, Redis‑Lua implementations, and trade‑offs.