{"action":"closed","issue":{"url":"https://api.github.com/repos/Azure/azure-service-bus/issues/210","repository_url":"https://api.github.com/repos/Azure/azure-service-bus","labels_url":"https://api.github.com/repos/Azure/azure-service-bus/issues/210/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-service-bus/issues/210/comments","events_url":"https://api.github.com/repos/Azure/azure-service-bus/issues/210/events","html_url":"https://github.com/Azure/azure-service-bus/issues/210","id":335077196,"node_id":"MDU6SXNzdWUzMzUwNzcxOTY=","number":210,"title":"Reading batch of messages by the same factory ","user":{"login":"sshogunn","id":1495573,"node_id":"MDQ6VXNlcjE0OTU1NzM=","avatar_url":"https://avatars1.githubusercontent.com/u/1495573?v=4","gravatar_id":"","url":"https://api.github.com/users/sshogunn","html_url":"https://github.com/sshogunn","followers_url":"https://api.github.com/users/sshogunn/followers","following_url":"https://api.github.com/users/sshogunn/following{/other_user}","gists_url":"https://api.github.com/users/sshogunn/gists{/gist_id}","starred_url":"https://api.github.com/users/sshogunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sshogunn/subscriptions","organizations_url":"https://api.github.com/users/sshogunn/orgs","repos_url":"https://api.github.com/users/sshogunn/repos","events_url":"https://api.github.com/users/sshogunn/events{/privacy}","received_events_url":"https://api.github.com/users/sshogunn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-23T07:25:39Z","updated_at":"2018-06-25T18:39:36Z","closed_at":"2018-06-25T18:39:36Z","author_association":"NONE","body":"Greetings,\r\n\r\nWe are working on a feature where we send quite a lot messages per operation, usually it is around 1 000 000 of messages. To reduce the number of calls on sender side, we use batching, it helps a lot. We also use prefetch count on receiver side to reduce the number of calls to ASB, it works as well. \r\nBut we also have more than one instance of consumer service(our microservice is scaled by k8s ), it is why I would like to make sure that the same batch of messages sent from sender side was consumed by the same consumer instance. A reason why I would like to do this is collecting messages grouped by one batch and commiting all of them in one transaction. \r\n\r\n**What can i use for that? How can I guarantee that messages from the same batch have been read by the same consumer?**"}}
{"actor":{"display_login":"nemakam"}}