Hi Guys,<br><br>I tried to bring this up in IRC but I couldn&#39;t get a bite.<br><br>I&#39;ve created an application in an attempt to learn rabbitmq via the ruby gem amqp.&nbsp;&nbsp; My basic setup is that I have a very simple web app out front that recieves requests and creates the initial message in the system.&nbsp; The flow goes like this:<br>
<br>Web App<br>Direct Exchange + Queue -&gt; do some work (forward 1 message) -&gt;<br>Direct Exchange + Queue -&gt; do stuff&nbsp; (forward 2 messages for each one)-&gt; <br>Direct Exchange + Queue -&gt; do stuff (forward 2 messages for each one) -&gt;<br>
Topic Exchange + routed to a queue (forward 0 messages for each one) -&gt; finish<br><br>Firstly, this is all being done on my laptop and I&#39;m hammering it with ab and 3 instances of the web app.<br><br>So firstly this is really slow.&nbsp; I was expecting that with 3 instances of the web app out front would increase it&#39;s concurrency a bit.&nbsp; What I found though was unexpected by me.<br>
<br>I hit the system with 3 ab&#39;s and sent in 1000 requests each with a concurrecy of 40.&nbsp; This went through a rack app so the concurrency may not actually matter all that much.<br><br>Throughout the run, the output from each worker (single worker on a queue) was sporadic.&nbsp; It would hammer for a bit, then pause then go again. Once the ab&#39;s had finished making requests to the web apps, and they&#39;d finished creating messages on the rabbitmq network, the downstream workers didn&#39;t stop.&nbsp; Instead they continued, basically in order.&nbsp;&nbsp; The upstream one would empty, with the downstream ones paused and only consuming messages sporadically.&nbsp; Then once that queue was effectively finished the next consumer would become active and empty etc.<br>
<br>It took a significant ammount of time to empty the queues and I was only getting 18rps from each web app!&nbsp; This is one of the most unscientific benchmarks possible and this was only observed by watching the logs of the consumers.&nbsp; Each hop reads from a couchdb for some information.<br>
<br>This is about all I can think to list at the moment.&nbsp; I&#39;d really appreciate any insights into why I&#39;m seeing this build up of messages.&nbsp; I would think this should barely stress the rabbitmq network at all.&nbsp; Is it possible to attach many queues to a single Direct Exchange?&nbsp; <br>
<br>All my consumers are setup as subscribers to a queue, and all direct exchanges have only one queue.<br><br>Cheers<br>Daniel<br>