What happend if room id is overflow ?

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

Posts: 116
Joined: 15 Mar 2011, 04:43

What happend if room id is overflow ?

Postby grhwood » 12 Apr 2013, 11:08


I create dynamic room a lot, I notice that room id is an integer so max value is less then 2 billion, my app doesn't go to that value but may be. So could you tell me what will happend if the room id is overflow ?

User avatar
Site Admin
Posts: 21700
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: What happend if room id is overflow ?

Postby Lapo » 12 Apr 2013, 11:17

This seems to be a pretty popular question :)
Room ids and User ids are auto-increment integers.

This is what happens: an Integer can handle 2^32 values, (4.294.967.296 combinations) after which it will start back from zero.
If your Server generates 100K Rooms (or Users) per day it will take 42949 days to restart from zero which is approximately 117 years.

That's a cool uptime! :mrgreen:
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 22 guests