javascript - 服务器端编程选择 Laravel 还是 NodeJS 哪种语言

标签 javascript php node.js

我知道 Html、CSS、javascript、bootstrap,所以我想继续前进,但我很困惑该选择哪种服务器端语言,我学习了基本的 PHP。我有一个项目要完成,需要实时协作、文件上传等。现在我想在 2 到 3 个月内学习并完成我的项目。需要一些建议。 TIA

最佳答案

尽管您可以使用 PHP 创建实时应用程序,但 Node.js “自然”更适合此类应用程序。除此之外,正如您所说,您正在选择一种新的语言来学习,我建议您看看哪种语言变得更具表现力,并且从现在开始可能会在市场上更具吸引力。 Stack Overflow 的开发者调查是您开始这项研究的良好信息来源。

2017 年: https://insights.stackoverflow.com/survey/2017#most-popular-technologies

2016 年: https://insights.stackoverflow.com/survey/2016#technology-most-popular-technologies

作为我所说的 Node.js 和实时应用程序的基础:

你到底为什么要使用 Node.js

https://medium.com/the-node-js-collection/why-the-hell-would-you-use-node-js-4b053b94ab8e

Where Node.js really shines is in building fast, scalable network applications, as it’s capable of handling a huge number of simultaneous connections with high throughput, which equates to high scalability. How it works under-the-hood is pretty interesting. Compared to traditional web-serving techniques where each connection (request) spawns a new thread, taking up system RAM and eventually maxing-out at the amount of RAM available, Node.js operates on a single-thread, using non-blocking I/O calls, allowing it to support tens of thousands of concurrent connections (held in the event loop).

Node.js 的哪些方面使其适合实时 Web 应用程序?

https://www.quora.com/What-aspects-of-Node-js-make-it-suitable-for-real-time-web-applications

这里为您的冒险提供了一些建议:

关于javascript - 服务器端编程选择 Laravel 还是 NodeJS 哪种语言,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44991122/

相关文章:

javascript - Apple如何在其新的mac pro说明页面上使html5视频向后播放?

javascript - 读取 jQuery 数据值

javascript - 根据相应的类将值迭代到不同的元素中

php - 如何编写可以修改 PHP 解释器内部结构的自定义 PHP 扩展?

javascript - 在三个条件下无法在长度为三的数组上获得三个结果

javascript - 使用 Cube.js 保留数据

javascript - 需要强制从不是通过单击按钮启动的 Javascript 回发

javascript - 我们可以在jmeter中解析响应吗

php - 页面底部不明空间

node.js - 从 Node 中的对象生成一致的 sha256 哈希值