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 ...

Get Apache Cassandra Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.