Hello Gonzalo Gomez,
Welcome to Microsoft Q&A!
We are very sorry for the delay in giving you a response to your topic in this forum. If you still have the same inquiry, it sounds like you're encountering an issue with concurrency handling in your Azure Function App. Here are a few steps you can take to troubleshoot and potentially resolve this issue:
Check Dynamic Concurrency Configuration: Ensure that dynamic concurrency is correctly configured in your host.json
file. It should look something like this:
{
"version": "2.0",
"extensions": {
"blobs": {
"maxDegreeOfParallelism": -1
}
},
"concurrency": {
"dynamicConcurrencyEnabled": true
}
}
Update to the Latest Version: Consider updating to the latest version of the Microsoft.Azure.Functions.Worker.Extensions.Storage.Blobs
package. The latest version as of now is 6.6.0. There might be bug fixes or improvements that could resolve your issue.
Logging and Monitoring: Enable detailed logging to monitor the behavior of your function when multiple blobs are uploaded. This can help identify if the function is being throttled or if there are any errors during execution.
Concurrency Limits: Verify if there are any limits set on the maximum concurrency for your function. You can set these limits in the host.json
file under the concurrency
section.
Database Transaction Handling: Ensure that your database transactions are correctly handled to avoid conflicts when multiple instances of the function try to upload data simultaneously. Implementing proper locking mechanisms or using unique identifiers for each blob can help.
Testing Locally: You can test the dynamic concurrency feature locally using the Azure Storage Emulator or Azurite. This can help you simulate the behavior and make necessary adjustments before deploying to production.
If these steps don't resolve the issue, you might want to check the official documentation or reach out to the Azure support team for more specific guidance.
I hope the information provided was useful! Additionally, please kindly note that if we do not receive a response to this thread within 4 business days, we will consider it closed. In case you have the same question, and the information provided was not useful, feel free to create another thread and we will be more than happy to help you.
Regards,
Gao
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".