My question is, how can I ensure data integrity between databases, so that the Orders table will not point to non-existent customers?
This is a great question. However, it lacks an important dimension, which refers to the period of time during which you want to establish referential integrity.
If you ask: “How can I guarantee that all my data is 100% constant?”, Well, you cannot answer. If you want you to force it either by using foreign key restrictions (which are not available in databases), or by ensuring that you never write to one database, and not to another database outside of which or a distributed transaction (which is absurd and will lead to the defeat of the goal of using career orientation).
: " , 100% ?", , . , eventing . , , , . , , - , .
, , , .
, , , . , . , , . 5 9 (99,999%).
, 9, . , , ? 100 , , , , , , .