0

I have an Azure queue, and I am noticing that lots of messages come out all together. Is there a way that I can de-queue the messages maybe one at a time?

Also, how can I set the queue to process the items that go in the poison queue only two times rather than five times, which seems to the default right now.

Everywhere that I check, it talks about updating the function.json file which I don't even see in my Visual Studio instance. It seems like it gets configured at run time based on my settings in local.settings.json.

I have been updating only my local.settings.json file. My host.json only has version:2.0 in it.

Where can I change the configurations of my Azure queue?

0

1 Answer 1

1

Where can I change the configurations of my azure queue?

As the new case said, you could set the following configuration in host.json.

{
    "version": "2.0",
    "extensions": {
        "queues": {
            "maxPollingInterval": "00:00:02",
            "batchSize": 1,
            "maxDequeueCount": 2
        }
    }
}

For more details, you could refer to this article.

Sign up to request clarification or add additional context in comments.

7 Comments

Thanks Joey for your help on this. If I had two queues and want different configurations for each one, how will this work? Like if I want batchsize of 2 for queue 1 and batchsize of 6 for queue 2. Is there a way to specify the name of the queue, these configurations are for?
One more question, I used what you recommended and added them to host.json and published my functions to azure portal, how can I check to confirm that my batchsize in fact is 1.
For the first question, it's no.The host.json metadata file contains global configuration options that affect all functions for a function app. So if you want host.json for different function, you have to have two function on azure.
For the second one, you could go to appsettings to check the batchsize. Also, you could use Monitor to check it.
webjob have Queue triggers with different batch sizes. You could refer to this issue.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.