logoalt Hacker News

consensus1today at 3:21 PM1 replyview on HN

Microservices is a deployment strategy. Monorepo is a code organization strategy. They are not mutually exclusive.


Replies

jedbergtoday at 3:30 PM

While you are technically correct (the best kind of correct), I would challenge you to find an organization that is doing the monorepo/microservice combo correctly. And what I mean by that is with microservices, the API is the only contract. Every service should be deployable independently.

If you have a monorepo, you're almost certainly violating that somewhere, using a shared library, or a shared database, or even just blocking deployment because some other service has turned the repo red.

show 1 reply