<p>I would like to know if companies tend to always only use Go or Node.js as backend solution for their server or in some cases it is useful to use both.</p>
<hr/>**评论:**<br/><br/>titpetric: <pre><p>I'm using node for services that already exist and might be considered good enough to use. Generally it's useful to use existing prior work in any language if it saves dev time and time to market. From what I've seen, people are pretty exclusive as to what kind of stack they use (for obvious reasons), but there are complementary/equivalent implementations of some stuff in both languages. For example, if you want an image processing library, you have <a href="https://github.com/h2non/bimg" rel="nofollow">bimg</a> in Go, and <a href="https://github.com/lovell/sharp" rel="nofollow">sharp</a> in Node, and they are pretty much equivalent. In the end it's mostly the case of whatever language is more comfortable for the devs you manage to attract.</p>
<p>I really use Node only for some tooling where it's untyped nature becomes an advantage. Somewhat. Most of the time, Go outperforms Node by a wide margin for any kind of network service which I've implemented in both languages, so considering that Node is single threaded and you have to bolt-on process management and scaling, I've just stopped developing back-end stuff with Node. I can't say it's not worth it, it just becomes obsolete as soon as you know enough Go to write even the simplest JSON API.</p></pre>shark1337: <pre><p>The old company that I've worked for used to use c# for the API and node js for the rest (sessions, serving static files etc). Also, I'm planning to run in production with a go API and probably some crystal, even though I've good experience with node, won't trade native code for a scripted language..</p></pre>
What are the advantages for companies to use both Go and Nodejs on the backend?
agolangf · · 412 次点击这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传