Multi-region data governance in Rails application
summary
Moves a Rails app from single-region multi-tenant to two fully separated region-specific apps, using Route 53 geolocation DNS to steer users and ALB path rules to redirect country-coded URLs; keeps data intact while creating region-aware infrastructure, then splits data by adding a bucket integer column to tables, filling buckets top-down from Authority, creating new per-region tables and swapping names (faster than deletes). Files move via changed paths and DataSync for files. Chrome caching forces a 302 workaround for redirects. Process rehearsed on staging and succeeds in production.
AI-written summary · about
chapters (25)
- 0:00Intro
- 1:50Success story
- 7:08Multiregion data governance
- 11:47Multiregion options
- 12:47Hybrid option
- 14:47Data flavors
- 17:17Data separation
- 18:17Redirect users
- 19:02Business requirement
- 20:42Tools
- 22:07Load Bouncer
- 24:27Alternate Links to Point
- 25:27Separate Data
- 26:07Splitting Data
- 28:47Bucket implementation
- 29:47Authority
- 31:57Topdown approach
- 33:42Regions
- 34:37Separate the database
- 36:17File split up
- 40:07Planning
- 41:47Rehearsal
- 43:47Last advice
- 44:22Wrap up
- 45:22Questions
