# distributed transactions

Published articles for distributed transactions.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## The saga pattern is compensating transactions with better marketing

DevFeed: [The saga pattern is compensating transactions with better marketing](<https://devfeed.tech/articles/the-saga-pattern-is-compensating-transactions-with-better-marketing-94471.md>)

Original publisher: [Read original article](<https://ankit-rana.com/logs/68-sagas-are-compensating-transactions/>)

Author: hello@ankit-rana.com

Published: 2026-10-22T00:00:00Z

Content type: article

Language: en

Sources: [Ankit Rana | Mechanical Sympathy](<https://devfeed.tech/sources/ankit-rana-mechanical-sympathy.md>)

Topics: [Transactions](<https://devfeed.tech/topics/transactions.md>), [acid](<https://devfeed.tech/topics/acid.md>), [Publish-subscribe pattern](<https://devfeed.tech/topics/pubsub.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [atomic](<https://devfeed.tech/tags/atomic.md>), [availability](<https://devfeed.tech/tags/availability.md>), [compensating-transactions](<https://devfeed.tech/tags/compensating-transactions.md>), [distributed](<https://devfeed.tech/tags/distributed.md>), [distributed-transactions](<https://devfeed.tech/tags/distributed-transactions.md>), [email](<https://devfeed.tech/tags/email.md>), [isolation](<https://devfeed.tech/tags/isolation.md>), [microservices](<https://devfeed.tech/tags/microservices.md>), [observable](<https://devfeed.tech/tags/observable.md>), [payment](<https://devfeed.tech/tags/payment.md>), [reliability](<https://devfeed.tech/tags/reliability.md>), [rollback](<https://devfeed.tech/tags/rollback.md>), [saga](<https://devfeed.tech/tags/saga.md>), [transactions](<https://devfeed.tech/tags/transactions.md>)

### AI overview

A saga trades a single transaction's isolation for independently committed service steps: intermediate states are visible, and failures require new compensating actions rather than rollback. Those actions can fail too, so the article calls for idempotent steps and compensations, retries, timeouts, durable and queryable saga state, and human escalation when compensation cannot succeed. It recommends ordering reversible work first and irreversible actions, such as sending confirmation, last; where possible, reserve resources before finalizing them. Choreography avoids a coordinator but leaves workflow and progress scattered across services. Orchestration centralizes sequencing, state tracking, recovery, and compensation, at the cost of a coordination component. The pattern adds substantial failure-path complexity; the author advises using it when service boundaries make a local transaction impossible, and notes that visible intermediate states must be acceptable to the product.

### Source excerpt

A saga replaces one atomic transaction with a sequence of local transactions, each of which commits and becomes visible immediately, so there is no isolation and intermediate states are observable. When a later step fails, earlier ones are undone by running compensating actions, which are forward operations with their own failure modes rather than a rollback. The difficulty is not the mechanism but the steps that cannot be compensated, such as an email already sent or a payment already captured, which have to be designed around rather than reversed.

## Two-phase commit provides atomicity but can leave participants blocked and reduce transaction availability

DevFeed: [Two-phase commit provides atomicity but can leave participants blocked and reduce transaction availability](<https://devfeed.tech/articles/two-phase-commit-is-not-dead-it-is-just-expensive-and-you-should-know-the-price-89928.md>)

Original publisher: [Read original article](<https://ankit-rana.com/logs/67-two-phase-commit-is-expensive-not-dead/>)

Author: hello@ankit-rana.com

Published: 2026-10-19T00:00:00Z

Content type: article

Language: en

Sources: [Ankit Rana | Mechanical Sympathy](<https://devfeed.tech/sources/ankit-rana-mechanical-sympathy.md>)

Topics: [scalable-architecture](<https://devfeed.tech/topics/scalable-architecture.md>), [self-hosted databases vs managed services](<https://devfeed.tech/topics/self-hosted-databases-vs-managed-services.md>), [CAP theorem](<https://devfeed.tech/topics/cap-theorem.md>), [Availability](<https://devfeed.tech/topics/availability.md>), [synchronization](<https://devfeed.tech/topics/synchronization.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [consistency](<https://devfeed.tech/tags/consistency.md>), [database](<https://devfeed.tech/tags/database.md>), [databases](<https://devfeed.tech/tags/databases.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [distributed](<https://devfeed.tech/tags/distributed.md>), [distributed-systems](<https://devfeed.tech/tags/distributed-systems.md>), [distributed-transaction](<https://devfeed.tech/tags/distributed-transaction.md>), [distributed-transactions](<https://devfeed.tech/tags/distributed-transactions.md>), [fsync](<https://devfeed.tech/tags/fsync.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [latency](<https://devfeed.tech/tags/latency.md>), [locks](<https://devfeed.tech/tags/locks.md>), [two-phase-commit](<https://devfeed.tech/tags/two-phase-commit.md>)

### AI overview

Two-phase commit (2PC) provides atomicity across resource managers by requiring participants to hold locks after voting until a coordinator decides. If the coordinator fails during that interval, participants can remain blocked. The article explains how adding participants lowers transaction availability, contrasts 2PC with the transactional outbox pattern, and identifies cases where 2PC may still be appropriate.

### Source excerpt

Two-phase commit gives real atomicity across independent resource managers, and it pays for it by making every participant hold locks from the moment it votes until the coordinator tells it what to do. If the coordinator dies in that window, participants are stuck holding locks with no legal way to proceed, because they promised they could commit and cannot take it back. Availability is the product of every participant's availability, so adding services makes the transaction less likely to complete rather than more.

## Modular Monolith in .NET: Why Many Teams Skip Microservices

DevFeed: [Modular Monolith in .NET: Why Many Teams Skip Microservices](<https://devfeed.tech/articles/modular-monolith-in-net-why-many-teams-skip-microservices-85890.md>)

Original publisher: [Read original article](<https://blog.devops.dev/modular-monolith-in-net-why-many-teams-skip-microservices-b70d52278ccc?source=rss----33f8b2d9a328---4>)

Author: Bharat Chandera

Published: 2026-10-13T10:52:09Z

Content type: opinion

Language: en

Sources: [DevOps.dev](<https://devfeed.tech/sources/devops-dev.md>)

Topics: [modular-monolith](<https://devfeed.tech/topics/modular-monolith.md>), [Microservices](<https://devfeed.tech/topics/microservices.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>)

Tags: [costs](<https://devfeed.tech/tags/costs.md>), [coupling](<https://devfeed.tech/tags/coupling.md>), [csharp](<https://devfeed.tech/tags/csharp.md>), [debug](<https://devfeed.tech/tags/debug.md>), [distributed-data](<https://devfeed.tech/tags/distributed-data.md>), [distributed-transactions](<https://devfeed.tech/tags/distributed-transactions.md>), [dotnet](<https://devfeed.tech/tags/dotnet.md>), [microservices](<https://devfeed.tech/tags/microservices.md>), [modular-monolith](<https://devfeed.tech/tags/modular-monolith.md>), [monolith](<https://devfeed.tech/tags/monolith.md>), [overhead](<https://devfeed.tech/tags/overhead.md>), [pipelines](<https://devfeed.tech/tags/pipelines.md>), [services](<https://devfeed.tech/tags/services.md>), [software-architecture](<https://devfeed.tech/tags/software-architecture.md>), [software-development](<https://devfeed.tech/tags/software-development.md>)

### AI overview

The excerpt argues that many teams adopt microservices to address code coupling rather than scaling needs, and that a modular monolith can improve boundaries within one process. It says microservices impose costs such as distributed data without joins or a single transaction, per-service pipelines and operations, slower local development, and failure modes including timeouts and partial failures. For teams of 5 to 30 developers, the excerpt says this overhead may outweigh the coupling cost; it does not describe how to implement a modular monolith.

### Source excerpt

You probably don't have a scaling problem. You have a boundaries problem, and there's a cheaper way to fix it. Continue reading on DevOps.dev "

## Aurora DSQL: Scalable, Multi-Region OLTP

DevFeed: [Aurora DSQL: Scalable, Multi-Region OLTP](<https://devfeed.tech/articles/aurora-dsql-scalable-multi-region-oltp-41849.md>)

Original publisher: [Read original article](<https://muratbuffalo.blogspot.com/2026/07/aurora-dsql-scalable-multi-region-oltp.html>)

Author: Murat (noreply@blogger.com)

Published: 2026-07-24T00:15:59Z

Content type: opinion

Language: en

Sources: [Metadata](<https://devfeed.tech/sources/metadata.md>)

Topics: [DSQL](<https://devfeed.tech/topics/dsql.md>), [Database](<https://devfeed.tech/topics/database.md>), [Concurrency](<https://devfeed.tech/topics/concurrency.md>), [Amazon Web Services](<https://devfeed.tech/topics/aws.md>), [Replication](<https://devfeed.tech/topics/replication.md>), [PostgreSQL](<https://devfeed.tech/topics/postgresql.md>), [Transactions](<https://devfeed.tech/topics/transactions.md>), [Routing (disambiguation)](<https://devfeed.tech/topics/routing.md>), [stateless](<https://devfeed.tech/topics/stateless.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [aws](<https://devfeed.tech/tags/aws.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [concurrency-control](<https://devfeed.tech/tags/concurrency-control.md>), [database](<https://devfeed.tech/tags/database.md>), [databases](<https://devfeed.tech/tags/databases.md>), [distributed-transactions](<https://devfeed.tech/tags/distributed-transactions.md>), [distsql](<https://devfeed.tech/tags/distsql.md>), [dsql](<https://devfeed.tech/tags/dsql.md>), [mvcc](<https://devfeed.tech/tags/mvcc.md>), [paper-review](<https://devfeed.tech/tags/paper-review.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [replication](<https://devfeed.tech/tags/replication.md>), [routing](<https://devfeed.tech/tags/routing.md>), [stateless](<https://devfeed.tech/tags/stateless.md>), [transactions](<https://devfeed.tech/tags/transactions.md>)

### AI overview

An analysis of Aurora DSQL's architecture, which decomposes a traditional monolithic database into independently scalable services for query processing, storage, conflict resolution, replication, and routing. It also examines synchronized clocks, MVCC, snapshot isolation, and optimistic concurrency control.

### Source excerpt

The Aurora DSQL paper finally dropped. Reading it yesterday was an interesting experience, because I spent two years (2022-23) working with the AWS team that designed and built Aurora DSQL. Since I have been very familiar with the architecture, the paper's overview description of the system didn't excite me much. And if I am being honest, reading the paper also felt a bit dry, most likely because I am not doing the usual extra thinking to explore/understand the ideas in the paper. But taking a step back today, and leaving my subjective experience aside, I will try to elaborate on how the DSQL architecture is actually built on a set of aggressive and opinionated engineering bets. If I had to explain this architecture in a single sentence (just as I used to do for other teams at AWS) it would be this: We took a traditional monolithic database and blew out every single component into an independent, horizontally scalable service. Exploding the Monolith DSQL divides the database into the following specialized services: Query Processors (QP): Stateless virtual machines that run a custom PostgreSQL engine to parse queries and buffer writes locally. Storage Nodes: Sharded nodes that hold the data and use multiversion concurrency control (MVCC) to serve historical data to QP instantly. Adjudicators: The conflict-resolution layer that checks if a transaction handed of to them by QP is safe to commit. Journals: A highly available replication log that durably saves transactions across zones or regions. (Good for short term durability before this reaches the storage nodes. See my MemoryDB review.) Crossbars: The routing layer that reads the updates from the Journals and sends changes to the right Storage Nodes. The Big Architectural Bets in DSQL Design Well, in addition to fully committing to the disaggregation principle, here are the other big bets in DSQL design. The Synchronized Clock Bet: To get reads without coordination, DSQL relies entirely on highly synchronized physica

## Order Management in Mercari Global Marketplace

DevFeed: [Order Management in Mercari Global Marketplace](<https://devfeed.tech/articles/order-management-in-mercari-global-marketplace-56770.md>)

Original publisher: [Read original article](<https://engineering.mercari.com/en/blog/entry/20251010-order-management-in-mercari-global-marketplace/>)

Author: Yuichi Takada

Published: 2025-10-10T10:00:23Z

Content type: article

Language: en

Sources: [Mercari Engineering](<https://devfeed.tech/sources/mercari-engineering.md>)

Topics: [Back end](<https://devfeed.tech/topics/backend.md>), [Transactions](<https://devfeed.tech/topics/transactions.md>), [Orchestration](<https://devfeed.tech/topics/orchestration.md>), [consistency](<https://devfeed.tech/topics/consistency.md>), [data](<https://devfeed.tech/topics/data.md>)

Tags: [backend](<https://devfeed.tech/tags/backend.md>), [consistency](<https://devfeed.tech/tags/consistency.md>), [distributed-transactions](<https://devfeed.tech/tags/distributed-transactions.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [orchestration](<https://devfeed.tech/tags/orchestration.md>), [system-design](<https://devfeed.tech/tags/system-design.md>)

### AI overview

Mercari's Cross Border Engineering team describes a flexible order management system for its global marketplace. The design separates item lifecycles, supports independently defined state transitions, and uses Saga orchestration to coordinate distributed transactions across services while maintaining data consistency.

### Source excerpt

Hi! I'm takady, a backend engineer at Cross Border (XB) Engineering. In this post, I'll share how we designed and built a flexible order management system from the ground up. Background While the existing Mercari Japan's marketplace has a mature order management system, it's not easily expandable to global marketplace requirements because of the following [...]

## Distributed transactions: What, why, and how to build a distributed transactional application

DevFeed: [Distributed transactions: What, why, and how to build a distributed transactional application](<https://devfeed.tech/articles/distributed-transactions-what-why-and-how-to-build-a-distributed-transactional-application-23780.md>)

Original publisher: [Read original article](<https://cockroachlabs.com/blog/distributed-transactions-what-why-and-how-to-build-a-distributed-transactional-application>)

Author: Charlie Custer

Published: 2023-02-16T00:00:00Z

Content type: article

Language: en

Sources: [Cockroach Labs](<https://devfeed.tech/sources/cockroach-labs.md>)

Topics: [Transactions](<https://devfeed.tech/topics/transactions.md>), [Distributed Systems & Parallel Computing](<https://devfeed.tech/topics/distributed-systems-parallel-computing.md>), [Database](<https://devfeed.tech/topics/database.md>), [CockroachDB](<https://devfeed.tech/topics/cockroachdb.md>), [database-consistency](<https://devfeed.tech/topics/database-consistency.md>), [Raft](<https://devfeed.tech/topics/raft.md>), [acid](<https://devfeed.tech/topics/acid.md>)

Tags: [availability](<https://devfeed.tech/tags/availability.md>), [consistency](<https://devfeed.tech/tags/consistency.md>), [database](<https://devfeed.tech/tags/database.md>), [distributed-transactions](<https://devfeed.tech/tags/distributed-transactions.md>), [fault-tolerance](<https://devfeed.tech/tags/fault-tolerance.md>), [high-availability](<https://devfeed.tech/tags/high-availability.md>), [scalability](<https://devfeed.tech/tags/scalability.md>), [transactions](<https://devfeed.tech/tags/transactions.md>)

### AI overview

Distributed transactions coordinate data changes across database nodes, preserving the all-or-nothing behavior expected of a transaction. The article compares three patterns: two-phase commit keeps nodes consistent by requiring each to prepare and then commit, but locks resources, can bottleneck, and fails if any node is unavailable. Active-passive replicas allow a passive node to take over after an active-node failure, though failover can cause a brief outage and writes remain limited to one node. In a multi-active system such as CockroachDB, all nodes can handle reads and writes; Raft lets a transaction commit when a majority agree, and the database manages routing and consistency. This can support scaling and availability while preserving consistency, but building such a system from scratch is highly complex, so adopting it generally means choosing or migrating to a purpose-built database.

### Source excerpt

Transactions make up an important part of the database workload for most modern applications. And when it comes time to scale up operations for a growing business, distributing those workloads across multiple hardware systems for horizontal scalability, high availability, and fault tolerance is often an important part of the plan.