我只想将更改的数据从CosmosDB
移动到Storage account
,就像只有修改或插入的更改数据可以移动一样。如何在cosmosDB中执行更改feed过程?.
请分享链接。
你可以考虑在集合中添加/更新文档时触发Azure函数,并让Azure函数将文档输出到blob存储
这应该可以很好地扩展,并且相对容易实现。这是一个example
有几种阅读变更提要的方法,这里都有介绍:https://learn.microsoft.com/azure/cosmos-db/read-change-feed
概要:
- 使用Azure函数:https://learn.microsoft.com/azure/cosmos-db/change-feed-functions
- 在SDK上使用更改Feed处理器:https://learn.microsoft.com/azure/cosmos-db/change-feed-processor
- 在SDK上使用Change Feed查询/pull模型:https://learn.microsoft.com/azure/cosmos-db/change-feed-pull-model
- 使用Spark连接器,如果你正在做数据分析:https://learn.microsoft.com/azure/cosmos-db/sql-api-sdk-java-spark-v3
这取决于您的场景,您可能想使用哪个工具。