Azure cosmosdb 宇宙数据库。一旦数据最终一致,是否会触发更改提要?

Azure cosmosdb 宇宙数据库。一旦数据最终一致,是否会触发更改提要?,azure-cosmosdb,Azure Cosmosdb,如果我将cosmos数据库设置为最终一致,我想知道一旦所有区域最终一致,是否会触发更改提要。

 一个用例可能是在所有区域一致时清除CDN,这样就不会出现任何竞速情况。

 谢谢~ 否。当数据位于其读取的区域时,将触发更改馈送触发器 您可以通过触发器中的PreferredLocations属性自定义区域: CosmosDBTrigger( databaseName: "yourDb", collectionName: "yourCollection", Connecti

如果我将cosmos数据库设置为最终一致,我想知道一旦所有区域最终一致,是否会触发更改提要。

 一个用例可能是在所有区域一致时清除CDN,这样就不会出现任何竞速情况。




谢谢~

否。当数据位于其读取的区域时,将触发更改馈送触发器

您可以通过触发器中的
PreferredLocations
属性自定义区域:

CosmosDBTrigger(
    databaseName: "yourDb",
    collectionName: "yourCollection",
    ConnectionStringSetting = "YourConnectionStringSettingName",
    PreferredLocations = "Central US",
    LeaseCollectionName = "leases")]
    IReadOnlyList<Document> documents,
CosmosDBTrigger(
数据库名称:“yourDb”,
collectionName:“您的收藏”,
ConnectionStringSetting=“YourConnectionStringSettingName”,
PreferredLocations=“美国中部”,
LeaseCollectionName=“租赁”)]
IReadOnlyList文档,

基本上,该属性映射到。

否。当数据位于其读取的区域时,将触发Change Feed触发器

您可以通过触发器中的
PreferredLocations
属性自定义区域:

CosmosDBTrigger(
    databaseName: "yourDb",
    collectionName: "yourCollection",
    ConnectionStringSetting = "YourConnectionStringSettingName",
    PreferredLocations = "Central US",
    LeaseCollectionName = "leases")]
    IReadOnlyList<Document> documents,
CosmosDBTrigger(
数据库名称:“yourDb”,
collectionName:“您的收藏”,
ConnectionStringSetting=“YourConnectionStringSettingName”,
PreferredLocations=“美国中部”,
LeaseCollectionName=“租赁”)]
IReadOnlyList文档,
基本上,该属性映射到