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

How to choose a data store for your microservice

One of the most fundamental questions that pop up while designing microservices is how does one choose the correct data store? We will be talking about this in much more detail in the Service state section in Chapter 7, Service State and Interservice Communication, but here, let's get our fundamentals right.

The first and foremost step in selecting any ideal data store is to find out the nature of our microservice data. Based on the nature of the data, we can briefly define the following categories:

  • Ephemeral or short-lived data: A cache server is a classic example of short-lived data. It is a temporary store whose objective is to enhance the user experience by serving information in real ...

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