Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Session based service bus with Azure Function

I am using session queue on Azure and when I push some data on queue,I write one Azure function to trigger.

Please note that I have created statefull/session based queue.

The problem is when I push data to queue at that moment I got error like

The listener for function 'xxx' was unable to start. Microsoft.ServiceBus: It is not possible for an entity that requires sessions to create a non-sessionful message receiver

So my question is am I not able to use function with queue/topic with session?

like image 978
sandip Avatar asked Dec 05 '22 11:12

sandip


1 Answers

Update 2020:

Set isSessionsEnabled property in your function.json.

This is a common ask, but currently Web Jobs SDK, and thus Azure Functions, don't support Service Bus sessions. See WebJobs SDK issue; unfortunately there's no progress 3 years after it was created. Add a +1 in Azure Functions issue.

like image 155
Mikhail Shilkov Avatar answered Jan 18 '23 07:01

Mikhail Shilkov