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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Monorepo Support

71 点作者 bauerpl超过 2 年前

7 条评论

corytheboyd超过 2 年前
I don&#x27;t get the case against monorepos, and why it&#x27;s so polarizing.<p>You can share code without having to stand up infrastructure to host packages and whatnot.<p>You can separate concerns without introducing the infinite complexity of network io, queues etc. This is kind of a dig at microservices I guess, which have their place functionally (decoupled infrastructure, scaled independent of other services).<p>You can still deploy to separate targets, a code repository is not 1:1 with a deploy target, that is a fake constraint that never even existed.<p>Manyrepos ALWAYS end up being second class citizens. Test setup isn&#x27;t as good as in the monorepo because that means duplicating it N times, and that is obviously wrong.<p>Common patterns are The Same But Different everywhere and&#x2F;or there is crazy complexity in sharing code between repositories to alleviate this (often having its own problems)<p>It&#x27;s just... all of that goes away with one&#x2F;fewer code repositories. So... why? I&#x27;m not even anti micro-service, monorepo actually makes MORE sense with microservices IMO. Why do we do this?<p>Before someone points it out, I do recognize that a monorepo can still be poorly architected. We can all rest assured knowing that poor architecture is poor architecture whether it be monorepo, manyrepo, monolithic, microservice, PHP, Rust, blah blah.
评论 #32878827 未加载
评论 #32878555 未加载
评论 #32879500 未加载
评论 #32878466 未加载
评论 #32878942 未加载
评论 #32879885 未加载
评论 #32880261 未加载
评论 #32879345 未加载
评论 #32880161 未加载
评论 #32879542 未加载
评论 #32880148 未加载
评论 #32878529 未加载
评论 #32878439 未加载
评论 #32879306 未加载
评论 #32878261 未加载
评论 #32879026 未加载
eropple超过 2 年前
Hey folks. I do devrel here at Render and it&#x27;s nice to see this floating by on Hacker News--our new monorepo support does a lot to improve the ergonomics of running multiple services out of a single repo.<p>One note: in Render parlance, &quot;services&quot; includes static websites, so even for systems that wouldn&#x27;t always be considered a monorepo in other contexts, this is useful to launch a static website alongside your code and, in so doing, more clearly communicate what you&#x27;re doing to the next person to touch it. (Including six-months-from-now you.)
paulgb超过 2 年前
Render is one of those companies you don&#x27;t see a lot on HN, but you talk to developers who use it and they have a lot of love for it. Stuff just works like you&#x27;d expect it to. We&#x27;ve been a happy user of monorepo support since it was in beta and it&#x27;s worked great for us.
评论 #32878332 未加载
stefanvdw1超过 2 年前
This is great! I’ve been using Render to host all my projects ranging from static sites to full blown web apps ever since moving away from Heroku. Their free tier is also pretty good for prototyping.<p>Recommend it to anyone moving away from Heroku or looking for a cheap place to start.
hyperhopper超过 2 年前
This is patching symptoms.<p>If you need some hosting&#x2F;deployment tool to support the way you structure your code repos, there is a bigger problem.<p>Your own tooling for your repo should decide what gets triggered. It&#x27;s not even as simple as this article makes it out to be. If I edit a readme.md, should this redeploy because it&#x27;s in the same directory?<p>Of course not. Structure your code how you want. Then make good tools to trigger other tools. don&#x27;t restrict yourself to every downstream job type and tool integrating vertically with your specific structures.
benced超过 2 年前
Many-repo is better at places that can’t fund a large infrastructure team, mono-repo is better at places that can.<p>The natural state of a mono-repo is Twitter-like paralysis, it requires concentrated work to avoid that but that work can make them better than many-repo.
porridgepie超过 2 年前
Tried it for a couple of years, and as many already said, its more that its different than that its a lot better or worse than the altrrnative.