Azure / azure-functions-servicebus-extension

Service Bus extension for Azure Functions
MIT License
65 stars 35 forks source link

Messages in session enabled queue frequently delivered twice within same second #195

Closed stewrutledge closed 2 years ago

stewrutledge commented 2 years ago

Hi

We're experiencing an issue where around 1% of messages on a session queue are being delivered to an azure function twice within the same second. This doesn't seem to impact all functions/queues, rather seems isolate to one function and queue.

We are setting message_id and session_id and are using all defaults for lock time, concurrent sessions, function worker count etc..

It is a python function running in consumption consuming from a standard session enabled queue.

What is the expected behavior here and are there any settings we should be looking at?

stewrutledge commented 2 years ago

We’ve set scaling to a limit of 1 and it seems to have helped, but I’d like to understand why that would help.

alrod commented 2 years ago

@stewrutledge, what version of ServiceBus extensions are you using? can you please share timestamp and share your function name privately

ghost commented 2 years ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

stewrutledge commented 2 years ago

Hi sorry, I missed these updates. @alrod could we open this issue again?