gpt4 book ai didi

azure - 如何从 Azure API 管理服务将消息记录到 Azure 事件中心

转载 作者:行者123 更新时间:2023-12-03 00:22:48 25 4
gpt4 key购买 nike

在最近的一个项目中,我需要通过 Azure API 管理服务公开的端点将消息(>200kb)添加到 Azure 事件中心。然后,流分析作业从事件中心读取此消息并将其写入 SQL Server 中的相应表。

我使用“log-to-eventhub”策略将消息记录到事件中心。但它有一个与之相关的大小限制,即 200kb。

克服此大小限制的最佳方法是什么,或者我应该考虑采用不同的方式将负载记录到事件中心?非常感谢任何帮助。

最佳答案

这是official docs中描述的对此的限制。

The maximum supported message size that can be sent to an event hubfrom this API Management policy is 200 kilobytes (KB). If a messagethat is sent to an event hub is larger than 200 KB, it will beautomatically truncated, and the truncated message will be transferredto event hubs.

您可以考虑使用Azure Event Hubs output binding for Azure Functions .

关于How Function consume Event Hubs events ,您可以尝试在消费计划下使用多个并行Functions实例。

关于azure - 如何从 Azure API 管理服务将消息记录到 Azure 事件中心,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65556180/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com