Concurrency in Azure Function fails. BlobTrigger .NET8 C#

Gonzalo Gomez 15 Puntos de reputación
2024-01-12T21:09:33.57+00:00

I have an Azure Function App with a BlobTrigger function. It triggers when a new blob is stored in the blob storage and uploads it to a DB. It is configured to have dynamic concurrency. When a blob arrives it triggers and uploads it to the DB. But when two or more blobs arrive at the same time, it triggers for all of them, but it only uploads one to the DB. I am using

Microsoft.Azure.Functions.Worker.Extensions.Storage.Blobs Version="6.2.0"

This is my host.json file:

{
  "version": "2.0",
  "logging": {
    "applicationInsights": {
      "samplingSettings": {
        "isEnabled": true,
        "excludedTypes": "Request"
      },
      "enableLiveMetricsFilters": true
    },
    "logLevel": {
      "Host.Concurrency": "Trace"
    }
  },
  "concurrency": {
    "dynamicConcurrencyEnabled": true,
    "snapshotPersistenceEnabled": true
  }
}
0 comentarios No hay comentarios
{count} votos

Su respuesta

Las respuestas se pueden marcar como respuestas aceptadas por el autor de la pregunta, lo que ayuda a los usuarios a conocer la respuesta que resolvió el problema del autor.