by worksonmine · 2y ago · 0 comments
I get monorepos for SSR and the likes but why build and deploy an entire container to push a line of CSS?
Imagine adding a field to a table that must be reflected in the front end and some other micro service consumers. Coordination can be painful.
Each system has its pros and cons, you're going to need tooling either way. I've moved to mono or mega repo as the default and break out smaller pieces into dedicated repo as needed
To me the ability to push changes independent of other pieces far outweighs the extra git commit and push. I've never had the need for any other tooling than a container to run in, git to manage code, and CI/CD for deploys. If there's a need for special tooling to manage the projects there's to much complexity for my taste and I remove the complexity instead.
Your monorepo sometimes approach is the polyrepo approach.
We could look to deploy CSS in a different way to optimize the use case for updating a single CSS line, and deoptimize everything else.
Monorepos make sharing code easier. They don’t put any requirements on deployment. You can make good or bad decisions regarding deployment when using monorepos or multiple repos.