Azure Feature Queue trigger lags

I am working on a demonstration of azure functions using queue triggers. I created a Sudoku recursive solver to show how to do the first depth search and convert it to a recursion queue. The code is on github .

I expected it to scale and process an insane amount of messages per second, but it barely processes 30 / s. The queue is full and usage seems minimal.

Minimal use

How can I get better performance? I tried increasing the batch size in host.json but didn't seem to help. I have more than 200 thousand messages in the queue, and it is growing.

Update 1 I tried installing the host.json file as

{
  "queues": {
    "visibilityTimeout": "00:00:10",
    "batchSize": 32,
    "maxDequeueCount": 5,
    "newBatchThreshold": 100
  }
}

but the request per second remained the same.

, S4. 64 , .

, .

2

S4 10 , 60-70 . , , , . , , 500 . .

+4

Source: https://habr.com/ru/post/1681566/


All Articles