由存储队列触发的Azure功能接收单个消息还是全部消息? [英] Do Azure Functions triggered by storage queue take single message or all messages?

查看:87
本文介绍了由存储队列触发的Azure功能接收单个消息还是全部消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我创建一个由存储队列消息触发的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功能接收单个消息还是全部消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆