英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论