Dispatching and scheduling electrons/dispatches, how should they happen ? #522
Replies: 3 comments 10 replies
-
In the ideal world, we would want to compare the performance analysis across all 9 options for electrons and dispatches and account for each constraint. This would be useful in discussing pros and cons of each option. |
Beta Was this translation helpful? Give feedback.
-
At the cost of additional complexity on our part, what if we support both sync executors -- which are easier to write -- and async executors -- as good remote executors ought to be? For instance, we could await on coroutine executors and run sync executors it in a preexisting Thread/ProcessPool using loop.run_in_executor() and await the returned Future. |
Beta Was this translation helpful? Give feedback.
-
There were several discussions that happened over the past week about this and I'll try my best to summarize them in this comment:
|
Beta Was this translation helpful? Give feedback.
-
In the case of running a single server-ed dispatcher, there are multiple ways to run both the electrons and dispatches
Few of them are
Methods
a. asyincio (concurrent)
b. Threads
c. Processes
With this, we have the following matrix
Any discussion on which one to choose and why ?
Constrains :
Beta Was this translation helpful? Give feedback.
All reactions