Vietnam Infrastructure for Data Residency
· Part of my work at Carousell
Abstract: Architected and built a dedicated infrastructure environment in Vietnam to comply with local data residency regulations, including setting up a hypervisor and complex database replication.
Tech: #Data Residency#Compliance#Database Replication#MySQL#PostgreSQL#Virtualization
The Challenge
To operate in compliance with Vietnam's local data residency regulations, it was mandated that all customer data originating from Vietnam be physically stored within the country's borders. This required building a new, isolated infrastructure footprint from scratch.
The Solution
I was tasked with leading this complex, multi-faceted project. The solution involved two primary stages:
1. On-Premises Server Setup
I configured and deployed a new physical server in a dedicated datacenter in Vietnam. This involved:
- Hypervisor Installation: Installing and configuring a hypervisor (e.g., Proxmox VE or KVM) on the bare-metal server to create a flexible virtualized environment.
- Virtual Machine Provisioning: Setting up the necessary virtual machines that would host the local database replicas.
2. Nested Database Replication
The most technically challenging aspect was replicating the data from our central cloud databases to the new server in Vietnam. I designed and implemented a nested database replication strategy for both our MySQL and PostgreSQL databases. This ensured that a live, up-to-date copy of all Vietnamese customer data was continuously and reliably synchronized to the local server, satisfying the legal requirements while maintaining data consistency with our global platform.
This project showcased the ability to navigate complex technical and regulatory challenges, from physical infrastructure setup to advanced, cross-border database engineering.