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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: How can I improve the performance of this Node.js app?

1 点作者 gengstrand超过 8 年前
I have heard how node.js apps are faster than Java so I was surprised when I load tested node.js micro-service https://github.com/gengstrand/clojure-news-feed/tree/master/server/feed4 and compared the results with the same load test of this feature identical Java version https://github.com/gengstrand/clojure-news-feed/tree/master/server/feed3 and found the node.js service to have 40% lower throughput and from 19 to 34% higher latency. What could I have done to make this app faster?

1 comment

ankurdhama超过 8 年前
Use node cluster mode to run multiple processes to handle the requests so that you are using all the cores of the machine.
评论 #13457060 未加载