Is it possible to use event emitters in NodeJS / Typescript for Azure Functions given the Serverless nature of Azure Functions? For high throughput scenarios, perhaps millions of requests per day to a single Azure function endpoint, I want to make sure that I don't end up with orphaned events.
You could leverage Azure Event Grid, the distributed cousin of the in-memory EventEmitter
for your scenario.
Here is how you can compare these
EventEmitter
object, you will have an Event Grid Topic.emit()
, you POST
to the custom topic's endpoint.on()
, you use Event FilteringAs for scale, Event Grid has you covered as it was designed for such use cases.
Also, Event Grid has retry built-in and supports dead-lettering as well.
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加