-
Notifications
You must be signed in to change notification settings - Fork 1
Cosmos DB
Robert Brands edited this page Jun 3, 2020
·
2 revisions
Everything is stored in a Cosmos DB (NoSQL DB), that has been proven as the most easiest, state-of-the-art and fastest approach not only for developing but also for performance.
For a small web-site as this one the new Free Tier of Cosmos DB should be good enough.
Create a Comos DB and a container with partition key "/partitionKey". For partitioning see Partitioning in Azure Cosmos DB for an overview. For this site all JSON-objects with the same type have the same partition. This approach optimizes read access without spreading the objects over man partitions causing man RUs.
Access to Cosmos DB is provided by repository class CosmosDBRepository that uses Cosmos DB SDK v3