question

rajib76 avatar image
rajib76 asked Erick Ramirez answered

How is Astra DB able to implement Paxos?

Cassandra uses paxos for consensus, but paxos requires that the agents(proposer, acceptors and learners) need to remember some information to take care of failure and restart scenario. But as I understand the ASTRA database services are stateless. Then how is ASTRA able to save the information as required by the paxos algorithm. Or is it that ASTRA does not use it at all and LWT will not be implemented in ASTRA

astralightweight transactions
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered

Achieving consensus with Paxos for LWTs doesn't rely on the state of Cassandra nodes but on the state of the data. Astra DB's serverless architecture isn't relevant in this case.

Regardless of whether they're traditional C* nodes or Astra's Data services, what matters is that a quorum of replicas can be queried to satisfy the condition of the LWT before the proposed mutation can be applied. Cheers!

Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.