# My saas is 100% streamlit and it survived 1000 connected users and 4months without a service fail

**URL:** <https://discuss.streamlit.io/t/my-saas-is-100-streamlit-and-it-survived-1000-connected-users-and-4months-without-a-service-fail/86177>\
**Category:** Show the Community!\
**Created:** [November 22, 2024, 11:42am UTC](https://discuss.streamlit.io/t/my-saas-is-100-streamlit-and-it-survived-1000-connected-users-and-4months-without-a-service-fail/86177 "2024-11-22T11:42:38Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![JeanMILPIED](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/jeanmilpied/32/46209_2.png) [@JeanMILPIED](https://discuss.streamlit.io/u/JeanMILPIED)\
**Post date:** [November 22, 2024, 11:42am UTC](https://discuss.streamlit.io/t/my-saas-is-100-streamlit-and-it-survived-1000-connected-users-and-4months-without-a-service-fail/86177/1 "2024-11-22T11:42:38Z")

</div>

Go build your microSaas idea  
You can go in production with streamlit 🚀  
Really !

No js no react no java  
Nothing else than python and API

[https://raizuum.onrender.com/](https://raizuum.onrender.com/)

You can have a professional saas service running on streamlit. Believe me

My streamlit stack

- standard st.Page architecture
- standard streamlit components : mostly containers
- some little html code embedded for some custom buttons rendering

My full saas stack

- streamlit for frontEnd (separated from backend)
- python for BackEnd
- stripe for payments
- mongoDB for users connexion and usage database
- mailJet for email services
- no genAI
- Statcounter for usage metrics

The product is raizuum  
A resume booster for data experts  
It has been live with 99.9% availability and more than 950 users have registered and used it to scan their resume,

Check yourself here : [https://raizuum.onrender.com/](https://raizuum.onrender.com/)

Any tech questions, let me know!

---

<div class="post-metadata">

**Author:** ![coolpix](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/coolpix/32/52496_2.png) [@coolpix](https://discuss.streamlit.io/u/coolpix)\
**Post date:** [November 22, 2024, 2:39pm UTC](https://discuss.streamlit.io/t/my-saas-is-100-streamlit-and-it-survived-1000-connected-users-and-4months-without-a-service-fail/86177/2 "2024-11-22T14:39:29Z")

</div>

love it \<3 nicely done

---

<div class="post-metadata">

**Author:** ![SiddhantSadangi](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/siddhantsadangi/32/68895_2.png) [@SiddhantSadangi](https://discuss.streamlit.io/u/SiddhantSadangi)\
**Post date:** [November 24, 2024, 9:49am UTC](https://discuss.streamlit.io/t/my-saas-is-100-streamlit-and-it-survived-1000-connected-users-and-4months-without-a-service-fail/86177/3 "2024-11-24T09:49:37Z")

</div>

Just tried it, nice work!  
I’d only suggest streamlining the login process. Once logged in, a user should be automatically redirected to Boost with the login page hidden or disabled

---

<div class="post-metadata">

**Author:** ![JeanMILPIED](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/jeanmilpied/32/46209_2.png) [@JeanMILPIED](https://discuss.streamlit.io/u/JeanMILPIED)\
**Post date:** [November 24, 2024, 5:52pm UTC](https://discuss.streamlit.io/t/my-saas-is-100-streamlit-and-it-survived-1000-connected-users-and-4months-without-a-service-fail/86177/4 "2024-11-24T17:52:24Z")

</div>

Tha nks for support !

---

<div class="post-metadata">

**Author:** ![JeanMILPIED](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/jeanmilpied/32/46209_2.png) [@JeanMILPIED](https://discuss.streamlit.io/u/JeanMILPIED)\
**Post date:** [November 24, 2024, 5:52pm UTC](https://discuss.streamlit.io/t/my-saas-is-100-streamlit-and-it-survived-1000-connected-users-and-4months-without-a-service-fail/86177/5 "2024-11-24T17:52:57Z")

</div>

That s clever  
Added to backlog  
Many thanks for your support

---

<div class="post-metadata">

**Author:** ![Vincent4](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/vincent4/32/51270_2.png) [@Vincent4](https://discuss.streamlit.io/u/Vincent4)\
**Post date:** [November 25, 2024, 10:47am UTC](https://discuss.streamlit.io/t/my-saas-is-100-streamlit-and-it-survived-1000-connected-users-and-4months-without-a-service-fail/86177/6 "2024-11-25T10:47:08Z")

</div>

Awesome work 👍 ! I wonder how you customized your domain ahah ?

---

<div class="post-metadata">

**Author:** ![JeanMILPIED](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/jeanmilpied/32/46209_2.png) [@JeanMILPIED](https://discuss.streamlit.io/u/JeanMILPIED)\
**Post date:** [November 25, 2024, 9:15pm UTC](https://discuss.streamlit.io/t/my-saas-is-100-streamlit-and-it-survived-1000-connected-users-and-4months-without-a-service-fail/86177/7 "2024-11-25T21:15:49Z")

</div>

Thanks for the support,  
I deployed the app with RENDER,  
it is very similar to streamlit cloud with these differences:

- you can deploy a private repository from github
- you can manage your VM (and pay for more memory and CPU)
- you have no downtime if nobody comes visiting your site
- there is a free version and a payed version
- you can link to your domain name (I did not)

(note: I dont have any relationship with Render team)

---

<div class="post-metadata">

**Author:** ![Sitraka17](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/sitraka17/32/48772_2.png) [@Sitraka17](https://discuss.streamlit.io/u/Sitraka17)\
**Post date:** [November 26, 2024, 1:42pm UTC](https://discuss.streamlit.io/t/my-saas-is-100-streamlit-and-it-survived-1000-connected-users-and-4months-without-a-service-fail/86177/8 "2024-11-26T13:42:41Z")

</div>

congrats! Interesting to know that streamlite can be used for commercial purpose !!!

---

<div class="post-metadata">

**Author:** ![Arnab1](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/arnab1/32/31291_2.png) [@Arnab1](https://discuss.streamlit.io/u/Arnab1)\
**Post date:** [November 26, 2024, 10:40pm UTC](https://discuss.streamlit.io/t/my-saas-is-100-streamlit-and-it-survived-1000-connected-users-and-4months-without-a-service-fail/86177/10 "2024-11-26T22:40:52Z")

</div>

Have you seen any performance hit if the same button is clicked by multiple users at the same time? Are you using RQ and Redis?  
Do you have any st.forms in your code? Does it affects the performance?

---

<div class="post-metadata">

**Author:** ![craig.cicardo](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/craig.cicardo/32/52083_2.png) [@craig.cicardo](https://discuss.streamlit.io/u/craig.cicardo)\
**Post date:** [November 28, 2024, 1:42am UTC](https://discuss.streamlit.io/t/my-saas-is-100-streamlit-and-it-survived-1000-connected-users-and-4months-without-a-service-fail/86177/11 "2024-11-28T01:42:48Z")

</div>

How do you manage sign in with users and their payments? I’m struggling with storing users credentials to login, remembering usernames and seeing if they are subscribed/active via stripe. There’s a disconnect between logins and stripe so each time member logs in it thinks they didn’t sun ribs to the service yet. Very frustrating.

---

<div class="post-metadata">

**Author:** ![Rushmore](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/rushmore/32/29472_2.png) [@Rushmore](https://discuss.streamlit.io/u/Rushmore)\
**Post date:** [November 28, 2024, 4:21am UTC](https://discuss.streamlit.io/t/my-saas-is-100-streamlit-and-it-survived-1000-connected-users-and-4months-without-a-service-fail/86177/12 "2024-11-28T04:21:25Z")

</div>

This is a common dilemna but very solvable.

1. When a user creates an account, at that stage, create a customer via stripe API and store together with the user’s account credentials.

```auto
import stripe

## example code
user_registration_credentials = {"email":"email@example.com", "password":"password", "user_name":"username here", "customer_sub":False, "customer_id":None}

stripe.api_key = 'your-stripe-api-key-here'
payment_customer = stripe.Customer.create(email=user_registration_credentials['email']) 
payment_user_id = payment_customer["id"]  
user_registration_credentials["customer_id"] = payment_user_id

## store to database
db = database_to_store_user_cred ## I use the firebase user custom claims to store customer_id as part of user object. In this case it will store user_registration_credentials dictionary.

```

We say customer\_sub as `False` because they just made an account so they are obviously not subscribed.

1. We can then use this customer\_id key to check stripe for subscribed status of user like this.

```auto
import stripe

stripe.api_key = 'your-stripe-api-key-here'
customer_id_ = get_db_for_user()["customer_id"] ## function where you get stored user credentials object from database.
simple_product_key = ## the stored product key you made in stripe for user to make purchases. 

try:
   subscription = stripe.Subscription.list(customer=customer_id_, price=simple_product_key).data[0]
   sub_status = {"subscribed": subscription["status"] == "active"}
except IndexError:
   sub_status = {"subscribed": False}

if sub_status["subscribed"]:
   #give user access
else:
   #redirect to free aspect of app or restrict access to certain content. 

```

We can do this because stripe keeps track of the user’s subscription status. So when they click the url to access the subscription page and finalise the payment, stripe updates this automatically. If they do not make a purchase, stripe will be aware. You just have to call it via its api.

Very simple.

---

<div class="post-metadata">

**Author:** ![JeanMILPIED](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/jeanmilpied/32/46209_2.png) [@JeanMILPIED](https://discuss.streamlit.io/u/JeanMILPIED)\
**Post date:** [November 28, 2024, 7:26pm UTC](https://discuss.streamlit.io/t/my-saas-is-100-streamlit-and-it-survived-1000-connected-users-and-4months-without-a-service-fail/86177/13 "2024-11-28T19:26:47Z")

</div>

Thanks for the question  
I have used a simple strategy

1. A mongoDB database with a users table
2. In user table, a User object has attributes like login, hashed password, and payed
3. MongoDB API puts the user if he does not exist
4. If user pays, i have coded a routine to pass the user as payed = True or do nothing if it is not the 1dt payment
5. On raizuum, user buy credits, so I have a routine to compute remaining credits as a function of the number of past use and the number of past payments

Everything built from scratch to make it fit to my need

---

<div class="post-metadata">

**Author:** ![laurent1](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/laurent1/32/49398_2.png) [@laurent1](https://discuss.streamlit.io/u/laurent1)\
**Post date:** [December 2, 2024, 9:39pm UTC](https://discuss.streamlit.io/t/my-saas-is-100-streamlit-and-it-survived-1000-connected-users-and-4months-without-a-service-fail/86177/14 "2024-12-02T21:39:11Z")

</div>

Hello !

Great job. I’m in the process of deploying a apps for around 100 user and I’m wonder what is the VM capability (like ram and CPU) you have chosen for your apps ?

---

<div class="post-metadata">

**Author:** ![JeanMILPIED](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/jeanmilpied/32/46209_2.png) [@JeanMILPIED](https://discuss.streamlit.io/u/JeanMILPIED)\
**Post date:** [December 3, 2024, 11:31am UTC](https://discuss.streamlit.io/t/my-saas-is-100-streamlit-and-it-survived-1000-connected-users-and-4months-without-a-service-fail/86177/15 "2024-12-03T11:31:23Z")

</div>

Hi Laurent  
Good question  
I have chosen the smallest payed option on Render as I don t usually have more than 3 connected users at the same time  
2 CPU and 8Gb of RAM

---

<div class="post-metadata">

**Author:** ![Brock](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/brock/32/11170_2.png) [@Brock](https://discuss.streamlit.io/u/Brock)\
**Post date:** [December 4, 2024, 4:51pm UTC](https://discuss.streamlit.io/t/my-saas-is-100-streamlit-and-it-survived-1000-connected-users-and-4months-without-a-service-fail/86177/16 "2024-12-04T16:51:11Z")

</div>

Is there any chance your code for this project is available? I know that you discussed your stack above, but I am curious to see you wired this together. Containerized? MongoDB Atlas? Any recommendations on the signup/login flow on how you achieved that successfully and securely?

🎩 tip

---

<div class="post-metadata">

**Author:** ![Yi1](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/yi1/32/49530_2.png) [@Yi1](https://discuss.streamlit.io/u/Yi1)\
**Post date:** [December 6, 2024, 1:09pm UTC](https://discuss.streamlit.io/t/my-saas-is-100-streamlit-and-it-survived-1000-connected-users-and-4months-without-a-service-fail/86177/17 "2024-12-06T13:09:50Z")

</div>

I tested your work and it feels great. But i have some issues with the login session. After every browser refresh, it logs me out. And is it possible to add a history section/page, so that I can access the analysed results after refreshing or relogin. Overall, it is a good work that amazed me where u push streamlit into production

---

<div class="post-metadata">

**Author:** ![JeanMILPIED](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/jeanmilpied/32/46209_2.png) [@JeanMILPIED](https://discuss.streamlit.io/u/JeanMILPIED)\
**Post date:** [December 6, 2024, 6:59pm UTC](https://discuss.streamlit.io/t/my-saas-is-100-streamlit-and-it-survived-1000-connected-users-and-4months-without-a-service-fail/86177/18 "2024-12-06T18:59:26Z")

</div>

Great feedback Yi !  
The history session is in the dev roadmap, and could definitely be added,  
For login persistance after browser update, I surely need to optimise the st.cache.  
Any other technical clue ?

---

<div class="post-metadata">

**Author:** ![JeanMILPIED](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/jeanmilpied/32/46209_2.png) [@JeanMILPIED](https://discuss.streamlit.io/u/JeanMILPIED)\
**Post date:** [December 6, 2024, 7:52pm UTC](https://discuss.streamlit.io/t/my-saas-is-100-streamlit-and-it-survived-1000-connected-users-and-4months-without-a-service-fail/86177/19 "2024-12-06T19:52:24Z")

</div>

I can t remember getting customer complains if a button is hit by multiple customers at the same time  
And based on visitors stat, it is pretty rare I have multiple connected users at the exact same time

No redis  
No st.form

---

<div class="post-metadata">

**Author:** ![JeanMILPIED](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/jeanmilpied/32/46209_2.png) [@JeanMILPIED](https://discuss.streamlit.io/u/JeanMILPIED)\
**Post date:** [December 6, 2024, 7:53pm UTC](https://discuss.streamlit.io/t/my-saas-is-100-streamlit-and-it-survived-1000-connected-users-and-4months-without-a-service-fail/86177/20 "2024-12-06T19:53:51Z")

</div>

Very good question  
I am planning to make a boiler plate code for microsaas with python and streamlit  
Q1 2025  
Any interest?

---

<div class="post-metadata">

**Author:** ![Brock](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/brock/32/11170_2.png) [@Brock](https://discuss.streamlit.io/u/Brock)\
**Post date:** [December 6, 2024, 8:11pm UTC](https://discuss.streamlit.io/t/my-saas-is-100-streamlit-and-it-survived-1000-connected-users-and-4months-without-a-service-fail/86177/21 "2024-12-06T20:11:35Z")

</div>

Yes, absolutely! What you put together is an inspiration to take several ideas I have had floating around in my head and make them available to see if there is any interest/revenue potential.

[Next page](https://discuss.streamlit.io/t/my-saas-is-100-streamlit-and-it-survived-1000-connected-users-and-4months-without-a-service-fail/86177.md?page=2)
