zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Hunt <ph...@apache.org>
Subject Re: Zookeeper performance
Date Wed, 31 Jul 2013 15:47:01 GMT
On Wed, Jul 31, 2013 at 4:16 AM, Baskar Duraikannu
<baskar.duraikannu@outlook.com> wrote:
> We are looking to use zookeeper for optimistic concurrency. Basically when the user saves
data on a screen, we need to lock,  read to ensure that no one else has changed the row while
user is editing data, persist data and unlock znode.

Why not use the built in optimistic locking that ZK provides? See the
"version" parameter here:
boolean, org.apache.zookeeper.AsyncCallback.DataCallback,
byte[], int, org.apache.zookeeper.AsyncCallback.StatCallback,

> If the app/thread does not get a lock, we may set a watch so that polling is avoided.
> Our application is write intensive certain times of the day. We may get about 100k requests
per second.  Can zookeeper handle this volume?

Unlikely you'll see this level of performance:


View raw message