Microservices: how to handle foreign key relationships

前端 未结 4 2098
温柔的废话
温柔的废话 2021-01-29 20:14

Microservices architecture suggest that each service should handle it\'s own data. Hence any service (Service A) dependent on data owned by other service (service B) should acce

4条回答
  •  花落未央
    2021-01-29 20:58

    A 2020 update to this answer is to use a Change Data Capture tool like Debezium. Debezium will monitor your database tables for changes and stream them to Kafka/Pulsar (other pipes) and your subscribers can then capture the changes and synchronize them.

提交回复
热议问题