zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Rosien" <a...@rosien.net>
Subject Re: Sending data during NodeDataChanged or NodeCreated
Date Wed, 07 Jan 2009 21:34:20 GMT
On Wed, Jan 7, 2009 at 12:46 PM, Kevin Burton <burton@spinn3r.com> wrote:
> On Wed, Jan 7, 2009 at 9:25 AM, Benjamin Reed <breed@yahoo-inc.com> wrote:
>
>> This is the behavior we had when we first implemented the API, and in every
>> case where people used the information there was a bug. it is virtually
>> impossible to use correctly. In general I'm all for giving people rope, but
>> if it always results in death, you should stop handing it out.
>>
>
> I think this is excessive rope...
>
> Most people want to read the data and having a race here is just asking for
> trouble.
>
> I'm not sure it is as much about excessive rope is it is about making it
> easy for users to stumble on the correct use case and reduce bugs.
>
> Ignorance is a wonderful gift you can give to your users :)

Perhaps a compromise would be augment the API, or your wrapper, such
that it provides a Future<byte[]> which has more well-known semantics
to clients.

.. Adam

Mime
View raw message