{"action":"opened","issue":{"url":"https://api.github.com/repos/senecajs/seneca-amqp-transport/issues/63","repository_url":"https://api.github.com/repos/senecajs/seneca-amqp-transport","labels_url":"https://api.github.com/repos/senecajs/seneca-amqp-transport/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/senecajs/seneca-amqp-transport/issues/63/comments","events_url":"https://api.github.com/repos/senecajs/seneca-amqp-transport/issues/63/events","html_url":"https://github.com/senecajs/seneca-amqp-transport/issues/63","id":183429730,"number":63,"title":"Every queue have a consume rate with at best 25 messages per second. How can I increase this?","user":{"login":"ppinel","id":2622533,"avatar_url":"https://avatars.githubusercontent.com/u/2622533?v=3","gravatar_id":"","url":"https://api.github.com/users/ppinel","html_url":"https://github.com/ppinel","followers_url":"https://api.github.com/users/ppinel/followers","following_url":"https://api.github.com/users/ppinel/following{/other_user}","gists_url":"https://api.github.com/users/ppinel/gists{/gist_id}","starred_url":"https://api.github.com/users/ppinel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppinel/subscriptions","organizations_url":"https://api.github.com/users/ppinel/orgs","repos_url":"https://api.github.com/users/ppinel/repos","events_url":"https://api.github.com/users/ppinel/events{/privacy}","received_events_url":"https://api.github.com/users/ppinel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-17T14:21:59Z","updated_at":"2016-10-17T14:21:59Z","closed_at":null,"body":"Hello,\r\n\r\nI am using SenecaJS with this plugin and RabbitMQ. When I did some benchmarking to understand why at best I had 25 messages per second handled on each queue, I found out that it takes 40ms for a message to go and come back.\r\nFor exemple, a microservice ask for an object to another microservice (Basically a mongodb query).\r\nThe act callback is called 40ms after when Mongodb query only takes 2ms to complete.\r\nSo I now understand why on RabbitMQ admin interface, I have at best 25 messages handled per second per queue: 40ms * 25 = 1 second.\r\n\r\nI use the default config for Amqp plugin and SenecaJS. All microservices and RabbiMQ are on the same server.\r\nEach microservice has only one instance running.\r\n\r\nIs this a normal behaviour? \r\nIs it possible to only increase the rate by modifying the parameters of Seneca AMQP Transport, SenacaJS and/or RabbitMQ ?\r\n"}}
{"actor":{"display_login":"ppinel"}}