Limiting Concurrent Processing in RabbitMQ Function

Heitor Danilo 20 Reputation points
2023-06-22T00:55:44.1366667+00:00

Hello,

Currently, I'm working on an application that consumes real-time messages from a RabbitMQ queue, for which I have an Azure function that triggers from RabbitMQ. After reaching the queue, this message must go through a pipeline. However, for this pipeline to function, I need only 4 items from the queue to be processed at once, and the queue should only advance if the number of items under classification is equal to 3 or less.

My application receives dozens, or even hundreds of messages in a few minutes. What I need is to somehow limit the number of items from the queue being processed simultaneously. Is there any way to do this through Azure functions, and just for this function?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 70,936 Reputation points Moderator
    2023-06-26T05:07:28.22+00:00

    @Heitor Danilo Thanks for reaching out. Unfortunately, there is no out of box configuration in the azure function RabbitMQ host.json that can help you with your use case. The only supported configuration is listed here. You can provide your feedback/feature request/suggestion for RabbitMQ connector here.

    Please "Accept Answer" if the answer is helpful so that it can help others in the community.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.