orbis
play

Orbis UUID Generation, using Consistent Hashing in Erlang UUID - PowerPoint PPT Presentation

Orbis UUID Generation, using Consistent Hashing in Erlang UUID [42-bit Timestamp, 12-bit Shard, 10-bit Sequence] Timestamp Use Unix Epoch, in milliseconds, with an offset. Subtract offset at generation time, add on decoding time.


  1. Orbis UUID Generation, using Consistent Hashing in Erlang

  2. UUID [42-bit Timestamp, 12-bit Shard, 10-bit Sequence]

  3. Timestamp • Use Unix Epoch, in milliseconds, with an offset. • Subtract offset at generation time, add on decoding time. • Allows for enough values to outlive the lifetime of the system itself.

  4. Sequence • Rolling sequence. Like serial in PostgreSQL. One sequence counter per shard.

  5. Shard • Allows us to distribute our data out nicely to multiple backend data stores. • We shard data early, in a sensible way, which allows us to easily move data around later. • Each shard represents one worker in our ring of workers.

  6. Consistent Hashing 2 256 0 2 256 /2

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend