Memory management in Streamlit dashboards

@patpal Thank u for bringing this up to the forum. You will find ur answer in:

If u want to limit users u can do it in code, by implementing a rate limiter and check if the rate exceeds when in the beginning of

if rate > 20:
st.error(“max users exceeded”)

For counting the number of users, I suggest using queue, python’s Counter (Thread safe counters).

TLDR:Maximum number of concurrent users for streamlit app - #2 by randyzwitch