O'Reilly logo

Apache Cassandra Essentials by Nitin Padalia

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Lightweight transactions

Sometimes, it could be the case that we are running two operations in parallel but want them to be executed in a serial manner, one after another. For example, if two users are registering them to the system with the same user ID at the same point in time or a user account is being updated by two different means at the same time. These tasks should run in serial in order to guarantee that the data is in the correct state for both operations; otherwise, one operation might overwrite the other's record and the first one will never know. Serialization of such task becomes hard if there are multiple nodes serving requests. In traditional database systems it was achieved by routing such requests only to one node called master ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required