Tagged articles

Outbox Pattern

16 articles · Page 1 of 1
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
Cloud Architecture
Cloud Architecture
Sep 12, 2026 · Backend Development

From Monolith to Distributed: Spring AI Embedding Product Semantic Recall System

This article details the evolution of a product semantic recall system using Spring AI Embedding, covering architecture design, reliable vector indexing with Outbox pattern, hybrid search fusion, pgvector HNSW tuning, and safe migration to Milvus, with production readiness criteria and observability practices.

MilvusOutbox PatternSpring AI
0 likes · 20 min read
From Monolith to Distributed: Spring AI Embedding Product Semantic Recall System
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
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 DesignOutbox Patternaccounting
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 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.

Outbox Patternbalance snapshotdouble-entry accounting
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 12, 2026 · Backend Development

Message Queue Showdown: When to Use Kafka, RabbitMQ, or Pulsar

This article dissects common MQ mis‑selections, categorises four message types, explains the five architectural roles of a message broker, compares Kafka, RabbitMQ and Pulsar on capabilities and trade‑offs, and provides a step‑by‑step selection guide with real‑world code snippets and best‑practice patterns.

KafkaOutbox PatternPulsar
0 likes · 26 min read
Message Queue Showdown: When to Use Kafka, RabbitMQ, or Pulsar
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
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
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
Yumin Fish Harvest
Yumin Fish Harvest
Jul 10, 2026 · Backend Development

When One Aggregate Isn’t Enough: Using Domain Services and Domain Events

The article explains why cross‑aggregate business logic belongs in domain services, how domain events capture immutable business facts, and demonstrates practical Spring Boot implementations—including in‑process publishing, message‑queue integration, and the Outbox pattern—while highlighting pitfalls and verification techniques.

Domain EventDomain ServiceDomain-Driven Design
0 likes · 10 min read
When One Aggregate Isn’t Enough: Using Domain Services and Domain Events
Cloud Architecture
Cloud Architecture
Jun 19, 2026 · Backend Development

RabbitMQ vs RocketMQ Delayed Messaging Deep Dive: Core Principles, Architecture Limits, and Production‑Ready Implementation

This article analyses why delayed messaging is a critical system bottleneck, compares RabbitMQ and RocketMQ implementations—including TTL+DLX, delayed‑plugin, fixed‑level and timestamp‑based approaches—provides detailed architectural diagrams, code samples, scaling strategies, operational checklists, and guidance on choosing the right solution for production workloads.

Delayed MessagingOutbox PatternRabbitMQ
0 likes · 39 min read
RabbitMQ vs RocketMQ Delayed Messaging Deep Dive: Core Principles, Architecture Limits, and Production‑Ready Implementation
Random Bulletin
Random Bulletin
Jun 18, 2026 · Operations

Zero Message Loss at 10M QPS: From Best‑Effort to Proven Guarantees

The article dissects why message loss is an end‑to‑end engineering challenge across production, broker, and consumer stages, presents real‑world failure cases at ten‑million QPS, and outlines concrete strategies—ack loops, outbox tables, broker replication settings, consumer handling rules, observability, reconciliation, and SLA‑driven compensation—to evolve from best‑effort to provable, recoverable reliability.

Outbox PatternSLAhigh QPS
0 likes · 17 min read
Zero Message Loss at 10M QPS: From Best‑Effort to Proven Guarantees
Cloud Architecture
Cloud Architecture
Jun 4, 2026 · Databases

PostgreSQL vs MySQL: The Ultimate Engineering Guide to Database Selection

This comprehensive guide compares PostgreSQL and MySQL from an engineering perspective, covering business models, transaction semantics, concurrency, replication, scalability, operational costs, real‑world case studies, and a decision matrix to help teams choose the database that minimizes long‑term complexity and cost.

MySQLOutbox PatternPostgreSQL
0 likes · 38 min read
PostgreSQL vs MySQL: The Ultimate Engineering Guide to Database Selection
Cloud Architecture
Cloud Architecture
Mar 28, 2026 · Backend Development

Spring Boot 3 Enterprise Development Guide: From Monolith to High‑Concurrency Distributed Architecture

This comprehensive guide walks through building a production‑grade e‑commerce order service with Spring Boot 3, covering everything from domain modeling and layered architecture to high‑concurrency safeguards, idempotent design, outbox messaging, distributed transactions, caching strategies, observability, security hardening, and cloud‑native deployment on Kubernetes.

Distributed ArchitectureJava 17Kubernetes
0 likes · 44 min read
Spring Boot 3 Enterprise Development Guide: From Monolith to High‑Concurrency Distributed Architecture
Big Data Technology Tribe
Big Data Technology Tribe
Jun 22, 2025 · Cloud Native

How to Ensure Consistent State in Event‑Driven Microservices: 3 Proven Patterns

This article explains the challenges of maintaining data consistency in distributed, event‑driven microservice architectures and introduces three practical patterns—Outbox, Original Event Handling, and Self‑Read—to guarantee reliable state synchronization across services, even when failures occur.

CDCOutbox Patterndistributed transactions
0 likes · 6 min read
How to Ensure Consistent State in Event‑Driven Microservices: 3 Proven Patterns