Dash.jl icon indicating copy to clipboard operation
Dash.jl copied to clipboard

Multi threading with run_server

Open lucsoretOUI opened this issue 3 years ago • 2 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 !

lucsoretOUI avatar Jun 17 '21 08:06 lucsoretOUI

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?

schienstockd avatar Jul 18 '22 03:07 schienstockd

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?

iuliancioarca avatar Nov 28 '22 08:11 iuliancioarca