Re: Add a feature 'strong cas', developed from 'lease' that mentioned in Facebook's paper

2014-04-23 Thread Zhiwei Chan
Thanks for folks' suggestion, specifically for bisho. Maybe i should say more detail the problem i face. Recently i read more papers and articles and found that is very difficult to make strong consistency between cache and database. But the lease seems can make it work better in my case

Re: Add a feature 'strong cas', developed from 'lease' that mentioned in Facebook's paper

2014-04-22 Thread Ryan McElroy
I'll take a look at the API and behavior and provide feedback. I'll also ping our former server guys to see if they can take a look at the implementation. Cheers, ~Ryan On Sun, Apr 20, 2014 at 12:23 AM, dormando dorma...@rydia.net wrote: Well I haven't read the lease paper yet. Ryan, can

Re: Add a feature 'strong cas', developed from 'lease' that mentioned in Facebook's paper

2014-04-22 Thread Guille -bisho-
leases at better to fight against thundering herds (too many clients trying to fill a miss) and being a bit more efficient by blocking, but same strong cas can be implemented with regular cas and add. Even the leases can be implemented with a lock on memcache when you try to update some key,

Re: Add a feature 'strong cas', developed from 'lease' that mentioned in Facebook's paper

2014-04-20 Thread dormando
Well I haven't read the lease paper yet. Ryan, can folks more familiar with the actual implementation have a look through it maybe? On Thu, 17 Apr 2014, Zhiwei Chan wrote: I m working on a trading system, and getting stale data for the system is unaccepted at most of the time. But the high

Add a feature 'strong cas', developed from 'lease' that mentioned in Facebook's paper

2014-04-17 Thread Zhiwei Chan
I m working on a trading system, and getting stale data for the system is unaccepted at most of the time. But the high throughput make it impossible to get all data from mysql. So i want to make it more reliable when use memcache as a cache. Facebook's paper Scaling Memcache at Facebook