<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Just to clarify - if you're consuming RabbitMQ messages then amqp_selective_consumer or amqp_gen_consumer will be the simplest choice. All the other advice is fine and good, but the OP is clearly relatively new to Erlang/OTP and those simplifying behaviours are clearly more appropriate to his needs.<div><div><br><div><div>On 18 Apr 2013, at 09:15, Ali Sabil wrote:</div><blockquote type="cite"><div dir="ltr">I case you need something that is OTP compliant while allowing you to drive the receive loop yourself, you can take a look at gen_process: <a href="https://github.com/asabil/gen_process">https://github.com/asabil/gen_process</a> which is a lower level alternative to gen_server and gen_fsm<div>

<br></div></div></blockquote><div><br></div><div>I've not seen this before - it sounds interesting so I'll take a look. :)</div><div><br></div><div>Cheers,</div><div>Tim</div></div></div></div></body></html>