Bacem
Bacem

Reputation: 171

Where lookup tables should be placed in a microservices architecture?

In a microservices architecture, each microservice has its own database and tables should not be duplicated in different databases. But there are tables, like lookup tables (called also reference tables), that are needed by multiple microservices. Should we put lookup tables in each microservice database, or is it better to create a new microservice with a database holding all the lookup tables ?

Upvotes: 7

Views: 1436

Answers (1)

Sean Farmar
Sean Farmar

Reputation: 2293

Lookup tables will usually contain read only data (they are like view models), so they can be available across the system in whatever technical solution you choose.

A shared read only database table, a distributed cache, on a CDN...

Make sense?

Upvotes: 1

Related Questions