Tagged articles
Outbox
22 articles · Page 1 of 1
The article explains why a successful database transaction can leave an order incomplete when the accompanying Kafka message fails, examines the limitations of @Transactional, and demonstrates how Spring Modulith's Event Publication Registry and the Outbox pattern provide reliable, idempotent messaging solutions.
KafkaMySQLOutbox
0 likes · 17 min read

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.
IdempotencyOutboxSharding
0 likes · 32 min read

This article explains why dynamic forms are fundamentally a dynamic data‑model problem, outlines a complete enterprise‑grade architecture that compiles JSON Schema into a cached, versioned runtime, and details the end‑to‑end submission flow, multi‑tenant governance, indexing, projection, and observability needed to sustain billions of daily submissions.
CachingData ModelingJSON Schema
0 likes · 36 min read

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.
ConcurrencyIdempotencyKafka
0 likes · 39 min read

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.
IdempotencyOutboxProjection
0 likes · 32 min read

The article explains how sharing the full User model inside the Order aggregate creates hidden coupling that blows up microservice performance, and shows a step‑by‑step DDD bounded‑context refactor with event‑storming, outbox, saga, idempotency and CQRS using Java 21, Spring Boot 3.x, MySQL and Kafka.
DDDJavaKafka
0 likes · 35 min read

This article walks through the step‑by‑step design of a production‑ready AIOps platform that tackles massive alert storms in a large e‑commerce environment by unifying signal ingestion, deduplication, RBAC, outbox‑driven event publishing, and sub‑second WebSocket push, all backed by Spring Boot 3.x, MySQL, Redis and RocketMQ.
AIOpsOutboxRocketMQ
0 likes · 50 min read

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.
IdempotencyOutboxRabbitMQ
0 likes · 35 min read

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.
AlipayIdempotencyJava
0 likes · 29 min read

This article presents a production‑grade, high‑concurrency order system design that separates responsibilities among Redis for traffic control, MySQL as the single source of truth, Kafka for event propagation, and Elasticsearch for search, while detailing state‑machine modeling, outbox patterns, seckill flow, and comprehensive observability and deployment practices.
ElasticsearchMySQLOutbox
0 likes · 31 min read

Switching from HTTP polling to MQTT for massive IoT deployments requires rethinking connection models, topic design, state management, and engineering practices, as the article details the architectural evolution, four‑plane production design, code patterns, and operational safeguards needed for reliable high‑concurrency device access.
Device AccessIoTMQTT
0 likes · 46 min read

This article presents a comprehensive guide to building a production-grade SMS verification login system, covering threat modeling, multi-layer rate limiting, state management with Redis, asynchronous message handling, multi‑provider routing, token issuance and operational monitoring to ensure security, cost control, and high availability.
OutboxRedisSMS Verification
0 likes · 36 min read

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.
CDCConsistencyIdempotency
0 likes · 44 min read

This guide explains how enterprise messaging systems reliably propagate state changes across distributed services, covering core concepts, outbox patterns, topic/tag modeling, consumer idempotency, dead‑letter handling, high‑concurrency engineering, monitoring, and Kubernetes deployment to build a production‑grade, observable platform.
KafkaOutboxevent-driven
0 likes · 44 min read

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.
AlipayIdempotencyOutbox
0 likes · 32 min read

This guide explains why the Exchange is the routing core of RabbitMQ, details its five-layer capabilities, shows how to design reliable, scalable topologies with direct, topic, fanout and headers exchanges, and provides Spring Boot code examples for production‑grade routing, retries, dead‑letter handling and monitoring.
ExchangeOutboxQuorum Queue
0 likes · 46 min read

This article explains why a RocketMQ producer is more than a simple send API, detailing its role in system throughput, consistency and fault isolation, and walks through sending principles, thread models, high‑concurrency design, retry strategies, back‑pressure mechanisms, outbox integration and production‑grade monitoring.
JavaMessage QueueOutbox
0 likes · 54 min read

The article explains why traditional polling becomes unsustainable under high load, contrasts polling with webhook‑based event delivery, and provides a complete Spring Boot implementation—including outbox pattern, Kafka integration, retry logic, security, observability, and operational best practices—to build a production‑grade, scalable webhook platform.
KafkaOutboxSecurity
0 likes · 36 min read

Distributed transactions have no universal silver bullet; architects must balance consistency, latency, throughput, complexity, and operational cost, and choose among SAGA, TCC, and Outbox patterns based on concrete trade‑offs, failure handling, and real‑world engineering constraints.
JavaOutboxSaga
0 likes · 47 min read

This comprehensive guide walks through designing, implementing, and operating a production-grade Go microservice using Gin, covering architecture layers, domain modeling, reliable messaging, observability, CI/CD pipelines, GitOps deployment, high‑concurrency safeguards, security measures, and best‑practice testing to ensure stability, scalability, and maintainability in real‑world e‑commerce scenarios.
CI/CDGinGo
0 likes · 58 min read

This article demystifies Kafka's ordering guarantees, explains the difference between partition‑level, key‑level, and global ordering, and provides a complete, production‑grade guide—including architecture, configuration, code samples, and best‑practice patterns—to achieve reliable ordered processing while maintaining high throughput and scalability.
CDCConsumerIdempotence
0 likes · 35 min read

The article analyzes the high‑CPU pressure on the outbox Redis cluster caused by feed‑stream read amplification during hot events, proposes a local‑cache solution for hot UPs, details its design, consistency mechanisms, and shows that the optimization cuts peak CPU usage by over 40% while achieving more than 55% cache hit rate.
CacheOutboxperformance optimization
0 likes · 10 min read
