Tagged articles

idempotency

355 articles · Page 1 of 4
ITPUB
ITPUB
Sep 30, 2026 · Artificial Intelligence

How AI Agents Handle High Concurrency: Admission, Backpressure, Async & Isolation

This article details a production-grade architecture for handling high concurrency in AI agent systems, covering real load estimation, admission control with bounded queues, async task processing, hierarchical concurrency budgets for models and tools, resource isolation via bulkheads, idempotency for state consistency, graded degradation strategies, and observability-driven capacity planning.

AI AgentsAsync ProcessingBackpressure
0 likes · 18 min read
How AI Agents Handle High Concurrency: Admission, Backpressure, Async & Isolation
LuTiao Programming
LuTiao Programming
Sep 29, 2026 · Backend Development

Spring Boot Retry Pitfall: Timeout ≠ Failure — Idempotency & Concurrency Fixes

The article explains why naive retries after timeouts cause duplicate orders in Spring Boot, demonstrating how to properly classify retryable exceptions, implement idempotency with stable request IDs, handle non-idempotent third-party APIs via query-before-retry, add concurrency limits with @ConcurrencyLimit, and separate concerns into Service, Gateway, and Client layers using Spring Framework 7's @Retryable.

Backend PatternsConcurrency LimitResilience
0 likes · 14 min read
Spring Boot Retry Pitfall: Timeout ≠ Failure — Idempotency & Concurrency Fixes
Ray's Galactic Tech
Ray's Galactic Tech
Sep 29, 2026 · Backend Development

Production-Grade LLM Annotation Pipeline: Pydantic, PostgreSQL & Kafka Patterns

The article details how a SaaS team evolved a fragile LLM ticket-classification script into a production-grade pipeline using strict Pydantic contracts, PostgreSQL state machines with atomic leasing, Kafka outbox patterns, immutable training snapshots, and metric-gated rollouts to handle model drift, replay, and human review safely.

KafkaLLM data pipelinePostgreSQL
0 likes · 27 min read
Production-Grade LLM Annotation Pipeline: Pydantic, PostgreSQL & Kafka Patterns
Data Bricklaying Diary
Data Bricklaying Diary
Sep 25, 2026 · Backend Development

Beyond Retry: Designing Fault Tolerance from Failure Models to Disaster Recovery

This article explains why retry alone is insufficient for fault tolerance, detailing how to classify failures via fault models, apply appropriate mechanisms like timeouts and circuit breakers, design recovery paths targeting state convergence, define RTO/RPO for disaster recovery, and validate all assumptions through fault injection drills.

Circuit BreakerRPORTO
0 likes · 23 min read
Beyond Retry: Designing Fault Tolerance from Failure Models to Disaster Recovery
Cloud Architecture
Cloud Architecture
Sep 24, 2026 · Backend Development

Scaling Spring Boot Sign-In to 100M Users: Distributed Architecture Evolution & Production Hardening

This article details the evolution of a Spring Boot daily sign-in system from 10K to 100M users, covering Redis bitmap sharding, Lua atomic operations, command outbox pattern, Kafka async reward processing, idempotency guarantees, fault tolerance strategies, and production-grade observability with real incident postmortems.

BitmapCommand OutboxKafka
0 likes · 36 min read
Scaling Spring Boot Sign-In to 100M Users: Distributed Architecture Evolution & Production Hardening
LuTiao Programming
LuTiao Programming
Sep 22, 2026 · Backend Development

Beyond Distributed Locks: Three-Layer Idempotency for Spring Boot Order APIs

The article demonstrates why distributed locks alone fail to guarantee idempotency in Spring Boot order APIs, and presents a three-layer solution combining Idempotency-Key with request fingerprinting, Redis SET NX for fast duplicate interception, and a database unique constraint as the ultimate safeguard against duplicate orders even after crashes or Redis failures.

API DesignDistributed LocksIdempotency-Key
0 likes · 25 min read
Beyond Distributed Locks: Three-Layer Idempotency for Spring Boot Order APIs
Java Tech Workshop
Java Tech Workshop
Sep 20, 2026 · Backend Development

Order Timeout Auto-Cancellation: RabbitMQ Delayed Queue + Scheduled Task Dual Insurance Pattern

This article details a production-ready dual-insurance pattern for e-commerce order timeout cancellation, combining RabbitMQ delayed message queues for real-time processing with scheduled database scans as a fallback, including Spring Boot implementation code, idempotent cancellation logic, and distributed deployment considerations.

RabbitMQSpring Bootdelayed queue
0 likes · 16 min read
Order Timeout Auto-Cancellation: RabbitMQ Delayed Queue + Scheduled Task Dual Insurance Pattern
LuTiao Programming
LuTiao Programming
Sep 20, 2026 · Backend Development

How to Guarantee Single Order Processing When Payment Callbacks Fire 10 Times

The article explains how to handle duplicate payment callbacks in Spring Boot using database unique constraints, conditional state updates, an outbox pattern for reliable event publishing, and downstream idempotency, ensuring orders are processed exactly once even if the payment platform sends repeated notifications.

Database ConstraintsOutbox PatternSpring Boot
0 likes · 17 min read
How to Guarantee Single Order Processing When Payment Callbacks Fire 10 Times
Xiaolin Talks Programming
Xiaolin Talks Programming
Sep 19, 2026 · Backend Development

Building a Multi-Channel Notification Center: Template Design, Async Processing & Reliable Retry Patterns

This article details the architecture and implementation of a production-grade notification center that abstracts channel differences, uses Thymeleaf for template rendering, employs Channel/Provider abstractions for multi-vendor support, handles async execution via thread pools and message queues, and ensures reliability through persistent task tracking, exponential backoff retries, rate limiting, idempotency, and audit logging.

Audit LoggingRate LimitingRetry Pattern
0 likes · 24 min read
Building a Multi-Channel Notification Center: Template Design, Async Processing & Reliable Retry Patterns
Xiaolin Talks Programming
Xiaolin Talks Programming
Sep 18, 2026 · Backend Development

Engineering Large-Scale Excel Imports: Spring Boot + EasyExcel Streaming & Task Isolation

This article details a production-ready engineering approach for importing hundreds of thousands of Excel rows using Spring Boot and EasyExcel, covering streaming parsing, batch validation, async task isolation, idempotency, error reporting, and operational concerns like logging and temp file cleanup.

Async ProcessingBatch ProcessingData Validation
0 likes · 23 min read
Engineering Large-Scale Excel Imports: Spring Boot + EasyExcel Streaming & Task Isolation
Cloud Architecture
Cloud Architecture
Sep 17, 2026 · Databases

Indexes Aren't Free: Production Index Governance for High-Write Order Systems

This article presents a comprehensive index governance methodology for high-write MySQL order systems, demonstrating through a real incident how a read-optimized index caused write latency, replica lag, and timeouts, and detailing a reusable process covering query-driven design, cost measurement, validation, change buffer limits, index convergence, safe deletion, read-write routing, sharding, transactional outbox, idempotent consumers, online DDL safeguards, gating, and long-term ownership.

Capacity PlanningChange BufferDescending Indexes
0 likes · 29 min read
Indexes Aren't Free: Production Index Governance for High-Write Order Systems
Architect
Architect
Sep 13, 2026 · Artificial Intelligence

Multi-Agent Consistency: Distributed Systems Challenges Return with Autonomous Agents

The article explores four critical questions for multi-agent consistency: task decomposition rationale, structured handoffs with versioned snapshots, conflict resolution via evidence-based contracts, and verifiable completion criteria. It argues multi-agent systems reintroduce classic distributed systems challenges—identity, leases, idempotency, compensation—and require runtime proofs over model assertions.

Agent ArchitectureRuntime Verificationagent orchestration
0 likes · 21 min read
Multi-Agent Consistency: Distributed Systems Challenges Return with Autonomous Agents
Random Bulletin
Random Bulletin
Sep 12, 2026 · Operations

Automatic Rollback at 10M QPS: Evidence, Scope, and Safe Recovery Loops

This article dissects why manual rollback breaks at 10M QPS and details a five-phase automatic rollback loop—context collection, health evaluation, traffic freeze, phased execution, and layered verification—emphasizing multi-signal decision rules, rollback-object dependency graphs, blast-radius control via canary, idempotent execution, and circuit-breaker governance to prevent automation-induced failures.

Circuit Breakerautomatic rollbackblast radius control
0 likes · 26 min read
Automatic Rollback at 10M QPS: Evidence, Scope, and Safe Recovery Loops
Data Bricklaying Diary
Data Bricklaying Diary
Sep 11, 2026 · Backend Development

Distributed Systems' Hardest Challenge: State Over Interfaces — Consistency, Idempotency & Async Tasks

This article explores why cross-service state management is harder than API design in distributed systems, using a refund example to illustrate how local transactions, idempotency, state machines, Outbox patterns, and manual intervention achieve recoverable convergence when operations span multiple services and external channels.

Outbox Patternasync tasksconsistency
0 likes · 21 min read
Distributed Systems' Hardest Challenge: State Over Interfaces — Consistency, Idempotency & Async Tasks
LuTiao Programming
LuTiao Programming
Sep 10, 2026 · Backend Development

Spring Framework 7 Retry & ConcurrencyLimit: Avoiding the Traffic Amplifier Trap

The author migrates from hand-written retry code and Spring Retry to Spring Framework 7's built-in @Retryable and @ConcurrencyLimit, discovering that retry logic can amplify downstream traffic under virtual threads, and shares lessons on selective exception handling, jitter, idempotency for write operations, and the difference between local concurrency limits and distributed rate limiting.

Circuit BreakerConcurrencyLimitResilience
0 likes · 16 min read
Spring Framework 7 Retry & ConcurrencyLimit: Avoiding the Traffic Amplifier Trap
Cloud Architecture
Cloud Architecture
Sep 7, 2026 · Backend Development

Why a Single Timeout Spawned Two Risk Reviews: Production MCP Server Patterns

The article analyzes a timeout-induced duplicate risk review incident, then presents a comprehensive production-grade MCP server design covering stateless protocol alignment, schema validation, dual-key idempotency (request_key + business_key), UNKNOWN state machine, recovery workers, MCP Tasks integration, concurrency control, observability, and fault-injection testing to ensure exactly-once business effects.

MCPModel Context ProtocolProduction Engineering
0 likes · 27 min read
Why a Single Timeout Spawned Two Risk Reviews: Production MCP Server Patterns
Cambridge Mofang Notes
Cambridge Mofang Notes
Sep 7, 2026 · Backend Development

Points System Architecture: Concurrency, Batch Expiration & Idempotent Reconciliation

This article walks through designing a points system architecture, starting from a concrete scenario of consuming 80 points across two batches with retries and refunds, covering data models, idempotency keys, local transactions, cache-aside, event-driven reconciliation, scaling strategies, and evolutionary deployment phases.

batch expirationcache-asideevent-driven
0 likes · 27 min read
Points System Architecture: Concurrency, Batch Expiration & Idempotent Reconciliation
Open Source Tech Hub
Open Source Tech Hub
Sep 6, 2026 · Backend Development

Designing Reliable Failure Boundaries in PHP: Errors, Exceptions & Result Types

This article explores how to design robust failure boundaries in PHP payment systems by distinguishing validation errors, expected business declines, transient provider failures, and programming defects, using result types for normal outcomes, translated exceptions for integration failures, idempotent retries, and observability without sensitive data.

PHPerror handlingexceptions
0 likes · 38 min read
Designing Reliable Failure Boundaries in PHP: Errors, Exceptions & Result Types
LuTiao Programming
LuTiao Programming
Sep 5, 2026 · Backend Development

Why @Scheduled Runs 3× in Kubernetes: Migrating to JobRunr for Distributed Tasks

After scaling a Spring Boot app to three Kubernetes replicas, @Scheduled tasks ran thrice, generating duplicate reports. The author evaluates distributed locks but adopts JobRunr for persistent, retryable, and monitorable background jobs, demonstrating integration with Spring Boot 4, code patterns for fire-and-forget, recurring, and delayed tasks, plus idempotency and deduplication strategies.

Background JobsDistributed Task SchedulingJobRunr
0 likes · 16 min read
Why @Scheduled Runs 3× in Kubernetes: Migrating to JobRunr for Distributed Tasks
Coder Trainee
Coder Trainee
Sep 3, 2026 · Mobile Development

Complete Guide: Integrating WeChat Virtual Payment for Individual Developers

This tutorial walks individual developers through the entire process of applying for and integrating WeChat Virtual Payment into a mini-program, covering eligibility checks, application steps, key configuration parameters, product creation, frontend and backend integration flows, iOS IAP considerations, a pre-deployment checklist, and two common pitfalls to avoid.

AppKeyIAPIndividual Developer
0 likes · 10 min read
Complete Guide: Integrating WeChat Virtual Payment for Individual Developers
Cloud Architecture
Cloud Architecture
Sep 3, 2026 · Backend Development

TCC Is Not a Silver Bullet: Engineering Go Microservice Distributed Transactions with Performance Tuning

This article details the engineering implementation and performance optimization of TCC distributed transactions in Go microservices, using an order placement scenario with inventory locking and wallet freezing, covering data models, idempotent state machines, recovery workers, hotspot optimization, and observability.

ConcurrencyGoMySQL
0 likes · 33 min read
TCC Is Not a Silver Bullet: Engineering Go Microservice Distributed Transactions with Performance Tuning
Tech Ocean
Tech Ocean
Sep 3, 2026 · Backend Development

AI Coding Is Nearly Free — Why Does Delivery Still Cost So Much?

The article argues that while AI tools like Claude Code accelerate initial code generation, the real engineering effort lies in defining failure states, untangling legacy systems, ensuring idempotency, rigorous testing, safe rollbacks, and post-launch observability — illustrated through an order resubmission feature that requires six non-negotiable steps before production.

AI codingbackend engineeringidempotency
0 likes · 12 min read
AI Coding Is Nearly Free — Why Does Delivery Still Cost So Much?
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 2, 2026 · Backend Development

How to Build a Scalable Notification Service with Spring Boot

The article explains why notification services are hard—slow delivery, unreliable third‑party providers, and status tracking—and shows how to solve these issues by fully decoupling the API from workers using a message queue, with detailed Spring Boot code examples and scaling strategies.

JavaNotification ServiceRabbitMQ
0 likes · 10 min read
How to Build a Scalable Notification Service with Spring Boot
LuTiao Programming
LuTiao Programming
Aug 31, 2026 · Backend Development

Why Disabled Buttons Still Produce Duplicate Orders – Rebuilding Idempotency in Spring Boot

The article examines a common duplicate‑order bug caused by client retries after network timeouts, explains why @Transactional alone cannot guarantee idempotency, critiques simple Redis SETNX solutions, and presents a robust Spring Boot design that stores idempotency records together with order data in a single MySQL transaction, uses request fingerprints, unique keys, and owner tokens to safely replay or reject retries while handling concurrency and cleanup.

@TransactionalAPI DesignConcurrency
0 likes · 19 min read
Why Disabled Buttons Still Produce Duplicate Orders – Rebuilding Idempotency in Spring Boot
Lakehouse Research Base
Lakehouse Research Base
Aug 31, 2026 · Big Data

Factory Lines & Data Pipelines: The Shared Orchestration DNA

This article reveals the deep structural isomorphism between manufacturing assembly lines and data pipeline orchestration, mapping five shared design philosophies, a 15-dimension logical correspondence, bidirectional lessons, and six practical mental models for data engineers to adopt factory-floor thinking.

assembly linedata engineeringdata orchestration
0 likes · 22 min read
Factory Lines & Data Pipelines: The Shared Orchestration DNA
Ray's Galactic Tech
Ray's Galactic Tech
Aug 24, 2026 · Backend Development

Decoupling Payments and Wallets: From Order Domain to a Unified Accounting Center

The article walks through why embedding a wallet in the order service leads to boundary violations and failures under load, and presents a step‑by‑step evolution from an order‑centric wallet to a dedicated, event‑driven accounting center that ensures consistency, auditability, and high‑throughput scalability.

Domain-Driven DesignHigh ConcurrencyOutbox Pattern
0 likes · 42 min read
Decoupling Payments and Wallets: From Order Domain to a Unified Accounting Center
Ray's Galactic Tech
Ray's Galactic Tech
Aug 22, 2026 · Backend Development

High-Concurrency Wallet Design: Hot Accounts, Idempotent Deductions, and Sharding Practices

The article analyses why wallet balance deduction is more error‑prone than inventory, outlines the root causes of a real‑world 60 k TPS outage, and presents a production‑grade architecture that separates strong‑consistent user deductions from asynchronous hot‑account crediting using idempotent requests, unique DB constraints, sharding, outbox messaging, and comprehensive monitoring to guarantee financial correctness under extreme load.

High ConcurrencyOutboxidempotency
0 likes · 32 min read
High-Concurrency Wallet Design: Hot Accounts, Idempotent Deductions, and Sharding Practices
Data Bricklaying Diary
Data Bricklaying Diary
Aug 21, 2026 · R&D Management

Feature Complete ≠ Production Ready: Why AI Coding Demands Engineering Discipline

This article argues that AI can rapidly generate functional code but cannot lower the engineering bar for production readiness, which requires risk-matched baselines, independent verification, and accountable gates — illustrated through a batch-import example showing the gap between happy-path code and real-world constraints like retries, idempotency, observability, and rollback.

AI-assisted developmentSoftware Engineeringengineering gates
0 likes · 21 min read
Feature Complete ≠ Production Ready: Why AI Coding Demands Engineering Discipline
LuTiao Programming
LuTiao Programming
Aug 20, 2026 · Backend Development

Recreating Taobao’s 30‑Minute Unpaid Order Auto‑Close in Spring Boot Without Redis or Minute‑by‑Minute Scans

The article explains how to replace the common @Scheduled per‑minute scan or Redis TTL approach for auto‑closing unpaid orders with JobRunr’s durable delayed‑job feature in Spring Boot, detailing the implementation steps, scalability benefits, idempotent handling, and distributed execution considerations.

Background JobsJobRunrSpring Boot
0 likes · 11 min read
Recreating Taobao’s 30‑Minute Unpaid Order Auto‑Close in Spring Boot Without Redis or Minute‑by‑Minute Scans
Ray's Galactic Tech
Ray's Galactic Tech
Aug 20, 2026 · Backend Development

Why Wallet Balance Shouldn't Be Calculated On‑The‑Fly: Double‑Entry Accounting, Snapshots, and Immutable Ledger Practices

The article explains that a production‑grade wallet must store balance snapshots instead of summing transaction flows, using double‑entry bookkeeping, ACID guarantees, idempotent request handling, outbox messaging, sharding, and comprehensive reconciliation to ensure correctness and high‑throughput under heavy concurrency.

High ConcurrencyOutbox Patternbalance snapshot
0 likes · 43 min read
Why Wallet Balance Shouldn't Be Calculated On‑The‑Fly: Double‑Entry Accounting, Snapshots, and Immutable Ledger Practices
Ray's Galactic Tech
Ray's Galactic Tech
Aug 19, 2026 · Backend Development

Designing a 12‑State Payment System State Machine from Pending to Completed

This article presents a complete design for a 12‑state payment order state machine that handles high‑concurrency scenarios such as payment callbacks arriving after an order has been cancelled, using explicit state transitions, database CAS updates, Redis + DB idempotency, Outbox pattern and Kafka‑driven asynchronous processing to achieve reliable, auditable and compensatable order lifecycle management.

ConcurrencyKafkaMySQL
0 likes · 39 min read
Designing a 12‑State Payment System State Machine from Pending to Completed
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Aug 18, 2026 · Backend Development

How Alipay Ensures Payment Idempotency in High‑Concurrency Systems

The article explains why idempotency is critical for Alipay’s high‑concurrency, high‑reliability payment platform and outlines four key reasons—funds safety, handling network uncertainty, user experience, and distributed architecture—followed by concrete solutions such as unique business identifiers, database unique constraints, state‑machine control, and idempotent API design.

Database Constraintsbackend designdistributed systems
0 likes · 6 min read
How Alipay Ensures Payment Idempotency in High‑Concurrency Systems
Java Architect Handbook
Java Architect Handbook
Aug 18, 2026 · Backend Development

Why Misusing Spring Event Can Destroy Your Service Performance

The article analyzes common pitfalls of Spring Event—such as publishing during shutdown or early startup, unsuitability for strong‑consistency use cases, and the need for graceful shutdown, idempotent listeners, and extra reliability measures—while comparing it with message‑queue solutions.

Publish‑SubscribeSpringSpring Boot
0 likes · 12 min read
Why Misusing Spring Event Can Destroy Your Service Performance
SpringMeng
SpringMeng
Aug 18, 2026 · Operations

CFO’s No‑Code AI App Triggers a Month’s Server Bill in One Day

A CFO built a SaaS product in two days using Claude Code, but a missing database field caused the task queue’s automatic retries to re‑execute 21 LLM calls, turning a single day’s AI usage into a cost that exceeded the entire month’s server expenses.

AICloud InfrastructureCost Management
0 likes · 11 min read
CFO’s No‑Code AI App Triggers a Month’s Server Bill in One Day
Ray's Galactic Tech
Ray's Galactic Tech
Aug 17, 2026 · Backend Development

From DB Row Locks to Redis + Lua: Evolving Flash‑Sale Inventory Deduction

The article walks through the evolution of a flash‑sale inventory‑deduction system, starting with simple database row‑locking SQL, exposing its scalability limits, and progressively adding transaction trimming, Redis pre‑deduction, Lua atomic scripts, async pipelines, idempotency, reconciliation and robust engineering practices to handle extreme concurrency.

AsyncProcessingHighConcurrencyInventoryDeduction
0 likes · 40 min read
From DB Row Locks to Redis + Lua: Evolving Flash‑Sale Inventory Deduction
Ray's Galactic Tech
Ray's Galactic Tech
Aug 16, 2026 · Backend Development

Ditch Seata: Build a Production‑Ready SAGA Orchestrator with a 500‑Line Java State Machine

This article shows how to replace heavyweight distributed‑transaction frameworks such as Seata with a lightweight, production‑grade SAGA orchestrator built from a Java state machine, MySQL persistence and Spring Boot, covering architecture, state‑machine design, database schema, core orchestration logic, recovery, exception handling and practical deployment tips.

JavaSAGASpring Boot
0 likes · 46 min read
Ditch Seata: Build a Production‑Ready SAGA Orchestrator with a 500‑Line Java State Machine
Xike
Xike
Aug 16, 2026 · Backend Development

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.

APITokendatabase
0 likes · 11 min read
Idempotency Strategies for APIs: Preventing Duplicate Submissions
Thought Artisan
Thought Artisan
Aug 16, 2026 · Artificial Intelligence

Designing Production-Grade AI Agents: Fault Tolerance, Recovery, and Idempotency Patterns

This article presents a systematic approach to building reliable AI agents by classifying faults into API, tool, context, and control-flow layers, detailing detection mechanisms like repeat-call fingerprints and watchdogs, and outlining recovery strategies including exponential backoff, model cascade degradation, tool-error virtualization, and idempotent pre-check-confirm patterns to prevent death spirals and ensure safe retries.

AI AgentsCircuit Breakerdeath spiral
0 likes · 10 min read
Designing Production-Grade AI Agents: Fault Tolerance, Recovery, and Idempotency Patterns
Ray's Galactic Tech
Ray's Galactic Tech
Aug 14, 2026 · Backend Development

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.

Kafkadistributed systemseventual consistency
0 likes · 35 min read
Payment Callback After Order Cancellation? 3 Consistency Challenges and Practical Engineering Solutions
Data Bricklaying Diary
Data Bricklaying Diary
Aug 14, 2026 · Artificial Intelligence

Action ≠ API: Designing Business Execution Contracts for Enterprise Agents

This article explains why ontology Actions are not mere API wrappers but business execution contracts that bind semantics, decisions, evidence, permissions, idempotency, compensation, and audit receipts, detailing four Action forms, five boundary categories, common misconceptions, and a six-step implementation approach for enterprise agents.

MCPOntologySemantic Modeling
0 likes · 20 min read
Action ≠ API: Designing Business Execution Contracts for Enterprise Agents
Ray's Galactic Tech
Ray's Galactic Tech
Aug 13, 2026 · Backend Development

Event Sourcing Primer: Rebuilding State Without a Database

This article explains how event sourcing replaces the traditional current‑state table with an immutable event log, allowing systems to reconstruct any state, handle concurrency, support auditing, and power flexible read models through projections, while outlining the necessary architectural components such as aggregates, event stores, snapshots, outbox, idempotency, and the natural transition to CQRS.

CQRSEvent SourcingOutbox
0 likes · 32 min read
Event Sourcing Primer: Rebuilding State Without a Database
Niu Liu
Niu Liu
Aug 12, 2026 · Backend Development

WeChat Pay Service Provider: Entity-First Payment Routing for Multi-Store Systems

This article details a production-grade WeChat Pay service provider integration for multi-store, multi-entity scenarios, covering domain modeling, versioned payment routing, sub-merchant onboarding state machines, cashier configuration layers, callback verification, refund snapshot isolation, three-level reconciliation, and a 10-item launch checklist.

APIv3Cashier ConfigurationJava
0 likes · 28 min read
WeChat Pay Service Provider: Entity-First Payment Routing for Multi-Store Systems
liandk
liandk
Aug 8, 2026 · Backend Development

Fixing MQ’s Four Major Issues: Loss, Duplication, Backlog, and Out‑of‑Order Messages

The article explains how to build a production‑grade MQ architecture by addressing the four critical pitfalls—message loss, duplicate consumption, backlog, and out‑of‑order delivery—through producer ACK retries, persistent storage, manual ACKs, idempotent business logic, dead‑letter queues, consumer scaling, and partitioned ordering.

MQdead letter queueidempotency
0 likes · 7 min read
Fixing MQ’s Four Major Issues: Loss, Duplication, Backlog, and Out‑of‑Order Messages
Xiaolin Talks Programming
Xiaolin Talks Programming
Aug 6, 2026 · Backend Development

Spring Boot + Quartz: Production-Grade Scheduling with Dynamic Control, Cluster HA & Misfire Handling

This guide details building a production-grade Spring Boot Quartz scheduler covering JDBC persistence, cluster coordination via database locks, misfire policies, dynamic job management, execution logging via JobListener, idempotency patterns, monitoring metrics, and troubleshooting common pitfalls like transaction boundaries and clock drift.

Spring Bootclusteridempotency
0 likes · 20 min read
Spring Boot + Quartz: Production-Grade Scheduling with Dynamic Control, Cluster HA & Misfire Handling
Data Bricklaying Diary
Data Bricklaying Diary
Aug 6, 2026 · Artificial Intelligence

From Ontology Semantics to Ontology Intelligence: Why Understanding Business ≠ Driving It

The article distinguishes ontology semantics (AI understanding business objects, states, rules) from ontology intelligence (explainable decisions, contract-constrained actions, auditable loops), outlining seven engineering capabilities needed to close the loop and emphasizing a minimal viable loop around high-value decisions.

Action ContractsAgent ArchitectureAgent Runtime
0 likes · 16 min read
From Ontology Semantics to Ontology Intelligence: Why Understanding Business ≠ Driving It
Data Integration and Governance
Data Integration and Governance
Jul 31, 2026 · Operations

Ensuring Data Sync Is No‑Duplicate, No‑Loss, Accurate – Full‑Load, Incremental, Validation, Exception Handling

The article explains why reliable data synchronization must answer three questions—preventing duplicates, avoiding missing data, and preserving correct content—and details practical solutions for full‑load and incremental sync, idempotent writes, CDC, handling late, out‑of‑order and breakpoint failures, multi‑layer validation, and categorized exception recovery.

CDCValidationdata synchronization
0 likes · 15 min read
Ensuring Data Sync Is No‑Duplicate, No‑Loss, Accurate – Full‑Load, Incremental, Validation, Exception Handling
Cloud Architecture
Cloud Architecture
Jul 26, 2026 · Backend Development

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.

High ConcurrencyLuaMQ
0 likes · 28 min read
Seckill System Architecture: 7 Core Design Strategies for High-Concurrency Sales
Xiaolin Talks Programming
Xiaolin Talks Programming
Jul 24, 2026 · Backend Development

High-Availability Distributed Task Scheduling with Spring Boot & PowerJob: Production Hardening Guide

This guide shares a year of production experience migrating from basic @Scheduled to PowerJob for high-availability distributed task scheduling, covering Spring Boot integration, DAG workflow orchestration, MapReduce sharding, lease-based failover, JVM tuning, metadata DB protection, and idempotency patterns.

DAG WorkflowDistributed Task SchedulingMapReduce
0 likes · 18 min read
High-Availability Distributed Task Scheduling with Spring Boot & PowerJob: Production Hardening Guide
LuTiao Programming
LuTiao Programming
Jul 24, 2026 · Backend Development

Why Scheduled Tasks Run Multiple Times in a Cluster – The Real Issue Isn’t Quartz but Poor Architecture

When a Java application that uses Spring’s @Scheduled moves from a single server to a cluster, the same job may execute on every node, causing duplicate orders, messages, and data; the article explains why this happens, examines common lock‑based fixes and their pitfalls, and proposes a robust, idempotent, sharded task architecture.

@ScheduledBackendJava
0 likes · 15 min read
Why Scheduled Tasks Run Multiple Times in a Cluster – The Real Issue Isn’t Quartz but Poor Architecture
Ray's Galactic Tech
Ray's Galactic Tech
Jul 23, 2026 · Backend Development

How to Keep Billions of Order States In Order with RocketMQ’s Ordered Messaging

The article explains why order‑status updates can become out‑of‑order in high‑traffic systems, how RocketMQ’s ordered‑message feature guarantees per‑key sequencing while highlighting its trade‑offs, and provides concrete producer and consumer implementations, failure handling, scaling, and deployment guidelines to ensure reliable, idempotent order processing.

Ordered MessagingRocketMQidempotency
0 likes · 27 min read
How to Keep Billions of Order States In Order with RocketMQ’s Ordered Messaging
Coder Life Journal
Coder Life Journal
Jul 20, 2026 · Backend Development

Redis Distributed Lock with Three Checks: Why Small Projects Should Rethink Its Use

The article analyzes Redis distributed locks—its three‑step verification, the limited guarantees it provides, and why small‑to‑medium projects should often prefer database constraints, idempotency keys, or state machines over adding a lock that introduces extra complexity and maintenance overhead.

Database ConstraintsRedisbackend development
0 likes · 10 min read
Redis Distributed Lock with Three Checks: Why Small Projects Should Rethink Its Use
Cloud Architecture
Cloud Architecture
Jul 18, 2026 · Backend Development

RabbitMQ Idempotent Consumption: Keeping Duplicate Processing Within Business Limits

The article explains why RabbitMQ provides at‑least‑once delivery, how duplicate consumption arises in publish‑subscribe scenarios, and presents a step‑by‑step design—including deduplication keys, a deduplication table, transactional writes, proper ACK ordering, and a checklist of common pitfalls—to ensure idempotent processing stays within acceptable business tolerances.

Database TransactionJavaRabbitMQ
0 likes · 20 min read
RabbitMQ Idempotent Consumption: Keeping Duplicate Processing Within Business Limits
Ray's Galactic Tech
Ray's Galactic Tech
Jul 17, 2026 · Backend Development

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.

KafkaOutbox Patterndistributed systems
0 likes · 28 min read
Three Critical Guarantees for Message Queues: No Loss, No Duplicates, No Disorder – Deep Dive into Production‑Grade Solutions
samdeepthink
samdeepthink
Jul 17, 2026 · Backend Development

Three Crucial Architecture Decisions for Building a Reliable Payment System

The article outlines three core architectural choices—channel isolation, a dedicated payment gateway, and robust callback handling with Redis and distributed locks—that together prevent a single payment channel failure from collapsing the entire payment platform.

Redischannel isolationidempotency
0 likes · 5 min read
Three Crucial Architecture Decisions for Building a Reliable Payment System
Xiaolin Talks Programming
Xiaolin Talks Programming
Jul 17, 2026 · Backend Development

Spring StateMachine in Production: Modeling, Redis Persistence & High-Concurrency Anti-Duplication Patterns

This article shares real-world experience using Spring StateMachine to replace sprawling if-else logic in order systems, covering state/event/guard modeling, Redis-backed persistence, a three-layer concurrency control pattern (distributed lock + optimistic lock + event idempotency), async decoupling, timeout handling, and compensation strategies with concrete code templates.

High ConcurrencyOptimistic LockRedis Persistence
0 likes · 17 min read
Spring StateMachine in Production: Modeling, Redis Persistence & High-Concurrency Anti-Duplication Patterns
Random Bulletin
Random Bulletin
Jul 16, 2026 · Backend Development

Task Queues at Ten‑Million QPS: From Synchronous Processing to Queue‑Based Architecture

The article explains how moving non‑critical actions in a high‑traffic e‑commerce order flow to a task queue separates core work from optional work, solving delivery guarantees, idempotency, backlog management, and ordering challenges while dramatically reducing latency and fault contagion.

Task Queueasynchronous-processingbacklog management
0 likes · 17 min read
Task Queues at Ten‑Million QPS: From Synchronous Processing to Queue‑Based Architecture
Xiaolin Talks Programming
Xiaolin Talks Programming
Jul 16, 2026 · Backend Development

CDC + Outbox Pattern: Production-Grade Cross-Database Sync with Spring Boot & Kafka

This article details a production-ready cross-database synchronization architecture using CDC and Outbox pattern with Spring Boot, Debezium, and Kafka, covering schema design, connector configuration, transaction boundaries, ordering guarantees, idempotent consumption, dead-letter queues, and monitoring strategies.

CDCCross-Database SyncData Consistency
0 likes · 20 min read
CDC + Outbox Pattern: Production-Grade Cross-Database Sync with Spring Boot & Kafka
Cloud Architecture
Cloud Architecture
Jul 14, 2026 · Backend Development

Building a Billion‑Message, Millisecond‑Scale Private Messaging System with Spring Boot, RabbitMQ & Redis

This article presents a production‑grade design for a social private‑messaging system that handles billions of messages with millisecond latency, detailing how MySQL serves as the message fact store, RabbitMQ provides low‑latency distribution, Redis manages online state and indexes, and Outbox plus idempotent consumption ensure reliability and ordering.

OutboxRabbitMQRedis
0 likes · 35 min read
Building a Billion‑Message, Millisecond‑Scale Private Messaging System with Spring Boot, RabbitMQ & Redis
Cloud Architecture
Cloud Architecture
Jul 13, 2026 · Backend Development

Production-Grade Payment System Guide: Java Implementation for Alipay & WeChat All-Channel Integration

This article explains why a payment system is more than a simple SDK integration, presents a four‑layer architecture (access, state, event, governance), details state machines, idempotent callbacks, outbox pattern, reconciliation, high‑concurrency handling, observability, security, and provides Java code examples for integrating Alipay and WeChat across all channels.

AlipayHigh ConcurrencyJava
0 likes · 29 min read
Production-Grade Payment System Guide: Java Implementation for Alipay & WeChat All-Channel Integration
Random Bulletin
Random Bulletin
Jul 13, 2026 · Backend Development

Why Simple Retry Triggers Avalanches and How Smart Strategies Save 10M‑QPS Systems

The article explains how a naïve ‘retry three times’ default can amplify a minor 200 ms latency spike into a full‑scale outage in a 10 million‑QPS system, and walks through a progressive design—from identifying retry‑eligible transient faults, adding exponential backoff with jitter, enforcing idempotency, applying token‑bucket retry budgets, integrating circuit breakers, to using hedged requests—showing how each layer prevents traffic amplification and ensures reliable high‑throughput services.

Circuit BreakerJitterbackoff
0 likes · 18 min read
Why Simple Retry Triggers Avalanches and How Smart Strategies Save 10M‑QPS Systems
Xiaolin Talks Programming
Xiaolin Talks Programming
Jul 13, 2026 · Backend Development

CQRS & Event Sourcing in Spring Boot: Read/Write Separation, Snapshots & Compensation

This guide details implementing CQRS and Event Sourcing in Spring Boot, covering command/query separation, event bus choices (Outbox pattern, Kafka), projection idempotency, state snapshots for performance, Saga-based compensation for distributed transactions, and practical tuning tips for production workloads.

CQRSEvent BusEvent Sourcing
0 likes · 14 min read
CQRS & Event Sourcing in Spring Boot: Read/Write Separation, Snapshots & Compensation
ThinkingAgent
ThinkingAgent
Jul 10, 2026 · Artificial Intelligence

Securing AI Agents: L5 Tool Execution Layer – Sandboxes, MCP, and Execution Boundaries

The article analyzes two 2026 incidents where agents breached sandbox and permission boundaries, explains the L5 execution layer’s role in defining what agents can do, how to isolate code with microVM or gVisor sandboxes, enforce network and resource limits, and implement MCP‑based tool calls with strict access control and audit trails.

AI AgentsAccess ControlMCP protocol
0 likes · 26 min read
Securing AI Agents: L5 Tool Execution Layer – Sandboxes, MCP, and Execution Boundaries
IT Services Circle
IT Services Circle
Jul 4, 2026 · Operations

When a Non‑Engineer Deploys with Claude Code, a Hidden Bug Makes One Day of AI Cost a Month of Server Fees

A CFO used Claude Code to launch a SaaS product in two days, but a missing database field combined with an automatic retry mechanism caused a single day's AI API calls to generate costs equivalent to a whole month's server expenses, prompting a detailed post‑mortem on the root causes and preventive measures.

Claude CodeCloud OperationsLLM Cost
0 likes · 10 min read
When a Non‑Engineer Deploys with Claude Code, a Hidden Bug Makes One Day of AI Cost a Month of Server Fees
Xiaolin Talks Programming
Xiaolin Talks Programming
Jul 2, 2026 · Backend Development

Building High-Reliability Message-Driven Architecture with Spring Boot: Preventing Loss, Duplicates & Backlogs

This article details production-hardened patterns for building reliable message-driven systems with Spring Boot, covering MQ selection, producer confirmations, local message tables, manual acknowledgment, retry with backoff, dead-letter queues, idempotency strategies, backlog monitoring, ordered messaging, distributed tracing, and JVM/OS tuning parameters.

Backpressure HandlingJVM TuningReliability Patterns
0 likes · 20 min read
Building High-Reliability Message-Driven Architecture with Spring Boot: Preventing Loss, Duplicates & Backlogs
Cloud Architecture
Cloud Architecture
Jun 30, 2026 · Backend Development

RocketMQ Transactional Messaging in Practice: From Half Message to Production‑Grade Consistency

The article analyses why sending a message is easy but guaranteeing end‑to‑end consistency across databases, brokers, networks and services is hard, explains the exact problems RocketMQ transactional messages solve, compares them with Outbox and CDC, and provides a complete production‑grade design, implementation, monitoring and tuning guide.

CDCOutboxRocketMQ
0 likes · 44 min read
RocketMQ Transactional Messaging in Practice: From Half Message to Production‑Grade Consistency
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 29, 2026 · Backend Development

4 Advanced Techniques for Designing Spring Boot Controllers

This article examines four common shortcomings in typical Spring Boot controller APIs—lack of idempotency, misuse of PUT for partial updates, missing optimistic concurrency control, and always returning full objects—and demonstrates concrete solutions using Idempotency-Key headers, PATCH with JsonMergePatch, ETag handling, and sparse field selection.

ControllerETagSparse fields
0 likes · 12 min read
4 Advanced Techniques for Designing Spring Boot Controllers
Coder Life Journal
Coder Life Journal
Jun 28, 2026 · Backend Development

Idempotency vs Duplicate Orders: 5 Reliable Solutions After a Double‑Charge Mishap

The article explains that idempotency prevents the same operation from being executed twice, illustrates a real double‑charge bug, evaluates five concrete approaches—including Redis check‑then‑set, DB unique index, optimistic lock, Redis distributed lock, and a message deduplication table—details their failure conditions and suitable scenarios, and recommends combining Redis lock with a database unique index for the most robust protection.

Optimistic LockRedisdatabase
0 likes · 10 min read
Idempotency vs Duplicate Orders: 5 Reliable Solutions After a Double‑Charge Mishap
Random Bulletin
Random Bulletin
Jun 26, 2026 · Operations

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.

distributed systemshigh QPSidempotency
0 likes · 19 min read
Message Duplication Is Inevitable: Building a Multi‑Layer Idempotency Middleware for Ten‑Million QPS
Cloud Architecture
Cloud Architecture
Jun 24, 2026 · Backend Development

Spring Boot Alipay Integration: A Production-Ready Solution for High Concurrency and Financial Consistency

This article explains how to build a production‑grade Alipay payment subsystem with Spring Boot that goes beyond simple API calls, covering asynchronous flow, idempotent notification handling, state‑machine design, outbox event delivery, high‑concurrency safeguards, and end‑to‑end reconciliation.

AlipayOutboxPayment Integration
0 likes · 32 min read
Spring Boot Alipay Integration: A Production-Ready Solution for High Concurrency and Financial Consistency
ZhiKe AI
ZhiKe AI
Jun 23, 2026 · Backend Development

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.

BackendRedisdatabase
0 likes · 16 min read
Duplicate Requests Aren’t Bugs: 5 Idempotency Solutions for Distributed Systems
ZhiKe AI
ZhiKe AI
Jun 22, 2026 · Fundamentals

Message Queues: Power When Correct, Disaster When Wrong – 3 Scenarios & Tips

The article explains how message queues can dramatically improve response time, decouple services, and smooth traffic spikes, outlines seven advantages and eight drawbacks, and provides concrete guidelines on when to adopt them, how to prevent loss, duplication, and ordering issues, and how to ensure end‑to‑end reliability.

KafkaRabbitMQSystem Decoupling
0 likes · 15 min read
Message Queues: Power When Correct, Disaster When Wrong – 3 Scenarios & Tips
Xiaolin Talks Programming
Xiaolin Talks Programming
Jun 18, 2026 · Backend Development

Spring Boot Scheduled Tasks: Dynamic Cron & Cluster Duplicate Prevention

This article explores production-grade Spring Boot scheduled tasks, covering dynamic Cron hot-reloading via configuration listeners, cluster duplicate prevention using distributed locks, framework selection between Quartz and XXL-JOB, data sharding strategies, observability, timeout handling, and retry mechanisms with dead-letter queues.

Cluster Duplicate PreventionDynamic CronSpring Boot
0 likes · 18 min read
Spring Boot Scheduled Tasks: Dynamic Cron & Cluster Duplicate Prevention
LuTiao Programming
LuTiao Programming
Jun 17, 2026 · Backend Development

Why Salesforce’s $3.6B AI Customer Service Bet Highlights the Real Opportunity for Java Back‑End Developers

The article explains how Salesforce’s $3.6 billion acquisition of Fin signals a shift from simple chatbot answers to AI agents that execute end‑to‑end business actions, and why Java/Spring Boot developers must expose secure, auditable services rather than merely wrapping large‑model APIs.

AI Agent ArchitectureAI Customer ServiceJava
0 likes · 21 min read
Why Salesforce’s $3.6B AI Customer Service Bet Highlights the Real Opportunity for Java Back‑End Developers
Subtle Storm
Subtle Storm
Jun 15, 2026 · Backend Development

Caching, Rate Limiting, Smoothing, and Idempotency: Solving Concurrency Problems

The article breaks down how caching reduces repeated slow‑resource access, rate limiting protects systems from overload, smoothing (peak shaving) buffers burst traffic with queues, and idempotency prevents duplicate operations, using a milk‑tea shop analogy to illustrate each technique’s role in high‑concurrency environments.

BackendCachingHigh Concurrency
0 likes · 7 min read
Caching, Rate Limiting, Smoothing, and Idempotency: Solving Concurrency Problems
Random Bulletin
Random Bulletin
Jun 15, 2026 · Backend Development

From Auto to Manual: Mastering Consumer Offsets for Ten‑Million QPS Systems

The article examines a real payment loss incident caused by Kafka's default automatic offset commit, explains why automatic commits become a hidden trap at high traffic, and provides a step‑by‑step guide to switching to manual commits with async‑first, sync‑fallback, idempotency, dead‑letter handling, batch strategies, and concurrency controls for reliable ten‑million QPS consumption.

Kafkadead-letter queuehigh throughput
0 likes · 15 min read
From Auto to Manual: Mastering Consumer Offsets for Ten‑Million QPS Systems
Java Architect Handbook
Java Architect Handbook
May 26, 2026 · Backend Development

How to Prevent Duplicate Consumption in RabbitMQ? 5 Practical Solutions for Interviews

The article explains why RabbitMQ may deliver the same message multiple times, emphasizes that business‑level idempotency is required, and compares five concrete deduplication approaches—unique message ID with a dedup table, database unique constraints, Redis SETNX, optimistic locking, and state‑machine design—detailing their implementation, suitable scenarios, and trade‑offs.

Optimistic LockRabbitMQRedis SETNX
0 likes · 13 min read
How to Prevent Duplicate Consumption in RabbitMQ? 5 Practical Solutions for Interviews
Linyb Geek Road
Linyb Geek Road
May 15, 2026 · Backend Development

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.

API DesignSpring Bootdatabase
0 likes · 35 min read
8 Practical API Idempotency Solutions to Eliminate Duplicate Requests (Pitfall Guide)
Linyb Geek Road
Linyb Geek Road
May 15, 2026 · Backend Development

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.

API Designdatabase lockingdistributed systems
0 likes · 13 min read
Idempotency in Practice: Handling the Same Key with Different Parameters
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 13, 2026 · Backend Development

Beyond try‑catch: 3 Elegant Fault‑Tolerance Patterns Every Senior Developer Needs

The article explains why simple try‑catch is insufficient for production stability and introduces three advanced fault‑tolerance patterns—retry with exponential back‑off, circuit breaker using Resilience4j, and idempotency design—each illustrated with concrete Spring Boot 3.5.0 code examples and best‑practice guidelines.

Circuit BreakerResilience4jRetry
0 likes · 12 min read
Beyond try‑catch: 3 Elegant Fault‑Tolerance Patterns Every Senior Developer Needs
Java Tech Workshop
Java Tech Workshop
Apr 29, 2026 · Backend Development

Mastering SpringBoot Transactional Messaging for Distributed Consistency

This article explains how SpringBoot handles transactional messaging to achieve distributed data consistency, covering the concept of transaction messages, CAP theory, final consistency, and three practical implementations using a local message table, Kafka transactions, and RocketMQ, plus idempotency and compensation strategies.

CAP theoremDistributed ConsistencyKafka
0 likes · 17 min read
Mastering SpringBoot Transactional Messaging for Distributed Consistency
LuTiao Programming
LuTiao Programming
Apr 20, 2026 · Backend Development

Why Your REST API Gets Complaints? 4 Advanced Design Patterns Senior Engineers Use

Many developers think a REST API is complete after versioning, pagination, and validation, but real‑world production exposes hidden issues such as unsafe retries, concurrent updates, undocumented deprecations, and missing contracts; this article explains four senior‑engineer‑approved patterns—idempotency, optimistic locking, lifecycle management, and contract‑first design—to build APIs that survive production.

API Lifecycle ManagementOptimistic Lockingbackend development
0 likes · 8 min read
Why Your REST API Gets Complaints? 4 Advanced Design Patterns Senior Engineers Use
Coder Trainee
Coder Trainee
Apr 14, 2026 · Operations

5 Production Nightmares in an Education Mini‑Program and How to Avoid Them

The author recounts five critical production incidents that crippleed an education mini‑program—Redis connection‑pool exhaustion, duplicate bookings, double refunds, mis‑firing no‑show jobs, and inventory oversell—detailing root causes, concrete fixes, and hard‑won lessons for building resilient backend services.

MySQLOptimistic LockRedis
0 likes · 10 min read
5 Production Nightmares in an Education Mini‑Program and How to Avoid Them
Cloud Architecture
Cloud Architecture
Apr 12, 2026 · Backend Development

How to Build an Atomic‑Level RocketMQ Transactional Message Wrapper for Production

This article explains why traditional distributed transactions fail, then details the core principles, state flow, and practical Java/Spring Boot implementation of an atomic‑level RocketMQ transactional message wrapper, covering schema design, idempotency, high‑concurrency handling, monitoring, and deployment for production‑grade microservices.

High ConcurrencyJavaRocketMQ
0 likes · 39 min read
How to Build an Atomic‑Level RocketMQ Transactional Message Wrapper for Production
Architect Chen
Architect Chen
Mar 3, 2026 · Backend Development

Preventing Kafka Duplicate Consumption with Idempotent Design

This article explains practical strategies to avoid duplicate message consumption in Kafka, covering business idempotency with unique IDs, database or Redis deduplication tables, enabling producer idempotence, consumer-side checks, and Kafka's transaction-based exactly‑once semantics, along with their trade‑offs and suitable scenarios.

BackendExactly-OnceKafka
0 likes · 4 min read
Preventing Kafka Duplicate Consumption with Idempotent Design
Architect
Architect
Feb 23, 2026 · Backend Development

Why OpenClaw’s Control Plane Uses a Two‑Phase Protocol and runId for Reliable Agent Jobs

The article explains how OpenClaw’s control plane guarantees reliable, idempotent, and observable agent execution by enforcing a two‑phase protocol, strict handshake, role‑based authorization, layered deduplication, gap‑recovery mechanisms, and schema‑driven validation, turning a simple message flow into a production‑grade job system.

BackendOpenClawSystem Design
0 likes · 20 min read
Why OpenClaw’s Control Plane Uses a Two‑Phase Protocol and runId for Reliable Agent Jobs
LuTiao Programming
LuTiao Programming
Feb 21, 2026 · Backend Development

Stop Building Chaotic Payment Systems: A Complete Design Methodology for Payment Domains

The article presents a production‑grade, modular design methodology for payment domain systems, detailing five core modules, essential principles such as idempotency and ACID, concrete implementation examples with Kafka, Redis, PostgreSQL, and guidance on risk, compliance, and high‑availability engineering.

Distributed ArchitectureKafkaPCI-DSS
0 likes · 8 min read
Stop Building Chaotic Payment Systems: A Complete Design Methodology for Payment Domains
ITPUB
ITPUB
Feb 11, 2026 · Backend Development

How to Guarantee Zero Message Loss in MQ Systems: A Full‑Lifecycle Design

This guide explains why guaranteeing 100% message reliability in MQ is a critical system‑design interview topic and presents a three‑layer architecture—production, storage, and consumption—detailing ACK settings, local message tables, broker replication, leader election safeguards, manual offset commits, and idempotent processing to prevent any message loss.

AcknowledgmentKafkaMQ
0 likes · 11 min read
How to Guarantee Zero Message Loss in MQ Systems: A Full‑Lifecycle Design
Ray's Galactic Tech
Ray's Galactic Tech
Jan 18, 2026 · Backend Development

Designing a Robust Transaction System: From Domain Modeling to Distributed Consistency

This article explores how to build a reliable, scalable transaction module for e‑commerce and finance, covering business requirement analysis, domain modeling, state‑machine design, layered microservice architecture, order creation and payment flows, idempotency, anti‑oversell mechanisms, performance tuning, monitoring, and evolution strategies.

BackendDistributed Consistencyarchitecture
0 likes · 10 min read
Designing a Robust Transaction System: From Domain Modeling to Distributed Consistency