Hello @Ume Hani
The issues you are facing could be related to how the ServiceBusTrigger is handling sessions and concurrent processing.
Here are some possible reasons for the problems you described:
- Out of Order Processing: When using sessions with a prefetch count greater than 1, messages for a particular session may be processed out of order if some messages fail to process initially. This could be due to the way messages are being retrieved and processed concurrently.
- Missing Retry Logs: The missing logs for retries could be related to how the retry logic is implemented in your function code. It's important to ensure that the retry mechanism is correctly handling failed messages and logging the retry attempts.
- Delayed Message Reception: The delayed reception of messages for some sessions could be caused by the way concurrent sessions are being processed. If messages for some sessions are taking longer to process, it could be impacting the overall message processing time.
To address these issues, you may need to review and optimize your Azure Function code that handles the ServiceBusTrigger. Make sure that the message processing logic is robust, handles retries effectively, and manages concurrent sessions efficiently. Additionally, you may consider adjusting the prefetch count, maxConcurrentSessions, and other configuration settings to better align with your processing requirements and message handling logic. If the issues persist, you may want to consider reaching out to Azure support for further assistance and troubleshooting.
I hope this information helps you identify and resolve the issues you are facing with the ServiceBusTrigger configuration in Azure Functions.