Tag

distributed transactions

0 views collected around this technical thread.

macrozheng
macrozheng
Jun 5, 2025 · Backend Development

How to Integrate Dubbo with Seata for Distributed Transactions in Spring Boot

This tutorial walks through integrating Dubbo with Seata in a Spring Boot microservice architecture, showing how to create service interfaces, configure Maven dependencies, set up Nacos discovery, implement distributed transaction logic, test normal and rollback scenarios, and externalize Seata server addresses for scalable deployments.

DubboMicroservicesSpring Boot
0 likes · 19 min read
How to Integrate Dubbo with Seata for Distributed Transactions in Spring Boot
Java Tech Enthusiast
Java Tech Enthusiast
Jun 3, 2025 · Backend Development

Understanding the TCC (Try‑Confirm‑Cancel) Pattern for Distributed Transactions in Microservices

This article explains the TCC (Try‑Confirm‑Cancel) distributed transaction pattern, compares it with traditional solutions, details its three‑phase workflow, provides Java code examples for each phase, and discusses exception handling, timeout control, asynchronous processing, suitable scenarios, and common pitfalls for backend microservice development.

IdempotencyJavaMicroservices
0 likes · 8 min read
Understanding the TCC (Try‑Confirm‑Cancel) Pattern for Distributed Transactions in Microservices
Lobster Programming
Lobster Programming
May 6, 2025 · Backend Development

Mastering Seata TCC: A Practical Guide to Distributed Transactions

Learn how Seata's TCC mode addresses distributed transaction challenges when AT mode cannot handle non-relational resources, by detailing its three-phase workflow, handling of common anomalies like empty rollbacks, idempotency, and hanging, and weighing its benefits against complexity.

Compensating Transactionsbackenddistributed transactions
0 likes · 7 min read
Mastering Seata TCC: A Practical Guide to Distributed Transactions
Cognitive Technology Team
Cognitive Technology Team
Apr 30, 2025 · Backend Development

Design Patterns and Solutions for Distributed Transaction Consistency

The article explains how to achieve transaction consistency in distributed internet systems by balancing CAP trade‑offs and presents common design approaches such as 2PC, 3PC, TCC, reliable message delivery, best‑effort notification, and database‑transaction plus compensation mechanisms.

2PC3PCCAP theorem
0 likes · 11 min read
Design Patterns and Solutions for Distributed Transaction Consistency
Lobster Programming
Lobster Programming
Apr 23, 2025 · Backend Development

How Seata’s AT Mode Implements Two-Phase Commit for Distributed Transactions

This article explains Seata’s AT transaction mode, its reliance on the classic two‑phase commit protocol, the roles of TC, TM, and RM, and how snapshot‑based SQL interception ensures consistency and rollback in microservice architectures.

MicroservicesTwo-Phase Commitbackend development
0 likes · 6 min read
How Seata’s AT Mode Implements Two-Phase Commit for Distributed Transactions
Java Captain
Java Captain
Apr 17, 2025 · Databases

Choosing Between Sharding Middleware and NewSQL Distributed Databases: An Objective Comparison

This article objectively compares middleware‑based sharding with NewSQL distributed databases, examining their architectural differences, transaction models, high‑availability mechanisms, scaling, SQL support, storage engines, and maturity to help practitioners decide which approach best fits their workload and operational constraints.

Database ArchitectureHigh AvailabilityNewSQL
0 likes · 17 min read
Choosing Between Sharding Middleware and NewSQL Distributed Databases: An Objective Comparison
Tencent Cloud Developer
Tencent Cloud Developer
Apr 9, 2025 · Backend Development

Account Accounting Theory, Design, Performance Issues, and Core Architecture in Third‑Party Payment Platforms

The article explains payment‑platform accounting theory, describes asset and liability account structures, identifies performance bottlenecks from double‑entry and hotspot accounts, and outlines architectural evolution toward flexible (BASE) transactions with solutions such as pre‑debit‑then‑credit, balance‑simplification, merged posting, and multi‑account designs.

account designaccountingbackend architecture
0 likes · 18 min read
Account Accounting Theory, Design, Performance Issues, and Core Architecture in Third‑Party Payment Platforms
Java Architect Essentials
Java Architect Essentials
Mar 14, 2025 · Databases

Comparing NewSQL Databases with Middleware‑Based Sharding: Advantages, Trade‑offs, and Selection Guidance

This article objectively compares NewSQL distributed databases with traditional middleware‑based sharding solutions, examining their architectures, distributed transaction handling, high‑availability, scaling, storage engines, and ecosystem maturity, and provides guidance on selecting the appropriate approach based on consistency, growth, operational capacity, and performance requirements.

Database ArchitectureHigh AvailabilityNewSQL
0 likes · 19 min read
Comparing NewSQL Databases with Middleware‑Based Sharding: Advantages, Trade‑offs, and Selection Guidance
macrozheng
macrozheng
Mar 14, 2025 · Backend Development

Inside Xiaomi Car Interviews: SpringBoot, MySQL Tuning & Distributed Transactions

This article shares Xiaomi car interview salary data, explains SpringBoot's startup process, discusses Spring IOC/AOP benefits, offers MySQL table creation and indexing tips, compares lock types, reviews common design patterns, outlines network device differences, and summarizes distributed transaction solutions including Seata.

JavaMySQLSpringBoot
0 likes · 20 min read
Inside Xiaomi Car Interviews: SpringBoot, MySQL Tuning & Distributed Transactions
Sanyou's Java Diary
Sanyou's Java Diary
Mar 6, 2025 · Backend Development

8 Real-World MQ Use Cases Every Backend Engineer Should Know

This article explores eight practical scenarios for using message queues—such as asynchronous processing, service decoupling, traffic shaping, delayed tasks, log collection, distributed transactions, remote calls, and broadcast notifications—providing code examples with RabbitMQ, RocketMQ, and Kafka to illustrate each pattern.

Broadcast NotificationsLog CollectionMessage Queue
0 likes · 15 min read
8 Real-World MQ Use Cases Every Backend Engineer Should Know
macrozheng
macrozheng
Mar 1, 2025 · Databases

NewSQL vs Middleware Sharding: Which Database Architecture Truly Wins?

An in‑depth comparison of NewSQL databases and middleware‑based sharding reveals each approach’s architectural strengths, distributed transaction handling, scalability, HA mechanisms, storage engine design, and ecosystem maturity, guiding readers on when to adopt NewSQL versus traditional sharding solutions.

Distributed DatabasesHigh AvailabilityNewSQL
0 likes · 18 min read
NewSQL vs Middleware Sharding: Which Database Architecture Truly Wins?
Selected Java Interview Questions
Selected Java Interview Questions
Feb 14, 2025 · Databases

ShardingSphere Overview and Spring Boot Integration for Database Sharding, Proxy, and Sidecar

This article introduces ShardingSphere's three components—Sharding-JDBC, Sharding-Proxy, and the upcoming Sharding-Sidecar—explains why sharding is needed for relational databases, demonstrates horizontal data sharding concepts, and provides a complete Spring Boot example with configuration, code, and asynchronous batch insertion.

Async ProcessingMySQLShardingSphere
0 likes · 17 min read
ShardingSphere Overview and Spring Boot Integration for Database Sharding, Proxy, and Sidecar
IT Architects Alliance
IT Architects Alliance
Jan 21, 2025 · Cloud Native

Understanding CAP Theory and Data Consistency Challenges in Microservice Architecture

The article explains how microservice architectures face data consistency challenges, introduces the CAP theorem's trade‑offs among consistency, availability and partition tolerance, and discusses practical solutions such as service registries, distributed transaction patterns, and cloud‑native strategies for maintaining reliable systems.

CAP theoremCloud NativeDistributed Systems
0 likes · 16 min read
Understanding CAP Theory and Data Consistency Challenges in Microservice Architecture
IT Services Circle
IT Services Circle
Jan 3, 2025 · Backend Development

Eight Common Use Cases of Message Queues (MQ) with Code Examples

This article explains eight typical scenarios for using message queues—including asynchronous processing, service decoupling, traffic shaping, delayed tasks, log collection, distributed transactions, remote invocation, and broadcast notifications—providing clear explanations and Java code snippets for each case.

KafkaMessage QueueRocketMQ
0 likes · 13 min read
Eight Common Use Cases of Message Queues (MQ) with Code Examples
Architect's Guide
Architect's Guide
Dec 11, 2024 · Databases

Challenges and Limitations of Database Sharding in Large‑Scale E‑commerce Systems

The article examines why MySQL sharding (分库分表) is adopted for high‑traffic e‑commerce, outlines its inherent problems such as distributed transaction handling, index and global key constraints, operational overhead, and argues that distributed databases like OceanBase offer a more robust alternative.

Database ScalingDistributed DatabaseMySQL
0 likes · 10 min read
Challenges and Limitations of Database Sharding in Large‑Scale E‑commerce Systems
Architect
Architect
Dec 10, 2024 · Backend Development

Splitting Large Transactions to Ensure Distributed Consistency in Backend Systems

This article analyzes the challenges of distributed transaction consistency when combining MySQL writes with third‑party system calls, presents a concrete financial reimbursement case, and proposes a solution that splits a big transaction into small, retryable units using a task table, scheduled jobs, and Spring's after‑commit hook to achieve reliable consistency without excessive latency.

MySQLSpringbackend development
0 likes · 9 min read
Splitting Large Transactions to Ensure Distributed Consistency in Backend Systems
Sanyou's Java Diary
Sanyou's Java Diary
Nov 11, 2024 · Backend Development

Mastering Distributed Transactions: From 2PC to Seata AT Mode

This article explains the fundamentals of ACID transactions, the challenges of multi‑data‑source operations, surveys common distributed‑transaction solutions such as 2PC, 3PC, TCC, transaction‑status tables and message‑queue based eventual consistency, and then details the implementation of Seata’s AT mode in a micro‑service e‑commerce scenario.

2PCAT ModeMessage Queue
0 likes · 31 min read
Mastering Distributed Transactions: From 2PC to Seata AT Mode
Architect
Architect
Nov 5, 2024 · Backend Development

Implementing Transactional Messages with RocketMQ in Microservices

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.

JavaMicroservicesRocketMQ
0 likes · 12 min read
Implementing Transactional Messages with RocketMQ in Microservices
Architecture & Thinking
Architecture & Thinking
Oct 10, 2024 · Backend Development

How CAS Solves High-Concurrency Consistency Issues and the Hidden ABA Problem

This article examines typical high‑concurrency scenarios such as payment processing, online ordering, and cross‑bank transfers, introduces the Compare‑and‑Swap (CAS) approach to ensure strong consistency, explains the ABA problem it can cause, and presents application‑level and data‑layer strategies—including versioning and SQL examples—to mitigate it.

ABA problemCASHigh Concurrency
0 likes · 9 min read
How CAS Solves High-Concurrency Consistency Issues and the Hidden ABA Problem
Code Ape Tech Column
Code Ape Tech Column
Oct 9, 2024 · Backend Development

Implementing TCC Transaction Mode with Seata: Concepts, Types, and Code Example

This article explains the TCC (Try‑Confirm‑Cancel) distributed transaction model, its three phases, three practical variants, and provides a complete Seata‑based Java implementation with code samples, exception handling strategies, and deployment tips for backend services.

JavaMicroservicesbackend
0 likes · 17 min read
Implementing TCC Transaction Mode with Seata: Concepts, Types, and Code Example