plotly / Dash.jl

Dash for Julia - A Julia interface to the Dash ecosystem for creating analytic web applications in Julia. No JavaScript required.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multi threading with run_server

lucsoretOUI opened this issue · comments

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 !

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?

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?