Skip to content

Multi threading with run_server #110

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

Open
lucsoretOUI opened this issue Jun 17, 2021 · 2 comments
Open

Multi threading with run_server #110

lucsoretOUI opened this issue Jun 17, 2021 · 2 comments

Comments

@lucsoretOUI
Copy link

Hello everyone,
Thanks to this package, I have a deployed DashBoard fully functional (which is great).
I would like to handle multi-user in a better way using multi-threading.

In the Dash python counterpart, the run_server function has a processes argument which I guess allow to do this. However, there is no such argument in Dash.jl

I tried to run @spawn run_serve(...) but without success : even if I started Julia with several threads (let's say 4), only 1 was used.

Do you have any idea on how to handle multi-threading with Dash.jl to handle multi users ? Thanks a lot !

@schienstockd
Copy link

On the same topic but a different focus - Can you create a Dash app with multiple threads to run tasks in the background? Say I have an app that provides the user with different tasks to execute. Could these run in separate threads to the Dash app?

@iuliancioarca
Copy link

I have a similar issue. I built an app where users can fetch some data from a database, process in backend and display in frontend independently (no user specific state stored in backend). How can I adapt the app to process these requests concurrently?

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

3 participants