Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a "Lightweight Transaction" and why are they called so?

I am reading about how lightweight transactions are achieved in C* using Paxos and how they offer linearizability. But I want to know why they are called "lightweight". They are also known as compare and set. So what characteristics define a transaction to be a lightweight one?

like image 879
Sumod Avatar asked Dec 05 '25 03:12

Sumod


1 Answers

Cassandra's transactions differ from the more traditional "heavy" transactions supported by many relational systems. Here are some key points of difference:

  • They do not allow for explicit commit/rollback functionality
  • They do not guarantee atomicity across partitions
  • They provide only very simple constraint checking rather than the more complex multi-statement transactions commonly seen in RDBMS

Thus, one could say they are "lightweight" in comparison to other more familiar transaction models.

like image 178
rs_atl Avatar answered Dec 07 '25 19:12

rs_atl



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!