首页 > 解决方案 > 将 EventEmitter 与 NodeJ 和 Azure 函数一起使用

问题描述

鉴于 Azure Functions 的无服务器特性,是否可以在 NodeJS/Typescript 中为 Azure Functions 使用事件发射器?对于高吞吐量场景,可能是每天对单个 Azure 函数终结点的数百万个请求,我想确保我不会以孤立事件告终。

标签: node.jstypescriptazure-functionseventemitter

解决方案


您可以利用Azure Event GridEventEmitter ,这是您的方案的内存中的分布式表亲。

这是您可以比较这些的方法

至于规模,Event Grid 为您提供了覆盖,因为它是为此类用例设计的。

此外,Event Grid 具有内置的重试功能,并且还支持死信


推荐阅读