事件中心触发功能接收小批量 [英] Event Hub triggered function receives small batch sizes

查看:101
本文介绍了事件中心触发功能接收小批量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用用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屋!

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