How to create 1 instance of Azure Function per Azure Service Queue message

124 Views Asked by At
  1. I am using Azure Service Bus Queue Triggered Azure Functions

  2. Azure Function Runtime Version = 1 and running in consumption plan

  3. Azure function and referenced projects are developed in .NET 4.8

  4. I want to create 1 instance of Azure Function per Service Bus Queue message. Hence scaling 200 instances of Azure functions for 200 messages.

  5. We explored Session based execution by setting sessionid of message and using IsSessionEnabled flag in azure function. But for this we need to upgrade Azure functions to runtime 4 and facing lot of challenges while upgrading packages.

  6. We just can not upgrade to .NET 6 because i think we will have to upgrade referenced project to .NET 6 which we can not do at this stage.

  7. We have set below properties , but its picking ONLY 1 message at a time and its not creating multiple instance "maxConcurrentCalls": 1, "maxConcurrentSessions": 1, "maxMessageBatchSize": 1, "minMessageBatchSize": 1,

  8. We tried to set above appsettings in azure functions but its creating single instance. We want to create 1 instance of azure function per service bus queue message. We also tried settings sessionid ( which worked as expected in other project ) , but we had to upgrade to .NET6 which we can not do in this case

0

There are 0 best solutions below