TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

A rant about monorepos, and their benefits to your company

2 点作者 asyncanup超过 4 年前

1 comment

mytailorisrich超过 4 年前
To make all of the code available to everyone is not a good practice, even worse if access is granted r&#x2F;w.<p>There are security and IP aspects that the company must consider and granting access only to what is needed by each person is a standard good practice in that regard.<p>On a more technical note it also forces people to maintain well-defined APIs because these are the only thing customers (e.g. other teams) can see.<p>Keeping the source code for different products on different repos enables to achieve this encapsulation and also decouples all maintenance aspects.<p>In practice there is a sweet spot to find. In a microservice architecture people can get trigger-happy and create many, many services to build the product. Having a repo per microservice can become cumbersome very quickly.