How many concurrent users can a Streamlit Community Cloud WebApp host?

I have a really urgent question. I’m deploying a Streamlit App and given that is an AI App Developed by the Supreme Court of Justice in Mexico we expect 100’s of concurrent users.

Would the Streamlit Community Cloud Deployment be able to manage that traffic? We only call API’s, we do not load an ML model directly into the app, everything is in a database so no real data storage + we cache all our functions.

An answer or a guiding reasoning would really help, Im freaking out because we are deploying this week.

2 Likes

So I ran a stress test that came out to around 70 concurrent users.
I filled out the form to request more resources since my app is non-profit, made for the Supreme Court of Mexico. But since we release tomorrow and expect higher numbers I was wondering if there’s anyone who could help me resolve my petition in the next few hours.

Hey @Rtpenar,

Thanks for sharing this question! The answer depends on how resource-intensive your app is and how you’ve designed the app (i.e. are you caching expensive operations, are you loading a ton of data, etc.). I’d recommend checking out this blog post for guidelines on optimizing your app.

2 Likes

Thank you Caroline, I’ll be sure to read the documentation and apply these practices to our app. Thank You so much!

1 Like

For availability and load balancing, consider putting your app in a Docker container and running it in a cloud like Amazon ECS.

1 Like

Hi @Rtpenar, hope your app is doing well by now. I did have some experience with this because of my app mathgpt.streamlit.app have had in some moments 100’s of users or more, and most of the time the Community Cloud has been enough, so the app has been active since the beginning of 2023 with no major difficulties. Hope this is of help!
Btw, I’m from Mexico too :mexico: :nerd_face:

4 Likes

Thanks, I’ll look into that

Awesome, thanks for the insight. It helps a lot. Saludos desde Monterrey!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.