# Re: Inter-Process Messaging

**URL:** <https://www.ruby-forum.com/t/re-inter-process-messaging/116872>\
**Category:** Ruby\
**Created:** [October 10, 2007, 5:31pm UTC](https://www.ruby-forum.com/t/re-inter-process-messaging/116872 "2007-10-10T17:31:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![piet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a9adbd/32.png) [@piet](https://www.ruby-forum.com/u/piet)\
**Post date:** [October 10, 2007, 5:31pm UTC](https://www.ruby-forum.com/t/re-inter-process-messaging/116872/1 "2007-10-10T17:31:58Z")

</div>

> polling to check if a message is waiting in the shared memory?

Check [http://sysvipc.rubyforge.org/](http://sysvipc.rubyforge.org/)

It offers support for IPC message queues (and also shared memory and  
semaphores if needed).  
No need for polling. You can request a message (of a certain type of  
needed), and your ruby process just holds until a message of that type  
is available on the queue.

I’ve used it for \> 1 year in a setup where a C++ process dispatches  
messages that are handled by several parallel ruby processes.

Very light-weight and must have handled millions of messages without any  
problem by now. (won’t work on Windows though)

Piet.
