twitter-archive/snowflake
View on GitHub ↗ ★ 7,754 Scala archived
Snowflake is a network service for generating unique ID numbers at high scale with some simple guarantees.
23 mentions on Hacker News by 22 people: 1 story, 22 comments · first 2010-09-19 · latest 2026-05-11
20082026
-
There is source code available for it (although the repo's retired): https://github.com/twitter-archive/snowflake/blob/b3f6a3c6ca... Basically one big server had a number of threads each requesting the next value in the sequence on that…
comment by benoau · 2026-05-11 · in Tell me why this UUID pattern is stupid -
…look into vector clocks[1] or snowflake[2][3] [1] https://en.wikipedia.org/wiki/Vector_clock [2] https://github.com/twitter-archive/snowflake/tree/snowflake-... [3] https://en.wikipedia.org/wiki/Snowflake_ID
comment by syncsynchalt · 2024-08-26 · in TIL: Versions of UUID and when to use them -
…open sourced back in 2010 [0]. Looks like it was added in this commit [1] from August 2010. [0] https://github.com/twitter-archive/snowflake/blob/snowflake-... [1] https://github.com/twitter-archive/snowflake/commit/ba2e67ea...
comment by karlding · 2020-12-01 · in I Made a Self-Quoting Tweet -
…has been retired in 2014 [1]. Are there any similar services around that are still maintained? [1]: https://github.com/twitter/snowflake
comment by piquadrat · 2017-11-30 · in Auto increment is a terrible idea -
…that would require changes in the business logic: making IDs globally unique and sortable ala https://github.com/twitter/snowflake; deprecating but keeping around old APIs as new ones are added; "Ball of Mud" refactorings; isolated…
comment by derefr · 2016-12-18 · in Show HN: Learn how to build a small Twitter clone in 7 days -
For internal purposes, a 64 bit GUID will be sufficient. Look how Twitter uses Snowflake - https://github.com/twitter/snowflake - that's a scalable way to generate unique IDs which won't ever be revealed to the user. For default user…
comment by edent · 2016-08-08 · in Ask HN: How do we pick an user ID while building a social-platform? -
Twitter's Snowflake, though it's gone now. The principle is the same. https://github.com/twitter/snowflake .
comment by silverlake · 2015-08-19 · in Sharding Pinterest: How we scaled our MySQL fleet -
Twitter came up with a different scheme called Snowflake ( https://github.com/twitter/snowflake ).
comment by lectrick · 2014-10-31 · in How long do GUIDs really need to be? -
…snowflake Twitter post (which has since been removed). Looks like Twitter has retired Snowflake: https://github.com/twitter/snowflake https://github.com/mumrah/flake-java
comment by mumrah · 2014-08-20 · in Show HN: Decentralized, k-ordered unique IDs in Clojure -
He could have just Googled. I think Twitter's Snowflake came to some very similar conclusions. https://github.com/twitter/snowflake/ I even wrote something in Ruby as an idea based off it (although it hasn't been used in production yet)…
comment by lectrick · 2014-05-18 · in Distributed ID Generation and Bit Packing -
…[5] (snippit'ed here [6]). [1] http://code.flickr.net/2010/02/08/ticket-servers-distributed... [2] https://github.com/twitter/snowflake [3] https://github.com/boundary/flake [4] http://boundary.com/blog/2012/01/12/flake-a-decentralized-k-..…
comment by klapinat0r · 2013-10-28 · in Best Practices for Designing a Pragmatic RESTful API -
…scales, so I don't see time getting much easier barring some revolutionary timekeeping system. [0] https://github.com/twitter/snowflake
comment by ConstantineXVI · 2013-01-02 · in iOS 6: Do Not Disturb mode stays on after scheduled time -
Twitter played with writing a UUID service a while back called Snowflake. https://github.com/twitter/snowflake
comment by chuhnk · 2012-12-29 · in Show HN: UUID as a Service -
…really articulate who was put off by their use of Rails? Edit: To avoid confusion, Snowflake as in https://github.com/twitter/snowflake , not "snowflake schema".
comment by encoderer · 2012-08-13 · in App.net funded with $500,000. -
…you're assuming that Twitter sees a constant rate of signups wrt time, which I highly doubt. [1] https://github.com/twitter/snowflake/blob/master/src/main/sc...
comment by joshma · 2012-07-31 · in Some Fresh Twitter Stats (as of July 2012, Dataset Included) -
Read up on Snowflake. https://github.com/twitter/snowflake 64 bits broken up into a timestamp, machine id, and id number.
comment by epc · 2012-05-05 · in Is Twitter's tweet ID unique for all the users? -
…their technology to meet their requirements, thanks for the link. Of course Twitter have snowflake: https://github.com/twitter/snowflake and many other tools such as UUID[4r] - see an old discussion on HN:…
comment by codebeaker · 2012-05-04 · in High concurrency friendly IDs in Rails without SQL locks. -
For those interested, there is also Snowflake by Twitter on GitHub https://github.com/twitter/snowflake
comment by alpb · 2012-01-13 · in Flake: A Decentralized, K-Ordered Unique ID Generator in Erlang -
…ids, but needed ids that increase over time (so that you can sort tweets by them). hence, snowflake: http://github.com/twitter/snowflake
comment by ryansking · 2010-11-24 · in Twitter IDs to roll past 53 bits in a couple days (may break javascript apps) -
…a different fashion which is causing the issue. This seems to be the relevant id generating code: https://github.com/twitter/snowflake/blob/master/src/main/sc...
comment by sbov · 2010-11-23 · in Twitter IDs to roll past 53 bits in a couple days (may break javascript apps) -
Curious about this in snowflake (mentioned in slides): https://github.com/twitter/snowflake/blob/master/src/main/sc... def nextId(): Long = synchronized { var timestamp = timeGen() if (lastTimestamp > timestamp) { log.warning("clock is…
comment by devmonk · 2010-11-22 · in NoSQL at Twitter -
…is a network service for generating unique ID numbers at high scale with some simple guarantees. http://github.com/twitter/snowflake Kellan (from Flickr) has a neat post about Ticket servers : http://laughingmeme.org/2010/02/08/ticket-serve…
comment by iampims · 2010-10-14 · in Why Reddit's been slow lately (dev group post) -
▲ 3
Snowflake: Twitter's network service for generating unique IDsstory by jashmenn · 2010-09-19 · 0 comments