Backend data storage

Hi Is it possible to have Mongodb or any other database running in the background when deploying to streamlit share? or any other suggested options?

thank you

1 Like

Follow my 2 cents:

Quick answer: Yes, it’s possible
Should you do it? Not yet

The container where your app runs is disposable, so you can lose all your data. If it’s not a problem, you can add a sqlite, mysql or any other debian package to it (or install manually from your code).

If you need to keep the data, you should rely on external services like AWS DynamoDB. However, handling secrets is not possible yet. But it looks like streamlit is working on this one (


1 Like

do you find a best way to use Mongodb or any other database ?
I use sql server and run in localhost worked for me but i could not deploy it…