What is the common approach to data sharding based on regions? a.k.a GDPR enforcement - EU data stays in EU.
If I were to save users' emails in users table - I would need to keep data for US and EU people separated somehow. Example mysql table:
CREATE TABLE users(
id INT NOT NULL AUTO_INCREMENT,
PRIMARY KEY(id),
name VARCHAR(30),
email VARCHAR(30),
otherSensetiveData VARCHAR(30))
- Is it normal to have 2 servers - 1 in EU and second in US?
- How does autoincrement work in this case and joined selects/transactions?
In general I just want to know how to solve this problem.