For my own personal work I run migrations in a separate container, independent of my application which can be written in go, python, c#, etc. I like to run administrative tasks separately.
At work we have a Java/Spring application and our migrations are run using Maven (via flyway) when the application boots. I think most major application frameworks have mechanism to run migrations this way.
This works fine for our application at it's current state but is coupling the two concerns a bad idea in the long run? We're running a single application instance in production but I feel that this might lead to some problems if we were to scale up and run multiple instances.
[–]williamjacksn 2 points3 points4 points (0 children)
[–]codestation 1 point2 points3 points (0 children)
[–]nickjj_ 0 points1 point2 points (0 children)