CodeIgniter Forums
Auth System for a Large Number of Users - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Choosing CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=8)
+--- Thread: Auth System for a Large Number of Users (/showthread.php?tid=73874)



Auth System for a Large Number of Users - simon - 06-16-2019

I'm being asked to look at technologies to use for a site that could potentially have millions of registered users. Current site has over 500,000.

The actual site itself will only get moderate traffic, perhaps 10-20 thousand visits per day. Database activity from those might only result in a few thousand records being added, plus an activity log, as most visits will be look ups.

Of the registered users, most will only ever visit the site once a year to update their details, and many not even that.

Comments from forum user Kaosweaver indicate that CI won't have any issues at this scale.


My question is about the authentication system. I've used Ion Auth and Community Auth with a few hundred users, but will they happily scale to millions?


RE: Auth System for a Large Number of Users - Poetawd - 06-16-2019

Hello Sir !

There should be no problem at all ! But, you should be careful with the server you are running your website.

I mean, I have a table with 2.000.000 records in my website and CI + MySQL handles it just fine... Since user data are stored in MySQL also, you should be OK...


RE: Auth System for a Large Number of Users - InsiteFX - 06-17-2019

You should use session file or temp handling for the auth system.

Don't forget that database sessions use locking.


RE: Auth System for a Large Number of Users - simon - 06-17-2019

(06-16-2019, 04:31 PM)Poetawd Wrote: Hello Sir !

There should be no problem at all ! But, you should be careful with the server you are running your website.

I mean, I have a table with 2.000.000 records in my website and CI + MySQL handles it just fine... Since user data are stored in MySQL also, you should be OK...

Thanks for your comments and good to hear that CI & MySQL are handling the load.


RE: Auth System for a Large Number of Users - simon - 06-17-2019

(06-17-2019, 03:08 AM)InsiteFX Wrote: You should use session file or temp handling for the auth system.

Don't forget that database sessions use locking.

Thanks InsiteFX. When you say to use session file for the auth system, this is separate to the actual storage of the user's registration details, right?

I've mostly used database storage for session data in ASP.NET Identity, but always used file system based sessions in PHP. I was thinking about changing to database stored sessions for this project, so your reminder about locking has given me something to think about.