Hi,
So, I am writing a twisted server. This server spawn multiple child
processes using reactor spawnProcess that initializes a process protocol.

Now, each of the childprocess receives some REST requests. Each process has
a dict that acts as cache.
Now, I want to share dict across processes.
In general, python has SharedMemoryManager in multiprocessing module which
would have helped.
https://docs.python.org/3/library/multiprocessing.shared_memory.html#multiprocessing.managers.SharedMemoryManager.SharedMemory
But since I am using twisted internal process implementation, how do I
share this dict across the processes so that all the processes use this
common cache?
Thanks
Waqar
_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to