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