Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallel query computation question #20

Closed
99snowleopards opened this issue Dec 18, 2019 · 1 comment
Closed

Parallel query computation question #20

99snowleopards opened this issue Dec 18, 2019 · 1 comment

Comments

@99snowleopards
Copy link

thanks for releasing this awesome repo - it's very helpful!

I'd greatly appreciate some clarification on a basic Streamlit concept: I have a Streamlit app running on my laptop. I'd like to share the url with some friends, and would like the computation of any query based on the user inputs from each instance of the app to run in parallel, so any user would have to wait the same amount of time as a single user of the app.

Does Streamlit already handle this (via Tornado), or do I have to build in concurrent computation in my code?

I'm posting this query here as you have made an app available to multiple users that are able to use the app.

I hope my question makes sense. Looking forward to your reply.

@MarcSkovMadsen
Copy link
Owner

MarcSkovMadsen commented Dec 19, 2019

Hi @99snowleopards

Thanks for asking.

The short answer is that Streamlit/ Tornado already handles this.

Each time a user navigates to a streamlit app in his browser an independent session is opened and Streamlit/ Tornado handles each session in parallel.

Marc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants