shopping cart - Cassandra row level locking support while accessing same row by concurrent users -


we in design phase of our shopping cart application considering cassandra inventory database. multiple users need able access same product row in inventory db @ same time.

for example product table containing:

productid =1000, productquantitiy = 1

productid =2000, productquantitiy = 5

if first user selects product 1000 , add product quantity 1 in shopping cart, other users should not able select product until gets discarded first user (who updates product quantity 0).

alternatively if first user selects 3 of product 2000, other users accessing same product should not able select same amount of product until discarded first user (who updates product quantity 2).

does cassandra provide row level locking support kind of scenario ?

cassandra not have built in support locking yet. astyanax api provides recipes implementations common use cases, 1 of which, distributed row lock, such locking.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -