Have other uniqueness strategies than a Worker #2

Open
opened 2019-09-24 11:21:44 +00:00 by minibikini · 1 comment
Member

It can do a lot of flakes per second already, but in some cases, it's totally possible to isolate it per-process.

Suggested by @href.

It can do a lot of flakes per second already, but in some cases, it's totally possible to isolate it per-process. *Suggested by @href.*
Member

to be more precise, on the per-process way:

  • the worker_id should be a erlang:phash2 of something like {node_worker_id, self()}
  • the seq should be stored in the process dictionary
to be more precise, on the per-process way: - the worker_id should be a `erlang:phash2` of something like `{node_worker_id, self()}` - the seq should be stored in the process dictionary
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pleroma-elixir-libraries/flake_id#2
No description provided.