3 ms·
They do have the multiprocessing library and you can use that to do some primitive sort of caching between processes but it's not ideal. The pattern I've used b
by hangonhn 7y ago
They do have the multiprocessing library and you can use that to do some primitive sort of caching between processes but it's not ideal. The pattern I've used before is to use something like Redis to do the caching and then used multiprocessing to create a coordinator process to coordinate between all the worker processes. Multiprocessing is limited in what sort of things you can pass between processes but you have just enough primitives to do some coarse grain coordination.