Y
Hacker News
new
|
ask
|
show
|
jobs
by
icebraining
3339 days ago
Not really, you can use a multiprocessing.Manager to share a plain old dict or list across multiple worker processes:
https://docs.python.org/3/library/multiprocessing.html#shari...
1 comments
cwilkes
3339 days ago
I think the OP was talking about different VMs behind a load balancer where there is no shared memory at all.
link
icebraining
3339 days ago
Wasn't my impression (using worker processes in the same machine is common), but fair enough. On the other hand, message passing across machines is overrated. We run a SaaS service on 25 VMs with no communication between them for regular operation.
link