[Spread-users] Unique message id

Sam Liu yishengsam at yahoo.ca
Sat Aug 10 21:01:40 EDT 2002


I am trying to add a special broadcast primitive into
spread, if the internal sequence numbers are unique
within each 'view' of the membership, they will be
fine to fit in the things that I am working on, thank
you :).


yisheng



--- Jonathan Stanton <jonathan at cnds.jhu.edu> wrote:
> Hi,
> 
> The sequence numbers generated by Spread to order
> messages are not
> accessible to applications, so I'm not sure how you
> were going to use
> them. In actuality the internal sequence numbers are
> unique within each
> 'view' of the membership, but as soon as a daemon
> crashes or restarts or
> a network partition occurs or recoveres, the
> sequence numbers will start
> over at 1, so I don't think they will work for you.
> 
> The best way is to just tag your application level
> messages with a unique
> message id such as a tuple of local application
> sequence number and
> spread connection private name (which is guaranteed
> to be unique until
> your application disconnects) or some other 'name'
> attached to each
> instance of your application.
> 
> Jonathan
> 
> On Fri, Aug 09, 2002 at 02:50:23PM -0400, Sam Liu
> wrote:
> > Hi,
> > 
> > I would need to attach a message id to each
> message
> > delivered to the applications. I am considering to
> use
> > the seq no of the last packet of the message as
> the
> > message id. Is the seq no of the packet grobally
> > unique in a specific configuration? Thanks.
> > 
> > 
> > yisheng
> > 
> > McGill U
> > Canada
> 
> -- 
>
-------------------------------------------------------
> Jonathan R. Stanton         jonathan at cs.jhu.edu
> Dept. of Computer Science   
> Johns Hopkins University    
>
-------------------------------------------------------
> 
> _______________________________________________
> Spread-users mailing list
> Spread-users at lists.spread.org
>
http://lists.spread.org/mailman/listinfo/spread-users


______________________________________________________________________ 
Post your ad for free now! http://personals.yahoo.ca




More information about the Spread-users mailing list