Tagged articles
9 articles
Page 1 of 1
DevOps
DevOps
Jun 26, 2024 · Backend Development

Understanding Distributed Transaction Challenges and Practical Solutions in Microservices

This article analyzes why distributed transactions are difficult in large‑scale microservice architectures, explains the importance of unique transaction IDs, idempotency, and timeout handling, and presents pragmatic approaches such as local logging, undo‑log tables, NoSQL ID arrays, and selective locking to achieve reliable consistency.

Distributed TransactionsIdempotencyMicroservices
0 likes · 15 min read
Understanding Distributed Transaction Challenges and Practical Solutions in Microservices
Tencent Cloud Developer
Tencent Cloud Developer
Jun 25, 2024 · Backend Development

Understanding the Challenges of Distributed Transactions in Microservices

The article explains that distributed transactions in micro‑service architectures are difficult because they must guarantee atomicity across heterogeneous services, handle time‑outs, and reconcile results using unique transaction IDs, undo‑logs, or NoSQL strategies, while balancing locking, availability, and consistency trade‑offs.

Distributed TransactionsIdempotencyMicroservices
0 likes · 18 min read
Understanding the Challenges of Distributed Transactions in Microservices
Selected Java Interview Questions
Selected Java Interview Questions
Nov 22, 2023 · Backend Development

Thread Pool Pitfalls and Best Practices in Java Backend Development

This article analyzes a real production incident caused by improper thread‑pool usage, explains common misconceptions about core parameters, demonstrates faulty code examples, and provides concrete recommendations for configuring thread pools, handling timeouts, and avoiding deadlocks in Java backend services.

CompletableFutureJava concurrencySpring Async
0 likes · 14 min read
Thread Pool Pitfalls and Best Practices in Java Backend Development
Tencent Cloud Developer
Tencent Cloud Developer
Apr 26, 2022 · Backend Development

Understanding Distributed Transactions in Microservices: Challenges and Practical Solutions

The article explains why distributed transactions in micro‑service architectures are hard—due to remote failures, timeouts, and lack of atomic guarantees—and outlines practical approaches such as unique transaction IDs, audit logs, SQL/NoSQL persistence, TCC, Saga or compensation patterns to achieve reliable consistency while balancing availability.

Distributed TransactionsIdempotencytimeout handling
0 likes · 17 min read
Understanding Distributed Transactions in Microservices: Challenges and Practical Solutions
Architecture Digest
Architecture Digest
Jan 20, 2022 · Backend Development

Preventing Order Loss in Payment Systems: Best Practices and Strategies

This article explains the typical order flow in payment systems, identifies external and internal order loss scenarios, and provides concrete measures such as adding a "payment in progress" state, setting timeout queries, ensuring idempotent notifications, and using Redis hashes to avoid duplicate submissions.

IdempotencyPayment Gatewayorder loss
0 likes · 5 min read
Preventing Order Loss in Payment Systems: Best Practices and Strategies