liveBook · Manning

Downgrading consistency policy

As explained in ScyllaDB in Action

A consistency downgrade retry is a write strategy that retries an operation with progressively weaker consistency requirements until it succeeds.

A downgrading consistency policy retries a failed request with a weaker consistency level. For example, a follow-up attempt can change a write from ALL to QUORUM after at least one node responds. section 10.5.3

Use the policy with care:

  • Treat it as an exception rather than the default, because weaker consistency during failures can violate the application’s consistency expectations. section 10.5.3
  • Apply it when a secondary database must keep receiving successful primary writes during an online migration or comparison. section 12.2.1
  • Rely on ScyllaDB repair and replication to propagate data to its owning nodes after a weaker-consistency write succeeds. section 12.2.1

Dual-writing during migration

An application writes to a primary database and a destination ScyllaDB cluster while the source remains online. The destination write should occur only after the primary succeeds; downgrading consistency options can retry the secondary write with increasingly weaker requirements until it succeeds. section 12.2.1

Figure 12.4 If you need to keep your application online during a migration, you must also dual-write data to avoid missed writes.
figure

The figure shows why online migration requires dual writes: otherwise updates made during migration can be missed. section 12.2.1

How ScyllaDB in Action covers it

How deep it goes
Explains the retry behavior and operational trade-off, but stops short of detailed driver configuration.
Examples
Illustrates changing ALL to QUORUM and retrying writes to a secondary cluster during online migration.
What you can do after
Apply it via ScyllaDB driver options when coordinating resilient secondary writes, while evaluating the consistency trade-off.
How it connects
Connects consistency levels with retry policies, dual writing, data migration, repair, and replication.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of ScyllaDB in Action. The section links point to the parts of the book it draws on.