存储队列触发的 Azure Functions 是接收单个消息还是所有消息? [英] Do Azure Functions triggered by storage queue take single message or all messages?
问题描述
如果我创建一个由存储队列消息触发的 Azure 函数...系统会启动多个并行函数以访问队列中的每条消息,还是会调用一个读取所有可用消息的函数?
If I create an Azure Function that is triggered by storage queue messages... will the system launch multiple parallel functions to reach each message from the queue or will a single function get called that reads in all available messages?
简而言之,排队的消息是单独处理还是批量处理?
In short, are queued messages handled individually or in batches?
推荐答案
在 API 方面,您的函数将在队列中的每条单独消息中调用一次.
API-wise your function will be called once per each individual message in the queue.
但 Azure Functions 运行时会批量检索和处理消息,并行调用函数的多个实例.
But Azure Functions runtime will retrieve and process messages in batches, calling several instances of your function in parallel.
这篇关于存储队列触发的 Azure Functions 是接收单个消息还是所有消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!