Play Common design patterns with Azure Cosmos DB