I hope this message finds you well. I have developed a web site using Streamlit and due to environmental constraints, I am only able to deploy it on a local service host within our LAN (running on a Windows system). The user base is approximately 100 people or less. I have executed my application using streamlit run app.py and have registered it as a service with NSSM to ensure it restarts automatically in the event of a system anomaly.
Could someone please advise if there are any potential issues with deploying in this manner in a production environment? (Please note that I can only use the LAN and cloud services are not an option.)
Your insights would be greatly appreciated. Thank you in advance for your time and assistance.
Aside from your firewall settings which may block it, a Streamlit app is automatically published as a LAN-accessible app when you streamlit run it. So yes, that’s a valid thing to do. As for scalability, it’s going to depend on your machine’s capabilities and how resource-intensive your app is. You can try it out and monitor your machine’s resources to confirm if the app is staying within workable resource limits. If you find that it starts consuming too much memory or something, you might need to optimize your app.
Thank you for your response.I have a machine with 12 cores and 20 threads,along with 64GB of RAM.I’m deploying my Streamlit app using the simplestreamlit run app.pymethod.With the appropriate use of@st.cache_datawithin the app,do you think it can handle around 100 concurrent users?
Possibly. I don’t know what your app does internally, so I couldn’t really say for certain. Unless you have a reason not to, I’d give it a try and see how it does.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.