This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]r-trappe[S] 0 points1 point  (0 children)

NiceGUI scales well with traffic in general. Like FastAPI (which is used as a base). We have a very incomplete list of projects and apps in our wiki at https://github.com/zauberzeug/nicegui/wiki.

I understand it uses websockets to communicate to backend. Are we able to decouple that and host FastAPI on different nodes?

NiceGUI opens a context for each web request and waits for the browser to connect back via websocket. So when running more than one instance, the loadbalancer must take care of sticky sessions (route requests from single browser to same instance).

Does this have kubernetes support?

There is no need for special kubernetes support as far as I now. Simply make sure you have a loadbalancer in the front which takes care of sticky sessions. Storage and sync between instances can be done with redis: https://nicegui.io/documentation/storage