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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Why Ruby on Rails Applications Should Consider Adding Go to Their Stack

14 点作者 dcu超过 7 年前

4 条评论

1123581321超过 7 年前
I don’t find this piece compelling. Go does offer performance benefits. However, most web applications do not reach a state of maturity that justifies a rewrite. The acknowledged initial development time advantage Ruby offers is compounded into successive development cycles. SOA is not necessarily a good architecture objective, and API structure arguably benefits more from Rails’ defaults than Go’s constrained syntax. Finally, more Rails developers interested in improved concurrency programming would adopt Phoenix than would adopt Go.
jarsin超过 7 年前
"We have no clue what we are talking about. We just want to look smart for clients who have no clue what we are talking about either, and hopefully get some business."
hartator超过 7 年前
&gt; Rails won’t provide any boilerplate solutions in order to solve computer-science related problems.<p>Not sure what &quot;computer-science&quot; means in this instance.
meesterdude超过 7 年前
Sorry, but this article makes no worthwhile argument for why RoR devs should consider Go, it&#x27;s just circle jerk.<p>&gt; The main approach to resolve performance and stability issues in an established system, as well as team scalability problems, is to split the monolithic kernels into a set of microservices.<p>For one, this goes against the idea of having a monolith and all the benefits that has. SOA trades one set of problems for another, and requires an organizational and cognitive shift in approach.<p>&gt; Go excels when projects get into phase when everything should be calm and steady.<p>So does Ruby? And also when it&#x27;s not.<p>&gt; you may want to think about adding Go into the stack to take care of the most complex code while the remaining Ruby&#x2F;RoR stack provides an older but solid website engine<p>&quot;older but solid&quot;. THat&#x27;s a disingenuous attempt at calling rails obsolete or legacy - neither of which, in any way, it is.<p>&gt; Go is fresh<p>Oh I see where we&#x27;re going with this now.<p>&gt; it’s also important to think about what’s going to happen with the project in the next couple of years. Every technology that exists on the market has its own lifespan and a couple of target problem domains where it’d be the best solution to use.<p>Yes, you should be thinking of the long term - of the project you&#x27;re building. Go might very well be a good choice for your problem domain, but for most startups they simply do not need it. Keeping everything in the same stack&#x2F;language makes it more portable between devs and easier to reason about. When you start rolling up your sleeves and creating custom stuff like Go SOA; you lose that and the complexity of the service amplifies. It also means you now have to hire rails + Go devs.<p>Go is a lower level language. You have to write a lot to do the basics that, in ruby&#x2F;rails, are just a method call away. This is not a free trade off or anywhere close to 1:1 on the productivity that this article claims. Yes, there are benefits to Go and for certain types of work it does well. But for literally 95% of the workloads out there, a set of background workers executing jobs does perfectly well up to some very large scales.<p>on a personal note, what draws me to ruby&#x2F;rails does not appear in Go. It&#x27;s a different language, different &quot;culture&quot; (or lack of), and different mindset on work and what should &amp; should not be. It&#x27;s more.... google.<p>Anyway, Go is the right choice in some situations. But for most, just stick with ruby on rails until you really start hitting growing pains. Shopify does 80K Requests PER SECOND on a rails stack.