DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
World desk5 min

When Replicas Accept Conflicting Writes, Which One Wins?

Two databases can accept incompatible writes before they exchange updates. Here’s how conflict policies determine whether one value wins, changes merge, or coordination prevents the clash.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Both databases can report success even though they accepted incompatible updates. In a multi-writer system that replicates asynchronously, each node may accept a write before learning about the other; the replicas can therefore disagree temporarily. What happens next depends on the database’s conflict policy: it may pick one value, expose concurrent versions, merge compatible operations, flag the conflict, or require coordination that prevents the conflicting commits.

Why can both databases say yes?

In asynchronous multi-writer replication, each node can accept a local transaction without globally serializing every write across all nodes. Replication and conflict handling take place separately. Apache Cassandra describes replicas independently accepting mutations, and Microsoft’s documentation for SQL Server peer-to-peer replication explains that transactions at different nodes are not serialized with one another by that replication arrangement. Cassandra’s Dynamo architecture documentation and Microsoft’s SQL Server peer-to-peer conflict documentation describe product-specific examples.

As an Amazon Associate I earn from qualifying purchases.

Imagine two regions start with an account setting of “standard.” One accepts a change to “priority” while the other, still unaware of it, accepts a change to “paused.” Each can acknowledge its own write locally. That acknowledgement confirms the local operation was accepted; by itself, it does not establish that the replicas agree or that the other region accepted the same state.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Once replication brings the updates into contact, the system must apply its configured rules. The result may discard one proposed value, preserve alternatives for resolution, combine operations, or reject or escalate the conflict. There is no universal outcome across databases.

What decides the outcome?

The important distinction is not simply which database answered first. It is what ordering, metadata, merge logic, or coordination protocol the system uses. The same pair of concurrent writes can produce different results under different policies.

Last-write-wins selects according to an ordering

Last-write-wins (LWW) selects one value using an ordering, commonly timestamps. “Last” may mean the timestamp considered greatest by the system—not the update a person made most recently. Cassandra documents timestamp-based resolution; timestamps may come from a client clock or, when the client supplies none, the coordinator clock. Microsoft warns that clock skew can cause an objectively older SQL Server update to win. LWW is simple, but it can silently discard a concurrent change and its ordering may not reflect business intent.

Causality metadata can identify concurrent versions

Version or vector clocks can help distinguish updates that follow one another from updates that occurred concurrently. Azure Cosmos DB documents vector-clock and version-vector mechanisms for causality tracking and conflict detection, alongside configurable resolution policies. That does not mean every deployment shows unresolved alternatives directly to its users: the configured product policy determines how conflicts are handled.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Resolvers and application logic can apply domain rules

A system may flag a conflict, run a custom resolver, or route it for manual handling instead of automatically choosing a timestamp winner. A resolver should reflect the meaning of the data. For example, choosing the later timestamp for a display preference may be acceptable, while resolving competing inventory changes by selecting one whole record could violate a stock constraint. EnterpriseDB’s documentation describes conflict resolution and management options; the exact behavior depends on product configuration.

CRDTs can merge some operations

Conflict-free replicated data types (CRDTs) define merge behavior for particular kinds of data or operations, allowing compatible concurrent changes to converge without choosing one entire record as the winner. This is useful only when the type’s semantics match the application’s meaning. EnterpriseDB recommends CRDT data types for suitable concurrent updates, and Redis documents CRDT-based handling for its Active-Active databases.

How do the main approaches compare?

Approach What happens to competing updates? Main trade-off
Asynchronous multi-writer replication Nodes can accept writes independently; replicas may diverge until replication and conflict handling reconcile them. Microsoft Learn; Apache Cassandra Local write availability comes with the possibility of concurrent versions that need reconciliation.
Last-write-wins Selects one value by an ordering, commonly timestamps; the competing value may be lost. Apache Cassandra; Microsoft Learn Simple resolution, but clock differences or timestamps that do not reflect business intent can produce surprising winners.
Causality tracking and configurable resolution Metadata can help detect concurrent versions; the product’s configured policy determines whether to select, merge, or otherwise resolve them. Azure Cosmos DB Requires an appropriate resolution policy; causality tracking alone does not define the application’s desired result.
CRDT or operation-aware merge Can combine supported concurrent operations according to the chosen data type’s rules. Redis Active-Active guidance; EnterpriseDB conflict-resolution guidance Works only when those merge rules preserve the intended meaning of the data.
Coordination, such as a leader or distributed transaction Constrains when or where writes can commit, reducing or avoiding conflicting commits when the protocol and configuration enforce the needed coordination. EnterpriseDB; EnterpriseDB conflict management Writes may depend on a reachable leader or remote participants; latency, availability, and message costs matter. Redis Active-Active guidance

These are patterns, not interchangeable product settings. For example, an application should not assume that any quorum write automatically preserves an arbitrary business invariant; that depends on the database’s protocol and configuration.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

How should you choose a conflict strategy?

Start with the consequence of an incorrect merge or lost update, then decide how much coordination the application can tolerate. Ask these questions for the specific database product, version, and deployment:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Can a node accept writes while isolated from its peers? If yes, decide how concurrent changes will be reconciled when communication resumes.
  • What does a successful acknowledgement mean? Establish whether it reflects local acceptance, a quorum, or globally coordinated commit; do not infer one from the word “success.”
  • What should happen to concurrent values? Choose whether the system should retain alternatives, pick a winner, merge supported operations, flag a conflict, or send it for operator or application resolution.
  • Can the policy preserve business invariants? Test cases such as inventory not falling below zero or a unique assignment not being made twice. A generic record-level winner may not encode those rules.
  • What are the failure costs? Evaluate the latency and availability impact when a region, leader, or network path is unreachable, as well as coordination message costs.
  • What does the policy depend on? Check whether correctness requires synchronized clocks, version metadata, custom resolver code, or manual intervention.

For simple fields where losing one concurrent value is acceptable, a deterministic winner may be sufficient. For counters or other operations with a well-defined merge, a compatible CRDT may fit. For data with strict invariants, use application-aware resolution or coordination designed to enforce those invariants rather than assuming replication will do so automatically.

What should you verify in a specific database?

Product documentation describes particular implementations, not a universal database rule. The cited SQL Server peer-to-peer page is for SQL Server 17 documentation and notes that last-writer-wins support begins with SQL Server 2019 CU 13. Cassandra’s linked guide is its current “latest” documentation and can change across versions. Cosmos DB, Redis Cloud Active-Active, and EnterpriseDB each describe product-specific mechanisms and configurable policies.

Before relying on a behavior, verify the deployed version and replication mode, the exact conflict-resolution configuration, and how the system behaves during disconnection and recovery. Confirm whether conflicts are detectable, whether alternatives are retained, and whether a resolver can enforce the application’s invariants. The documentation does not establish settings for an arbitrary deployment.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.