3

I am creating multiple micro service APIs. Can we use one single Container to store all the different schemas from the different APIs? If so how to differentiate the schemas while retrieving documents? When to create multiple containers in Azure Cosmos dB? is that any disadvantages/caveats of using multiple containers? Please Explain.

David Makogon
  • 69,407
  • 21
  • 141
  • 189
John
  • 71
  • 3
  • You've asked 3 different questions here, some of it opinion-based, and there's really no single objectively-correct answer for any of these. There is a general philosophy behind microservices and single-purpose data stores. You'd need to come up w/your own scheme for different docs (maybe a `type` property) since there is no enforced schema. As for advantages/caveats: lots of material written around this (scaling, partitioning, cost, etc). I would start with the Cosmos DB docs, plus existing questions here. – David Makogon Jul 02 '20 at 11:14

0 Answers0