Session-disabled Service Bus Trigger Functions
Was set to messageHandlerOptions.maxConcurrentCalls = 1 when operating in a single thread.
If I want Session-enabled Service Bus Trigger Functions to be single-threaded, should I set sessionHandlerOptions.maxConcurrentSessions to 1?
json
{
"version": "2.0",
"extensions": {
"serviceBus": {
"prefetchCount": 100,
"messageHandlerOptions": {
"autoComplete": true,
"maxConcurrentCalls": 1,
"maxAutoRenewDuration": "00:05:00"
},
"sessionHandlerOptions": {
"autoComplete": false,
"messageWaitTimeout": "00:00:30",
"maxAutoRenewDuration": "00:55:00",
"maxConcurrentSessions": 1
},
"batchOptions": {
"maxMessageCount": 1000,
"operationTimeout": "00:01:00",
"autoComplete": true
}
}
}
}
https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-service-bus#host-json
https://learn.microsoft.com/en-us/java/api/com.microsoft.azure.servicebus.sessionhandleroptions?view=azure-java-stable