Tagged articles
5 articles
Page 1 of 1
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.

Job Schedulingasynchronous processingdatabase transaction
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 problemDistributed SystemsIdempotency
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.

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