Hmm...looks like I sent this from the wrong address and it didn't go
out. Apologies if it did and this is a double post.

Okay, I added a first stab at this in my github fork:
http://github.com/frew/beanstalkd/commit/829879a73898f9334538ffc50360d9e9960f7727

I ended up using {first 255 chars of node name}.{start up unix
time}.{random value}

Thoughts:
* We could serve the node name, start_time, and random value
separately if we wanted, but I don't think we want to delegate any
more than that to the client (since node name can be different
depending on how the client is connecting, and the other two aren't
determinable client-side).
* I thought about including a hash, but since we're in C land here, I
think it would be more trouble than it's worth in terms of additional
code or dependencies. It should be easy to add on the client-side,
since most recent languages have it as part of their standard
libraries.
* I'm assuming time_t is an integral type. I think this is the case on
every reasonable system, but it's not actually a standard.
* It might be worth 0 padding the time so that guids sort
lexicographically. *shrug*

-Fred
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"beanstalk-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/beanstalk-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to