ezmobius / nanite

self assembling fabric of ruby daemons
Apache License 2.0
735 stars 64 forks source link

How to initiate a sync request? #15

Open leomayleomay opened 15 years ago

leomayleomay commented 15 years ago

I'm working on a test for our Nanite agent, but the request initiated by Nanite.request are all async, which means, i can get nothing back from my agent before the test finishes.

Can I initiate a sync request? Thank you

roidrage commented 15 years ago

There is no synchronous request in Nanite due to the asynchronous nature of the broker in between. Your best bet might be to try moqueue which patches the amqp gem to use a basic in-memory queue instead of a full-blown broker like RabbitMQ.