QuestionQ12

Develop for Azure storage

You are building an inventory-tracking solution. The solution contains an Azure Function app with multiple functions that are triggered by Azure Cosmos DB. You plan to deploy the solution across multiple Azure regions.

The solution must meet these requirements:

  • Item results from Azure Cosmos DS must return the latest committed version of an item.
  • Items written to Azure Cosmos DB must guarantee ordering.

You need to configure the consistency level for the Azure Cosmos DB deployments.

Which consistency level should you use?

Explanation

Azure Cosmos DB strong consistency provides linearizability: reads always return the most recently committed item version, and committed writes are globally ordered. The weaker consistency levels can return stale data or provide ordering guarantees only within more limited bounds or sessions.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!