cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiller, Dean" <>
Subject Re: Online shop with Cassandra
Date Wed, 09 Oct 2013 17:48:51 GMT
Read the paper "Building on Quicksand"  especially the section where he
describes what they do at AmazonŠthe apology modelŠie. Allow overbooking
and apologize but limit overbookingŠ.That is one way to go and stay

You may want to analyze the percentage change that overbooking can be as
wellŠ..the paper may give you other ideas.

Another idea is atomic row update and leveraging that which I think is in
2.0 such that the first person wins.


On 10/9/13 9:59 AM, "" <> wrote:

>Hi all,
>for an online shop owned by my company I would like to remove MySQL for
>everything concerning the frontend and use Cassandra instead.
>The site has more than a million visit each day but what we need to know
>Products (deals) are divided for cities
>Each product can stay online for X time and sell a max number of Y items
> CREATE TABLE deals (
>        city string,
>        deal_id timeuuid,
>        availability int,
>        deal_info string,
>        PRIMARY KEY ((city, deal_id))
>    );
>The only problem I see in this model is how to guarantee the
>"availability" of 
>a deal and don't "overbook" -- How to solve the problem of "remaining
>items" in 
>real time? 
>I have many idea how to solve it on the web-application but I wonder if
>is nothing ready on Cassandra that might help.
>Kindest regards,

View raw message