有没有办法将 Cosmos DB 预触发连接到 Azure 函数或 WebJob?
Is there a way to connect Cosmos DB pre-trigger to an Azure function or WebJob?
我收集了一些文件,其 ttl(离开时间值)值不等于 -1。我想在从数据库中删除文档之前将文档数据发送到 Azure 函数或 WebJobs。这可能吗?
也许看看更改提要 - https://docs.microsoft.com/en-us/azure/cosmos-db/change-feed
The change feed includes inserts and update operations made to documents within the collection. You can capture deletes by setting a "soft-delete" flag within your documents in place of deletes. Alternatively, you can set a finite expiration period for your documents via the TTL capability, for example, 24 hours and use the value of that property to capture deletes. With this solution, you have to process changes within a shorter time interval than the TTL expiration period.
我收集了一些文件,其 ttl(离开时间值)值不等于 -1。我想在从数据库中删除文档之前将文档数据发送到 Azure 函数或 WebJobs。这可能吗?
也许看看更改提要 - https://docs.microsoft.com/en-us/azure/cosmos-db/change-feed
The change feed includes inserts and update operations made to documents within the collection. You can capture deletes by setting a "soft-delete" flag within your documents in place of deletes. Alternatively, you can set a finite expiration period for your documents via the TTL capability, for example, 24 hours and use the value of that property to capture deletes. With this solution, you have to process changes within a shorter time interval than the TTL expiration period.