As per https://github.com/Azure/azure-functions-servicebus-extension/issues/15 the Service Bus trigger now supports reading batches and also sessions. This page should include a description of both and examples as well.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@nzthiago Thank you for your feedback! We will review and update as appropriate.
Any updates on this? How can you specify the batch size for trigger? Thanks.
@mike-urnun-msft / @craigshoemaker, do you know if this is still in the works? :-) It would be really helpful to have this documented so that I can point dev resources to it. Thanks!
Just circling back that we discovered there is work remaining in Java library and Python library before this will be fully supported end to end. Once that is completed I can open a doc item to get this out there. @anirudhgarg as an FYI who is helping track the work on those libraries
Is there a way I can specify the batch size while consuming azure functions with service bus trigger ? The documentation is missing. Currently my method signature is like below:
Host JSON is like below:
Even though I have specified MaxMessageCount to be 50, the number of messages in the trigger does not exceed 21-22
@cvraman , I believe that MaxMessageCount
is just that - the Max
batch size that will be returned. There are a number of reasons why you might not be getting the full batch size every time, that's not unexpected. Sometimes you can tune various SB SDK params to increase the fill % in your situation.
Just circling back that we discovered there is work remaining in Java library and Python library before this will be fully supported end to end. Once that is completed I can open a doc item to get this out there. @anirudhgarg as an FYI who is helping track the work on those libraries
Thank you, @jeffhollan, for the update! Looking forward to this! Any rough sense on timeline?
@ericsampson : Is there a configuration in host.json where I can specify both the MaxMessageCount and for improving the fill rate ? Am not sure on the exact configuration aspect in host.json
Most helpful comment
Just circling back that we discovered there is work remaining in Java library and Python library before this will be fully supported end to end. Once that is completed I can open a doc item to get this out there. @anirudhgarg as an FYI who is helping track the work on those libraries