Categories: None [Edit]

torid

https://rubygems.org/gems/torid
https://github.com/copiousfreetime/torid
Temporally Ordered IDs. Generate universally unique identifiers (UUID) that sort lexically in time order. Torid exists to solve the problem of generating UUIDs that when ordered lexically, they are also ordered temporally. I needed a way to generate ids for events that are entering a system with the following criteria: 1. Fast ID generation 2. No central coordinating server/system 3. No local storage 4. Library code, that is multiple apps on the same machine can use the same code and they will not generate duplicate ids 5. Eventually stored in a UUID field in a database. So 128bit ids are totally fine. The IDs that Torid generates are 128bit IDs made up of 2, 64bit parts. * 64bit microsecond level UNIX timestamp * 64bit hash of the system hostname, process id and a random value.

Total

Ranking: 9,252 of 187,286
Downloads: 335,705

Daily

Ranking: 32,061 of 187,264
Downloads: 11

Depended by

RankDownloadsName

Depends on

RankDownloadsName
101,153,275,696rake
161,078,029,799minitest
99421,619,623simplecov
185242,466,513rdoc
2,8585,556,914fnv

Owners

#GravatarHandle
1iconjjh