{"action":"created","issue":{"url":"https://api.github.com/repos/pardahlman/RawRabbit/issues/144","repository_url":"https://api.github.com/repos/pardahlman/RawRabbit","labels_url":"https://api.github.com/repos/pardahlman/RawRabbit/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/pardahlman/RawRabbit/issues/144/comments","events_url":"https://api.github.com/repos/pardahlman/RawRabbit/issues/144/events","html_url":"https://github.com/pardahlman/RawRabbit/issues/144","id":188850345,"number":144,"title":"Multiple threads concurrently execute SubscribeAsync function ","user":{"login":"guessmyname","id":5807663,"avatar_url":"https://avatars.githubusercontent.com/u/5807663?v=3","gravatar_id":"","url":"https://api.github.com/users/guessmyname","html_url":"https://github.com/guessmyname","followers_url":"https://api.github.com/users/guessmyname/followers","following_url":"https://api.github.com/users/guessmyname/following{/other_user}","gists_url":"https://api.github.com/users/guessmyname/gists{/gist_id}","starred_url":"https://api.github.com/users/guessmyname/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guessmyname/subscriptions","organizations_url":"https://api.github.com/users/guessmyname/orgs","repos_url":"https://api.github.com/users/guessmyname/repos","events_url":"https://api.github.com/users/guessmyname/events{/privacy}","received_events_url":"https://api.github.com/users/guessmyname/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-11T21:03:32Z","updated_at":"2016-11-12T14:10:24Z","closed_at":null,"body":"When I publish multiple messages to a queue I notice that the function passed to SubscribeAsync is being called by multiple threads, sometimes concurrently. This behavior is different than when using the RabbitMQ client. Is this by design?"},"comment":{"url":"https://api.github.com/repos/pardahlman/RawRabbit/issues/comments/260124142","html_url":"https://github.com/pardahlman/RawRabbit/issues/144#issuecomment-260124142","issue_url":"https://api.github.com/repos/pardahlman/RawRabbit/issues/144","id":260124142,"user":{"login":"guessmyname","id":5807663,"avatar_url":"https://avatars.githubusercontent.com/u/5807663?v=3","gravatar_id":"","url":"https://api.github.com/users/guessmyname","html_url":"https://github.com/guessmyname","followers_url":"https://api.github.com/users/guessmyname/followers","following_url":"https://api.github.com/users/guessmyname/following{/other_user}","gists_url":"https://api.github.com/users/guessmyname/gists{/gist_id}","starred_url":"https://api.github.com/users/guessmyname/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guessmyname/subscriptions","organizations_url":"https://api.github.com/users/guessmyname/orgs","repos_url":"https://api.github.com/users/guessmyname/repos","events_url":"https://api.github.com/users/guessmyname/events{/privacy}","received_events_url":"https://api.github.com/users/guessmyname/received_events","type":"User","site_admin":false},"created_at":"2016-11-12T14:10:24Z","updated_at":"2016-11-12T14:10:24Z","body":"Yes, that helps. Thanks for the suggestion.\n\nOn Nov 12, 2016 8:28 AM, \"pardahlman\" <notifications@github.com> wrote:\n\n> It is not something that I plan to add as a configuration option. What is\n> your scenario? If you want to act on multiple messages in sequence, perhaps\n> the BulkGet extension\n> <http://rawrabbit.readthedocs.io/en/master/Bulk-fetching-messages.html>\n> is something for you?\n>\n> If this does not suit you, I would suggest that you create a custom\n> implementation of IConsumerFactory that does not start new tasks for each\n> received message\n> <https://github.com/pardahlman/RawRabbit/blob/stable/src/RawRabbit/Consumer/Eventing/EventingBasicConsumerFactory.cs#L30>\n> and then register it in the IoC when creating your bus client instance\n> <https://github.com/pardahlman/RawRabbit#dependecy-injection>.\n>\n> Hope this helps!\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/pardahlman/RawRabbit/issues/144#issuecomment-260122191>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AFieL_F9OlgKX4_RFpz1ttFe3uy-kS3Yks5q9b8FgaJpZM4KwI6P>\n> .\n>\n"}}
{"actor":{"display_login":"guessmyname"}}