Skip to content
This repository has been archived by the owner on May 15, 2020. It is now read-only.

API: Use etcd to distribute Snowflake machine IDs #54

Open
2 tasks
kevinmichaelchen opened this issue Feb 20, 2018 · 0 comments
Open
2 tasks

API: Use etcd to distribute Snowflake machine IDs #54

kevinmichaelchen opened this issue Feb 20, 2018 · 0 comments

Comments

@kevinmichaelchen
Copy link
Member

kevinmichaelchen commented Feb 20, 2018

etcd is a distributed key-value store. Upon startup, apps should register with the etcd cluster to determine their Snowflake machine ID.

  • Upon startup, each app generates a UUID
  • Every 30 seconds, the app heartbeats its UUID to etcd
@kevinmichaelchen kevinmichaelchen changed the title API: Snowflake machine ID distribution API: Use etcd to distribute Snowflake machine IDs Feb 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant