服务器端 javascript - 常规

发布于 2024-12-22 06:18:27 字数 375 浏览 3 评论 0原文

可能的重复:
什么是 Node.js?
Node.js 的用法Node.js - 它旨在为哪些障碍提供坡道?

使用服务器端 javascript 的正确场景是什么?像节点.js 它解决什么样的问题?

Possible Duplicate:
What is node.js?
Usages of Node.js - What obstacles is it aiming to provide a ramp for?

What is the correct scenario to use server side javascript? like node.js
What kind of problems it solves?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

深海夜未眠 2024-12-29 06:18:27
  • Node.js 解决了从基于 I/O 的服务器为许多并发用户提供服务的问题。
  • I/OI 意味着在请求响应周期中几乎不进行任何计算
    服务器部分。
  • 我所说的并发是指成千上万的用户可以与服务器保持开放的连接。
  • 拥有持久连接允许实时通信,服务器可以推送打开的连接,从某种意义上说,服务器可以被认为是发起通信(comet,服务器推送)。

所有这些都允许用很少的服务器资源和实时通信(聊天等)来拥有大量的用户群。

  • Node.js solves the problem of serving many concurrent users from I/O based servers.
  • By I/O I mean that little to none computation is done in the request response cycle from the
    server part.
  • By concurrent I meany that thousands of users can keep a connection open with the server.
  • Having a persistent connection allows real time communication, the server can push over the opened connection, in a sense this way the server can be thought of as initiating the communication (comet, server push).

All this allows having a large user-base with little server resources and real-time communication (chat etc).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文