Tagged articles
Transactional Messaging
62 articles · Page 1 of 1
This article details a production-ready messaging architecture using Go and NATS JetStream, covering transactional outbox publishing, consumer idempotency via inbox tables, aggregate version ordering strategies, quarantine and recovery workflows, Kubernetes R3 deployment, capacity planning, and acceptance testing against failure injection scenarios.
Event OrderingGoKubernetes
0 likes · 40 min read

The article explains how RocketMQ’s transactional message mechanism guarantees consistency between order creation and inventory deduction by using half‑messages, a local transaction callback, a second‑phase confirmation, and broker‑side timeout checks, while highlighting common pitfalls and best‑practice recommendations.
Distributed ConsistencyMessage QueueRocketMQ
0 likes · 9 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 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 ConsistencyIdempotency
0 likes · 17 min read

This article walks through Kafka’s core architecture, explains why it achieves massive throughput, and provides a step‑by‑step SpringBoot integration—including environment setup, Maven dependencies, configuration, producer and consumer code, advanced features like transactions and dead‑letter queues, plus performance monitoring and tuning tips.
ConsumerDead Letter QueueJava
0 likes · 11 min read

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

Data synchronization problems often cause user complaints, inventory mismatches, and search gaps, but the root cause lies in application‑level design; this article explains the fundamentals, challenges, common scenarios, and evaluates five synchronization patterns—including cache‑aside, read‑through, write‑behind, binlog‑based replication, and transactional messaging—plus monitoring, reconciliation, and best‑practice guidelines.
Cache AsideConsistencyTransactional Messaging
0 likes · 28 min read

This article explains RocketMQ's transactional message mechanism, detailing its three‑phase workflow, half‑message handling, transaction checks, key implementation tips, and production‑grade best practices for achieving reliable eventual consistency in distributed systems.
JavaRocketMQTransactional Messaging
0 likes · 7 min read

An in‑depth guide to Apache RocketMQ 4.x producer SDK covers essential and optional configurations, internal startup and sending workflows, transaction and ordered messaging, failure handling, performance tuning, monitoring, and practical code examples to help you build a reliable, high‑throughput messaging system.
Message QueueProducer SDKRocketMQ
0 likes · 10 min read

This article explains how to use RocketMQ's transactional messages and an atomic‑level wrapper to achieve sub‑second final consistency for million‑scale transaction systems, detailing the two‑phase commit workflow, annotation‑driven implementation, performance optimizations, failure handling, monitoring, and suitable use cases.
JavaRocketMQTransactional Messaging
0 likes · 11 min read

Discover the three stages where MQ messages can be lost and explore five practical solutions—including producer confirmations, message persistence, consumer acknowledgments, transactional messaging, and retry with dead‑letter queues—complete with code examples and guidance on selecting the right approach for different scenarios.
Dead Letter QueueKafkaMessage Queue
0 likes · 14 min read

This article explains why messages can be lost in Kafka, analyzes the production, storage, and consumption stages, and provides concrete configurations, detection methods, coding practices, and transactional patterns to ensure end‑to‑end reliability, especially for interview scenarios.
Message LossTransactional Messagingacks
0 likes · 18 min read

This article dissects Kafka’s storage architecture, identifies loss points in production, storage, and consumption phases, and presents interview‑ready strategies—including acks settings, flush tuning, consumer batch commits, detection via sequence numbers, and transactional messaging—to guarantee virtually 100 % message durability.
Consumer CommitKafkaTransactional Messaging
0 likes · 20 min read

This article explores ten practical use cases for message queues, from system decoupling and asynchronous processing to traffic shaping, data synchronization, log collection, broadcasting, ordered and delayed messages, retry mechanisms, and transactional messaging, providing code examples and best‑practice recommendations for robust backend design.
Asynchronous ProcessingMQMessage Queue
0 likes · 21 min read

This article examines the limitations of the CAP theorem in modern microservice architectures, introduces the BASE model for eventual consistency, and evaluates practical solutions such as write RPC retries, synchronous and transactional messaging, and local message tables to achieve reliable data consistency across distributed services.
BASE theoryCAP theoremDistributed Consistency
0 likes · 11 min read

This article explains how TDMQ RocketMQ's transactional messaging works, covering the underlying concepts, three‑phase processing flow, key terminology, source‑code details, practical Java examples, and important considerations for building reliable distributed transactions.
JavaRocketMQTransactional Messaging
0 likes · 24 min read

This article explores why message queues can lose consistency, presents concrete solutions such as transactional two‑phase commits, persistence settings, replica configurations, unique IDs, idempotent designs, and dead‑letter queues, and shares ten practical lessons drawn from real‑world incidents.
Data ConsistencyKafkaRabbitMQ
0 likes · 12 min read

This article explains RocketMQ's transactional message mechanism, covering half‑message concepts, back‑check processes, implementation steps with code examples, and how to achieve reliable event handling and distributed transaction consistency in a microservice architecture.
JavaRocketMQTransactional Messaging
0 likes · 12 min read

This article shares seven practical scenarios—such as asynchronous processing, traffic smoothing, message bus, delayed tasks, broadcast consumption, distributed transactions, and data hub integration—where message queues like RocketMQ, Kafka, ActiveMQ, and RabbitMQ help solve high‑concurrency challenges in modern backend systems.
Asynchronous ProcessingBroadcast ConsumptionDelay Messages
0 likes · 11 min read

This article explains the practical problems encountered when using Kafka directly, introduces SFMQ—a Kafka‑based HTTP proxy that unifies client access, simplifies upgrades, provides delay and transaction capabilities via Redis, and demonstrates how its architecture resolves producer, consumer, and operational challenges.
Message QueueTransactional Messagingarchitecture
0 likes · 18 min read

This article compares four distributed transaction solutions—local message tables, RocketMQ transactional messages, Seata AT mode, and Seata TCC mode—detailing their advantages, limitations, workflow phases, and common exception‑handling techniques for ensuring data consistency across services.
RocketMQSeataTransactional Messaging
0 likes · 6 min read

This article explains the principles of distributed transaction messages, comparing 2PC, TCC, and transactional messaging, and provides detailed walkthroughs of RocketMQ and Kafka implementations, including their two‑phase processes, broker handling, and source‑code insights for ensuring data consistency in asynchronous systems.
2PCMessage QueueRocketMQ
0 likes · 16 min read

This article explains the three core benefits of message queues, compares major MQ products, details RocketMQ's advantages, internal models, reliability mechanisms, load‑balancing, storage design, and practical code examples, guiding engineers to make informed architectural decisions.
Message QueueRocketMQTransactional Messaging
0 likes · 41 min read

This article explains RocketMQ's advanced features—transactional messaging, ordered messaging, SQL‑based filtering, delayed messaging, and global high‑availability—detailing their principles, implementation steps, practical demos, and how they solve consistency challenges in large‑scale e‑commerce systems.
Ordered MessagingRocketMQSQL filtering
0 likes · 14 min read

This guide explains how to achieve reliable message consistency in a Spring Boot 2.3.9 application using RocketMQ 4.8.0 by outlining the transactional message flow, broker handling, project structure, code implementation, and testing procedures.
JavaRocketMQTransactional Messaging
0 likes · 9 min read

This article provides an in‑depth tutorial on RocketMQ, covering normal, ordered, delayed, transactional, and batch messages, their production and consumption patterns, retry mechanisms, message filtering, and dead‑letter handling, complete with Java code examples for each scenario.
JavaMessage FilteringRocketMQ
0 likes · 36 min read

This article explains how RocketMQ implements distributed transaction messages using a two‑phase commit model, detailing the problems with RPC and ordinary MQ, the step‑by‑step workflow, relevant code snippets, and how consistency is ensured across microservice subsystems.
Message QueueRocketMQTransactional Messaging
0 likes · 6 min read

This article explains the challenges of maintaining atomicity across multiple downstream services in distributed systems and details how RocketMQ's transactional message feature provides a two‑phase commit mechanism, lifecycle, implementation details, and practical usage to achieve eventual consistency.
Message QueueRocketMQTransactional Messaging
0 likes · 14 min read

This article explains the challenges of distributed transactions, reviews common solutions such as 2PC, 3PC, TCC, Saga, local message tables, and MQ‑based approaches, and discusses how RocketMQ, Kafka, and RabbitMQ handle transactional messaging, message loss prevention, and duplicate processing.
Transactional Messagingdistributed transactions
0 likes · 17 min read

This article provides a comprehensive guide to RocketMQ, covering Windows installation, environment configuration, startup commands, visual monitoring integration, SpringBoot dependency setup, core components, message models, reliability strategies, idempotent processing, transactional messaging, and ordering guarantees for distributed systems.
Best PracticesMessage QueueRocketMQ
0 likes · 37 min read

This article explains the principles and implementation of RocketMQ's transactional messages, batch messages, and delayed messages, describing the message flow, compensation mechanisms, broker and producer handling, and providing detailed source code snippets to illustrate each process.
Batch MessagingDelayed MessagingJava
0 likes · 19 min read


DevOpsNov 17, 2021 · Cloud Native
The article outlines essential practices for migrating to microservices, covering service dependency rules to avoid circular dependencies, interface version compatibility strategies, isolation techniques for data, deployment and business logic, and methods to ensure eventual data consistency using scheduled retries and transactional messaging.
Transactional Messagingdata isolationeventual consistency
0 likes · 14 min read

The article analyzes three typical RocketMQ message‑loss scenarios—network glitches during production, incomplete disk persistence, and premature consumer acknowledgments—and presents concrete solutions such as transactional messaging, synchronous flush with replication, and proper consumer‑ack handling, while discussing their performance impact.
JavaMessage LossRocketMQ
0 likes · 7 min read

This guide explains the principle and step‑by‑step implementation of reliable transactional messaging using Spring Boot 2.3.9 and RocketMQ 4.8.0, covering execution flow, broker handling, project structure, code examples for entities, repositories, services, listeners, and testing.
JavaRocketMQTransactional Messaging
0 likes · 9 min read

The article compares how RocketMQ, Apache Kafka, and Apache Pulsar implement transactional messaging—each using a two‑phase commit with half‑messages or transaction buffers, distinct coordinators, and idempotent producers—to provide atomicity and either strong consistency (RocketMQ) or exactly‑once delivery for high‑throughput stream processing (Kafka and Pulsar).
KafkaMessage QueuePulsar
0 likes · 22 min read

This article examines the common situations where messages can be lost in RocketMQ—such as network glitches during production, asynchronous disk flushing, and premature consumer acknowledgments—and presents practical strategies like transactional messaging, synchronous flushing, broker replication, and proper consumer listener handling to achieve zero loss.
Message LossTransactional MessagingZero Loss
0 likes · 8 min read

This article explains why message middleware guarantees at‑least‑once delivery, the challenges of duplicate consumption, and presents both simple and advanced deduplication strategies—including transactional and non‑transactional approaches using relational databases or Redis—to achieve effectively exactly‑once semantics in RocketMQ.
IdempotenceRocketMQTransactional Messaging
0 likes · 18 min read

The article explains how to guarantee data consistency across distributed systems by using local transactions, two‑phase commit protocols, message‑queue based eventual consistency, deduplication techniques, and practical RocketMQ transactional messaging code examples in Java.
JavaRocketMQTransactional Messaging
0 likes · 21 min read

The article examines how to prevent data inconsistency during cross‑service money transfers by using local transactions, two‑phase commit, and message‑queue based eventual consistency, providing detailed code examples, performance considerations, and practical solutions for large‑scale backend systems.
BackendData ConsistencyMessage Queue
0 likes · 23 min read

This article explains how to guarantee data consistency when updating multiple tables or services by using local transactions for single‑node systems, two‑phase commit for distributed databases, and reliable message‑queue patterns—including RocketMQ transactional messages—to achieve eventual consistency and handle duplicate delivery.
Message QueueRocketMQTransactional Messaging
0 likes · 21 min read

This article examines the challenges of distributed transactions in microservice architectures and compares five practical solutions—Seata (2PC), TCC, transactional messaging, local message tables, and a custom Kola approach—highlighting their principles, implementations, advantages, and prerequisites.
SeataTCCTransactional Messaging
0 likes · 14 min read

This article provides a comprehensive guide to using Apache RocketMQ with Spring Boot, covering core components, basic concepts, key features, step‑by‑step configuration, producer and consumer code examples, advanced message types, transaction handling, and common interview questions for distributed messaging systems.
JavaMessage QueueRocketMQ
0 likes · 16 min read

The article explains how to detect and prevent message loss, guarantee reliable delivery, handle duplicate consumption, manage message backlog, and implement distributed transaction messages in systems like Kafka, RocketMQ, and RabbitMQ, providing practical code examples and best‑practice guidelines.
IdempotencyKafkaMessage Queue
0 likes · 23 min read

This guide walks through integrating RocketMQ 4.8.0 with Spring Boot 2.3.9, covering dependencies, configuration, code examples for normal, ordered, cluster/broadcast, and transactional messages, and demonstrates testing results with detailed explanations of each messaging mode.
Message QueueTransactional Messagingbackend development
0 likes · 9 min read

This article explains the advantages and disadvantages of using message middleware in microservice architectures and details practical solutions for handling concurrency, ordered processing, duplicate messages, and transactional messaging using patterns like partitioning, outbox tables, CDC, and RocketMQ's two‑phase commit.
Asynchronous ProcessingKafkaRocketMQ
0 likes · 12 min read

This article provides a comprehensive overview of RocketMQ, covering its evolution from early Alibaba messaging engines, the detailed architecture of NameServer, brokers, producers and consumers, the internal source‑code structure, startup process, storage mechanisms, flushing strategies, high‑availability replication, and the implementation of transactional messages.
JavaRocketMQTransactional Messaging
0 likes · 14 min read

This article analyzes the possible message loss scenarios in RocketMQ—including producer network issues, broker persistence failures, and consumer acknowledgment problems—and presents practical solutions such as transactional messaging, synchronous disk flushing, and proper consumer handling to achieve zero message loss.
Message QueueRocketMQTransactional Messaging
0 likes · 7 min read

This article explains the three common scenarios where messages can be lost in RocketMQ, analyzes their root causes, and presents concrete solutions—including transactional messaging, synchronous disk flushing with replication, and proper consumer acknowledgment—to achieve zero‑message loss while noting the performance trade‑offs.
Consumer FailoverMessage QueueRocketMQ
0 likes · 7 min read


JavaEdgeSep 16, 2020 · Backend Development
This article explains the design and implementation of RocketMQ transactional messages, covering a complete order‑creation example, the producer’s transaction listener, the broker’s handling of half messages, transaction checks, and the final commit or rollback process.
JavaRocketMQTransactional Messaging
0 likes · 8 min read

This article examines common RocketMQ message loss scenarios—including network glitches, asynchronous disk flushing, and consumer acknowledgment failures—and presents practical solutions such as transactional messaging, synchronous flush configuration, and proper consumer handling to achieve zero message loss.
Consumer AckMessage QueueRocketMQ
0 likes · 8 min read

This article provides a comprehensive guide to Kafka's producer API, covering core concepts, client‑side workflow, essential configurations, idempotent and transactional producers, and practical Java code examples to help developers avoid common pitfalls and optimize message publishing.
JavaKafkaProducer API
0 likes · 21 min read

This article explains a lightweight transactional message solution for microservices that leverages RabbitMQ, MySQL, and Spring Boot to achieve eventual consistency, detailing design principles, compensation mechanisms, table schemas, and deployment considerations for high‑throughput asynchronous processing.
MySQLRabbitMQTransactional Messaging
0 likes · 9 min read

This article explains a lightweight, low‑intrusive transactional message solution for microservices using Spring Boot, RabbitMQ, and MySQL, covering design principles, table schemas, transaction synchronization, compensation mechanisms, code implementation, and deployment considerations to achieve eventual consistency without sacrificing performance.
MySQLRabbitMQTransactional Messaging
0 likes · 24 min read

This article details a lightweight transactional message solution for microservices that stores pending messages in a local MySQL table, defers RabbitMQ publishing until after transaction commit, and includes compensation logic with exponential back‑off to ensure reliable asynchronous communication.
MySQLRabbitMQTransactional Messaging
0 likes · 23 min read

This article explains how Kafka implements idempotent producers and transactional messaging to achieve exactly‑once semantics, detailing the producer session identifiers, sequence numbers, broker checks, two‑phase commit workflow, consumer isolation levels, and the limitations of atomic reads.
KafkaTransactional Messagingidempotent producer
0 likes · 9 min read

This article explains how to detect and prevent message loss, guarantee reliable delivery across production, storage, and consumption stages, handle duplicate messages with idempotent designs, resolve message backlogs, and implement distributed transactions using transactional messages in systems like Kafka, RocketMQ, and RabbitMQ.
Transactional Messagingduplicate handlingreliability
0 likes · 19 min read

This article provides a comprehensive guide to using Spring‑Kafka, covering simple integration, embedded Kafka for testing, creating topics programmatically, advanced KafkaTemplate usage, transactional messaging, ReplyingKafkaTemplate for request‑reply, listener configurations, manual acknowledgments, lifecycle control, message forwarding, and retry with dead‑letter queues.
Embedded KafkaJavaKafka
0 likes · 19 min read

This article introduces QMQ, Qunar's internal distributed message queue, covering its background, design motivations, core concepts, code examples for producing and consuming both real‑time and delayed messages, transactional messaging support, and the overall architecture of its metaserver, broker, and delay components.
JavaMessage QueueQMQ
0 likes · 18 min read

This article provides a comprehensive overview of Kafka's architecture, covering topics, partitions, producer and consumer workflows, replication and leader election, offset management, consumer group coordination, rebalance processes, delivery semantics (at‑most‑once, at‑least‑once, exactly‑once), transactional messaging, and underlying file and configuration details.
Distributed MessagingKafkaReplication
0 likes · 16 min read

This article explains how RocketMQ’s transactional message feature enables distributed transaction final consistency by using half messages, message check‑back, and defined transaction states, and provides complete Java code samples for producers, listeners, and consumer idempotency handling.
JavaMessage QueueRocketMQ
0 likes · 10 min read

This article explains why transactions are essential, traces their origin from early XA specifications, examines the CAP and BASE theories that expose challenges in distributed systems, and reviews practical solutions such as two‑phase commit, three‑phase commit, TCC, asynchronous messaging, Saga and Gossip protocols, highlighting their trade‑offs and when to apply each.
BASE theoryCAP theoremSaga pattern
0 likes · 17 min read

This article explains the challenges of achieving consistency in distributed systems and presents practical solutions such as two‑phase commit, asynchronous assurance, compensating transactions, message retry mechanisms, idempotent designs, and a custom Redis‑based delayed queue (DelayQ) with a transactional proxy (TMQProxy) to provide reliable transactional messaging.
IdempotencyMessage RetryRedis delay queue
0 likes · 19 min read
