alex
alex

Reputation: 35

How to solve the microservices with foreign key constraint?

I am working with micro services: product service, order service, auth service and so forth. Each service has a database table, for database I am using PostgreSQL with sequelize.

Now the problem I am having is: how do I solve the foreign key constraints? I am thinking of making a data service where all models are there. What can I do and solve the problem? I don't want to use message broker, caching or duplication of data.

Upvotes: 0

Views: 34

Answers (0)

Related Questions