事件中心触发功能接收小批量 [英] Event Hub triggered function receives small batch sizes
问题描述
我正在使用用javascript/nodejs编写的事件中心触发器"功能.当消息生产者将数千条消息写入事件中心时,该功能一次接收2-4条消息.以下是功能应用程序的host.json文件.在那儿 无论如何要实现更大的批量大小?
I am using an Event Hub Trigger function written in javascript/nodejs. When message producer writes thousands of messages to the event hub the function receives between 2-4 messages at a time. Below is the host.json file for the function app. Is there anyway to achieve larger batch sizes?
{
"eventHub": {
"maxBatchSize": 64,
"prefetchCount": 256,
"batchCheckpointFrequency": 1
}
}
推荐答案
根据我们的文档64是默认的批处理大小.
According to our documentation 64 is the default batch size.
https://docs.microsoft.com/zh-cn/azure/azure-functions/functions-bindings-event-hubs#trigger---hostjson-properties
https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-event-hubs#trigger---hostjson-properties
这篇关于事件中心触发功能接收小批量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!