O'Reilly logo

TypeScript Microservices by Parth Ghiya

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Design of product microservices

Based on our requirements, we can categorize data into the following various segments:

Microservice

Data store type

Caching

Ephemeral (example: ELK)

User comments, ratings, feedback, and product top sellers

Transient

Product catalog

Operational

Product search engine

Operational

Order processing

Transactional

Order fulfillment

Transactional

 

For our product catalog database, we will proceed with the following design.

In the current chapter, we are going to go with the product catalog service, which requires us to use an operational data store. We will go with MongoDB. A product will have at least the following items—variant, price, hierarchy, vendor, feedback email, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required