Azure Cosmos DB Caching Tips
I’ve started to use Azure Cosmos DB a bit more over the last couple weeks and I’m really enjoying it. The first real world scenario that I hit was needing to implement optimistic concurrency. This led me straight into I discovered two caching optimizations you can make for better performance accessing individual documents. Caching SelfLinks If you are using the .NET SDK, each document contains a unique SelfLink property. This is represented by the _self property in the JSON. View the code on Gist. They are guaranteed to be unique and most importantly immutable. Because the SelfLink is immutable we… Read More »Azure Cosmos DB Caching Tips