ramgarlic,
@ramgarlic@fosstodon.org avatar

If you think you need 's multiprocessing module, you really need instead.

has decent support for I/O bound concurrency with asynio, threading and concurrent.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" as threading but is a monster of complexity and super hard to debug.

At this point, just use Go.

meejah,
@meejah@mastodon.social avatar

@ramgarlic You could also use several different languages by communicating with Crossbar.io / Autobahn (routed Pub/Sub + RPC framework with clients in many languages). The server is (the client supports asyncio and python, and there are also Go WAMP client libraries.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • python
  • rosin
  • osvaldo12
  • thenastyranch
  • DreamBathrooms
  • khanakhh
  • magazineikmin
  • InstantRegret
  • Youngstown
  • slotface
  • mdbf
  • love
  • kavyap
  • GTA5RPClips
  • everett
  • Leos
  • cubers
  • ethstaker
  • Durango
  • ngwrru68w68
  • tacticalgear
  • modclub
  • cisconetworking
  • provamag3
  • anitta
  • normalnudes
  • tester
  • megavids
  • JUstTest
  • All magazines