3 ms·
Is that really something you want to do in-memory? Once you have to start multiple worker processes or application servers behind a load balancer, you'll have t
by raziel2p 10y ago
Is that really something you want to do in-memory? Once you have to start multiple worker processes or application servers behind a load balancer, you'll have to re-implement it with some sort of shared persistant store like Redis.
- icebraining 10y agoNot 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#sharing-state-between-processes https://docs.python.org/3/library/multiprocessing.html#shari...
- cwilkes 10y agoI think the OP was talking about different VMs behind a load balancer where there is no shared memory at all.
- icebraining 10y agoWasn'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.