Skip to content

[Question] Data from legacy system #102

Discussion options

You must be logged in to vote

The problem here is you don't have a master (single source of truth). As I understand one entity can be modified both in Legacy and New System. I see 3 solutions:

  1. Distributed transaction - you need to update 2 databases in the same transaction. It will give you strong consistency, but you will have performance issues because of db locks
  2. No distributed transaction - you update one database in one transaction and update the second database in another. This way you will have eventual consistency and you need handle conflicts (two edits in the same time for example). In your diagram I see cron interval, but I would say it is not an optimal solution. To have a minimal number of conflicts, the…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by kgrzybek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #102 on September 19, 2020 19:57.