celluloid / celluloid-zmq

UNMAINTAINED: See celluloid/celluloid#779 - Celluloid actors that talk over the 0MQ protocol
https://celluloid.io
MIT License
83 stars 25 forks source link

Multi-process example. #46

Open digitalextremist opened 9 years ago

digitalextremist commented 9 years ago

It would be great to have an example which runs in multiple processes which communicate between each other, and not just separate threads which communicate within the same process.

Asmod4n commented 9 years ago

between multiple processes involes tcp or unix sockets. because inproc doesn't work anymore.

You cannot share a zmq context between several processes and have to create one for each process, you also have to coreate the context in the main process after you spawned all others.