处理已暂停的 Azure 函数的事件

huangapple go评论87阅读模式
英文:

Handle events for paused azure function

问题

Azure函数在暂停后会处理错过的事件吗?如果我们使用队列作为输入绑定,我预计不会有任何问题,对于事件网格,可能一切都会很好,因为我们需要配置主题,它应该充当队列。那么BlobTrigger绑定呢?如果在函数暂停期间添加了新文件,它会在启动后触发函数吗?

public async Task Run([BlobTrigger("path/to/blob/{name}", Connection = "Conn")] byte[] blobData, string blobTrigger)
{
}
英文:

Will azure function handle missed events after pause? I expect nothing bad if we use queue as input binding, possible everything will be good for event grid, because we need to configure topic, which should act as a queue. What about BlobTrigger binding? If new file was added during function pause, will it fire function after it's start?

public async Task Run([BlobTrigger("path/to/blob/{name}", Connection = "Conn")] byte[] blobData, string blobTrigger)
{
}

答案1

得分: 1

Blob触发器在内部轮询日志和容器,以查找新的或更新的Blob,并维护已处理Blob的收据。这确保了Blob按预期进行处理,并且暂停函数应用程序不会影响此过程。

英文:

The Blob Trigger internally polls the logs and containers for new or updated blobs, and maintains receipts for processed blobs. This ensures blobs are processed as expected and pausing a function app should not affect this.

huangapple
  • 本文由 发表于 2023年7月27日 16:52:20
  • 转载请务必保留本文链接:https://go.coder-hub.com/76778072.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定