Retail and e-commerce using Cosmos DB

Cosmos DB

Solution Idea

If you'd like to see us expand this article with more information, such as potential use cases, alternative services, implementation considerations, or pricing guidance, let us know with GitHub Feedback!

This solution idea shows how to deploy an e-commerce web site on Azure. The e-commerce web site is hosted on Azure Web App and uses Azure Cosmos DB as data store for product information and session state. Azure Search provides search functionality over diverse product catalogs, traffic spikes, and rapidly changing inventory.


Architecture Diagram Download an SVG of this architecture.


  1. The web application is hosted in an Azure Web App.
  2. The data (products and session state) gets stored in Azure Cosmos DB.
  3. Static content and product images are stored in an Azure Storage account.
  4. Azure Cognitive Search is used to search across all the products.


This architecture includes the following components:

Next steps

Explore the related services:

Explore related data architectures:

Fully deployable architectures: