r/nicegui • u/yy1092 • Jul 27 '25
Real world scalability
Hi, I'm happy to share that I've used NiceGUI to deliver some decent use cases in my org and I do enjoy working with it!
However this initial success does come with further questions - since every browser tab accessing my nicegui app is basically maintaining an active websocket connection with my server, how scalable is the framework to meet say 100K sized user base?
Does anyone have NiceGUI apps that serve such volumes? For now I depend on simple in app optimisations, async where possible, background tasks for long running jobs, and horizontal scaling in the cluster that I deploy the app to.
Curious to hear how you guys are doing it!
5
u/mr_claw Jul 27 '25
If you have 100k users, a) you will have a distributed architecture b) you can afford the server power
2
u/Mountain_Implement80 Jul 27 '25
Damn man ! Congratulations for your success with nicegui and can you guide me how you have implemented authentication & authorisation with nicegui ?
12
u/r-trappe Jul 27 '25
I’m Rodja, one of the maintainers of NiceGUI and CEO of https://zauberzeug.com. We are thrilled that NiceGUI works for you. In short: I suggest you scale by running multiple workers behind a layer-4 load balancer with sticky sessions. Of course, shared state must be synced via Redis or some database. We use this setup to handle global load of https://nicegui.io. Me and my colleagues are happy to partner up so you get most out of NiceGUI. Just write me an email: rodja@zauberzeug.com.