Tagged articles

Database Transaction

6 articles · Page 1 of 1
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 TransactionIdempotencyMessage Queue
0 likes · 20 min read
RabbitMQ Idempotent Consumption: Keeping Duplicate Processing Within Business Limits
Su San Talks Tech
Su San Talks Tech
Apr 20, 2023 · Backend Development

How to Call Third‑Party APIs Asynchronously Without Losing DB Writes

Learn practical ways to ensure that failures when invoking third‑party services don’t roll back database inserts, by using transactions, asynchronous processing with threads, thread pools, job schedulers, message queues, Redis queues, or binlog listeners, and understand their trade‑offs and ordering guarantees.

Database TransactionJob Schedulingasynchronous processing
0 likes · 5 min read
How to Call Third‑Party APIs Asynchronously Without Losing DB Writes
JavaEdge
JavaEdge
Sep 3, 2022 · Backend Development

How to Ensure Idempotent Order Creation and Prevent ABA Issues in Distributed Systems

This article explains why order creation and payment APIs must be idempotent, outlines practical techniques such as unique request IDs, database unique constraints, Redis flags, and version‑based optimistic locking to avoid duplicate orders and solve the ABA problem in distributed environments.

ABA problemDatabase TransactionIdempotency
0 likes · 9 min read
How to Ensure Idempotent Order Creation and Prevent ABA Issues in Distributed Systems
Java Backend Technology
Java Backend Technology
Apr 3, 2022 · Backend Development

Why @Transactional Fails in Spring and How to Fix It

This article explains three common reasons why the @Transactional annotation may not work in Spring—non‑public methods, self‑invocation, and catching exceptions—provides code examples for each case, and details the underlying proxy and transaction management mechanisms to help developers resolve the issues.

AOPDatabase TransactionSpring
0 likes · 11 min read
Why @Transactional Fails in Spring and How to Fix It