Reputation: 171
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
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