I have a question about microservice architecture
for example if i have two microservice "UserService" and "TaskService"
and i have the database for my systeme with two table "USER" and "TASK"
We know that one of the Microservices rules is that each Microservice has its own database
So I don't know how to distribute my database for this two microservices ?
- set for the database for the "UserService" microservice two tables "USER" and "TASK"
and set for the database for the "TaskService" microservice two tables also "USER" and "TASK"
or
- set for the database for the "UserService" microservice the table "USER"
and set for the database for the "TaskService" microservice the table "TASK" but the problem here is how to link the two tables "USER" and "TASK" because each one is in a different database