May 2019
Intermediate to advanced
504 pages
11h 50m
English
Implementing the update endpoint would in fact be different, to say the least, when we are dealing with a NoSQL data store that doesn't support partial updates. According to the application requirements, we can choose two distinct patterns.
In the classic concurrency model, we would be receiving a PUT request with the complete object body and checking whether the update is being executed on the latest version of the object. This concurrency check can be done on the _ts property collection items. The timestamp property is also used by the Cosmos DB containers themselves for handling concurrency issues. Let's begin:
Read now
Unlock full access