Get the latest tech news
Building a better and scalable system for data migrations
Recently I read about a new Rust web framework called rwf. I was especially curious about its approach to handling database migrations, as many frameworks released in recent years tend to either overlook this or provide a mechanism that won't scale to larger projects.
I was especially curious about its approach to handling database migrations, as many frameworks released in recent years tend to either overlook this or provide a mechanism that won't scale to larger projects. GitLab's setup isn't timeless: while we tried to isolate migrations as much as possible, sometimes this would involve duplicating so much code we opted to reuse the application logic instead. This makes monitoring easier as the migration in charge of the background jobs can report its progress by e.g. writing to STDOUT, which is then collected as part of the deployment output/logs.
Or read this on Hacker News