Slashdot Mirror


Facebook Goes To 64 Bit User IDs

NewsCloud writes "Facebook has announced to developers that they are moving to a 64 bit user ID in November. At 32 bits, the current ID allows nearly 4.3 billion user accounts. Yet, despite having only 47 million users today, Facebook's move to 64 bits will allow it to have more than 18 quintillion (18,446,744,074,000,000,000) user accounts. Of course, there are currently only about 6.5 billion people in the world. Is Facebook setting their sights beyond Earth or just trying to avoid what happened when Slashdot ran out of space for comment IDs last year. Perhaps they are planning to implement personas."

41 of 144 comments (clear)

  1. Reminds me of a Facebook group by langelgjm · · Score: 5, Funny

    Reminds me of a Facebook group: "If this group reaches 4,294,967,296 it might cause an integer overflow."

    --
    "Anyone who [rips a CD] is probably engaging in copyright infringement." - David O. Carson
    1. Re:Reminds me of a Facebook group by Nom+du+Keyboard · · Score: 3, Funny

      "If this group reaches 4,294,967,296 it might cause an integer overflow."

      Obviously that group number wasn't computed using Excel.

      --
      "It's the height of ridiculousness to say for those 9 lines you get hundreds of millions."
    2. Re:Reminds me of a Facebook group by Anoria · · Score: 3, Insightful

      The "We may not reach 4,294,967,296 members but..." discussion thread has been breaking the sad news about 64-bit storage for several months now.

  2. Network ID by Deltaspectre · · Score: 3, Informative

    One thing to keep in mind is the userid is network ID + user ID for that network
    For my user ID the network ID takes up the first 6 digits

    Although I have heard that they stopped this practice and are just assigning IDs

    --
    My UID is prime... is yours?
    1. Re:Network ID by Tablizer · · Score: 3, Insightful

      Why did they used to make part of the ID be a network identifier? What if you need to move users to other networks? I can perhaps see how it could make it possible to assign unique id's without central communication by making blocks of numbers to be pre-assigned by different regions, etc. But as a direct network allocator, it seems problematic.

      And why we are on the topic of ID's, why are Microsoft product ID's so damned long? They use letters, which gives them 35-base number set (including the digits, excluding "o") which in theory would mean you don't need long strings. Is this to reduce trial-and-error loop hacking? It seems like it would make for a lot of help-desk calls because the chances of mistyping is large.

  3. link to slashdot's comment id problem by endx7 · · Score: 3, Informative

    The "Slashdot ran out of space for comment IDs" link doesn't work.

    You can get to the referenced article at:
    http://meta.slashdot.org/article.pl?sid=06/11/09/1534204

  4. Facebook loners rejoice! by Bruce+McBruce · · Score: 5, Funny

    You can be your own 5000 best friends.

    1. Re:Facebook loners rejoice! by Anonymous Coward · · Score: 5, Funny

      You're assuming I can stand myself...

  5. Population growth by Mostly+a+lurker · · Score: 3, Funny

    Facebook's move to 64 bits will allow it to have more than 18 quintillion (18,446,744,074,000,000,000) user accounts. Of course, there are currently only about 6.5 billion people in the world. Is Facebook setting their sights beyond Earth ...?
    My assumption is that Facebook is betting on the success of the Vatican's campaign against birth control. I just cannot imagine extra terrestrials being willing to put up with the multi-year latency required to post and retrieve photos from an earth-based server.
    1. Re:Population growth by foobsr · · Score: 2, Funny

      I just cannot imagine extra terrestrials being willing to put up with the multi-year latency required to post and retrieve photos from an earth-based server.

      They have invented instant messaging.

      CC.

      --
      TaijiQuan (Huang, 5 loosenings)
  6. thank god by friedman101 · · Score: 5, Funny

    finally I can register my bacteria colony!!

    staphylococcus aureus #19392133943904 is in a relationship with staphylococcus caprae #93939394839483934

    1. Re:thank god by Firehed · · Score: 5, Funny

      What the hell? That's my S. caprae, the dirty slut!

      --
      How are sites slashdotted when nobody reads TFAs?
    2. Re:thank god by Dr.+Photo · · Score: 4, Funny

      Can germs get V.D.?

  7. News? by JRGhaddar · · Score: 5, Insightful

    This has to one of the dumbest articles to reach the slashdot headlines.

    So basically facebook changed there maximum users from a huge number to an even bigger number.

    Are we going to post a news story everytime google adds to their storage system?
    or microsoft adds another bloated line of code?
    or everytime the telco's build a tower?

    1. Re:News? by Joe+U · · Score: 5, Funny

      HTML, not [i][b]BBCode[/b][/i]. OK?

    2. Re:News? by larry+bagina · · Score: 2, Funny

      or at least change the name from firehose to high velocity diarrhea.

      --
      Do you even lift?

      These aren't the 'roids you're looking for.

    3. Re:News? by Anonymous Coward · · Score: 3, Informative

      Are we going to post a news story everytime google adds to their storage system?

      Answer: Why yes, I believe they will.

  8. Two-Faced by Nom+du+Keyboard · · Score: 5, Funny

    Clearly this is meant to accommodate two-faced people, people of multi-faced discrimination, and Hexadecimal.

    --
    "It's the height of ridiculousness to say for those 9 lines you get hundreds of millions."
  9. i for one. by sh3l1 · · Score: 2, Funny

    I for one will take go with Facebook's initiative to welcome our new alien overlords who will certainly see Facebook's superiority to Myspace.

    --
    Help Me! I'm trapped in the tubes! Oh noes! Here comes a internet!
  10. Not just user IDs by digital+bath · · Score: 5, Interesting

    TFA says nothing specific to 'user ids' - it says object ids in general. I assume this includes things like comment ids, event ids, etc - which makes overflowing the 32 bit limit much more reasonable.

    --
    find / -name "*.sig" | xargs rm
    1. Re:Not just user IDs by DarthThor · · Score: 2, Informative

      It does actually "Up until this point, all of our user IDs have been small enough that 32 bits is sufficient to store them all. In the not-so-distant future, we will begin using 64 bit object IDs in some places. So, the numbers will become to big to handle in some situations" The wording is actually pretty shocking so it could well be that the userid's are being made 64 bit but comments etc. are, or it could be they are making userid's 64 bit also.

    2. Re:Not just user IDs by jd · · Score: 3, Insightful

      My interpretation (which is just as invalid as everyone else's, Facebook included) would be that they are abolishing UserIDs altogether and switching to a 64-bit universal ID. That kinda makes sense, as it would make defining relationships between any two types of object easy.

      --
      It's a small world and it smells funny; I'd buy another if it wasn't for the money; Take back what I paid (SoM)
  11. 32 bit constraint kind of forces a big leap by istartedi · · Score: 4, Informative

    If you think you might ever have more than 2^32 of something, you kind of have to go to 2^64. Yes. It's an obscene ammount of possibilities; but it's the next biggest size. You really don't have much of a choice here. You could implement 5-byte numbers, but it'd be a PiTA. No CPUs have native 5-byte ints. The progression has always been a doubling of int size.

    If that doesn't make sense, you shouldn't be on Slashdot. Maybe you should be someplace else... like Facebook maybe?

    --
    For all intensive purposes, "whom" is no longer a word. That begs the question, "who cares"?
    1. Re:32 bit constraint kind of forces a big leap by BuGless · · Score: 2, Informative

      Facebook uses PostgreSQL as a backend, not MySQL, and PostgreSQL doesn't have a 48-bit datatype, so in their case it's either 32-bit or 64-bit.

  12. Spammers by kryten250 · · Score: 2, Funny

    They have to do something, what with all those pretty girls wanting to get to know me and give me private shows...

    --
    FlyingPizzas.com, for the tasteful hermit
    1. Re:Spammers by dricci · · Score: 4, Funny

      I think you're confusing Facebook with MySpace, which doesn't have this problem as they appear to still use a flat-file database updated in notepad.

  13. It's funny. Laugh. by SanityInAnarchy · · Score: 4, Informative

    So basically facebook changed there maximum users from a huge number to an even bigger number.

    The difference being that the current (huge) number was not quite sufficient to register all human beings on the planet, so we have to wonder why they did this. 32-bit integers are kind of the default, so most people wouldn't worry about it. So why are they doing this?

    If you look, this article is filed under "It's funny. Laugh." And it is, really. Either Facebook is doing this for no good reason, or someone actually has some justification for going to the time and expense to change their database in this way. And so... Are they really planning on registering more human beings that exist?

    I realize it's not funny to you now, as you've had to have the joke explained to you...

    Are we going to post a news story everytime google adds to their storage system?

    If they suddenly went from 2 gigs of email to 5 exabytes, then yes.

    Also, keep in mind that Slashdot did cover when Gmail was first released with that 2 gigs, which seemed impossibly huge, and was at least one or two orders of magnitude larger than their closest competitor.

    --
    Don't thank God, thank a doctor!
    1. Re:It's funny. Laugh. by msormune · · Score: 2, Funny

      Geeks get lost in the details, because it's their job to get lost in the details, and find their way out. Suits manage the bigger picture. If a geek starts to worry about the big picture, he/she is in danger of becomng a suit :)

  14. Number of People by Bullseye_blam · · Score: 4, Insightful

    The other thing to remember is that there might be a certain number of people in the world at any one time, but that people are born and die within that time [and old ones won't be deleted]. I don't think it's inconceivable that Facebook might reach their current limit in 20-25 years.

  15. I can see a few reasons by Jay+L · · Score: 5, Insightful

    Even it if it's just user IDs, and not object IDs as another user posted...

    * 64-bit user IDs are easier to partition. They could be using the top N bits as a database ID.

    * They may want to allocate the IDs randomly instead of sequentially. 64-bit IDs would involve fewer collisions.

    * We don't know what their account churn rate is; if people sign up, forget, and create new accounts again frequently, they could have many more than 47 million dormant accounts sitting around.

    A 32-bit ID really does get cramped when you have a large user base.

  16. I guess they believed the hype by pushing-robot · · Score: 3, Funny

    64 bits are WAY FASTER than 32 bits!

    --
    How can I believe you when you tell me what I don't want to hear?
  17. but... by RockoTDF · · Score: 2, Funny

    ...is it backwards compatible with web 1.0...?

    --
    There is more to science than physics!

    www.iomalfunction.blogspot.com
  18. Ha ha, but seriously. by Kaz+Kylheku · · Score: 5, Informative

    Not all of the bits of an ID are necessarily there for uniqueness. Wider ID's allow for features such as check digits (being able to tell whether an ID is valid without doing an existence query in a remote database) and other information. Namely, various immutable properties of the object that is denoted by the ID can be stored in the ID itself. This is similar to using spare bits within a machine address for tagging an object with a type or other attribute. It may be very useful to be able to tell something about an object just from the ID alone.

  19. Not actually what they said by a_sdh · · Score: 2, Informative

    They actually are increasing the Object ID to 64-bits. The announcement is confusingly written, given, but objects in their system are things like events, groups, and basically everything. It's easy to imagine that they would hit the 32-bit limit on these at some point.

  20. Finally by Romicron · · Score: 2, Funny

    Finally, a little sensitivity for those of us with DID [wikipedia.org]

  21. This is the dumbest article... by ChronosWS · · Score: 2, Funny

    So they changed the column type of userId from INT32 to INT64. Who gives a fuck? It would be much less expensive for Slashdot to simply post SQL change logs than to have editors on the clock.

    We need the ability to mod stories, so that the editors can more clearly see when they aren't doing their job.

  22. In other news... by suv4x4 · · Score: 4, Funny

    I just changed the type of column "content" on my blog from "text" to "mediumtext". I'm ready to give a press conference as to the reason behind my decision to all interested.

    1. Re:In other news... by ABoerma · · Score: 3, Insightful

      > I'm ready to give a press conference as to the reason behind my decision to all interested.

      ie, "I will definitely call my mom about this."

  23. My guess: Security, segementation, multiple log in by drolli · · Score: 2, Interesting

    -you can harden your security by populating the user-id space sparsely. Somebody who is guessing for an user id will have an hard time.

    -It can make things easier to have your user groups organized according to geographic location, company issuing th id (e.g. local branch), etc.

    -Multiple log ins. Who knows. maybe it is easier to associate internally several uids with each uid (could make things more static).

    So let's say:

    10 bit for segmentation
    20 for checksumming
    4 for multiple logins

    leaves only 29 bit as payload

    Or somebody was just dumb and wanted to make sure he is not fired until all applicaitons are switched

  24. It's not User IDs. by Mahjub+Sa'aden · · Score: 2, Informative

    If you read the article, it refers to event IDs. Which means, of course, that everything (?) that happens on Facebook is assigned an integer and they were running out of integers or at least foresaw that possibility. This is much, much more reasonable than wanting to register more people than exist on the earth right now. But it makes it a lot less newsworthy, and a whole lot more boring.

    --
    What is is all that is. Isn't that obvious?