ramgarlic, If you think you need #Python's
multiprocessing
module, you really need #Golang instead.#Python has decent support for I/O bound concurrency with
asynio
,threading
andconcurrent.futures
.For simple, “embarrassingly parallel" CPU-bound workloads,
concurrent.futures.ProcessPoolExecutor
is OK.For more complex scenarios, the
multiprocessing
module, pretends to be as “simple" asthreading
but is a monster of complexity and super hard to debug.At this point, just use Go.
Add comment