Skip to Content
Node与Express开发(第2版)
book

Node与Express开发(第2版)

by Ethan Brown
June 2021
Intermediate to advanced
290 pages
9h 21m
Chinese
Posts & Telecom Press
Content preview from Node与Express开发(第2版)
Express
是什么
|
5
一个基于
Ruby
的
Web
框架。
Express
借鉴一个用
Ruby
写的框架并不奇怪:在
Web
开发方面,
Ruby
孵化出了大量卓越的新思路、新方法,使
We
b
开发变得更快捷、更高效和更好维护。
就像深受
Sinatra
启发一样
,
Express
还跟
Connect
深度交织在一起,这是
Node
应用的一
个插件库。
Connect
最初使用
中间件
这个术语来描述各种能在不同程度上处理
We
b
请求的
可插拔的
Node
模
块。
2014
年,
4.0
版本的
Node
移除了对
Connect
的依赖,不过仍然把其
“中间件”概念归功于
Connect
。
从版本
2.
x
到
3.0
,
Express
经历了大规模的重写;从
3.
x
到
4.0
,亦如此。本
书关注的是版本
4.0
。
1.5
 
Node
:
另一种
Web
服务器
某种程度上,
Node
跟其他几个流行的
Web
服务器,如微软的
IIS
或
Apache
,有很多共同
之处。不过,更有意思的是它们究竟有哪些不同。让我们从这里开始讲起。
对于
We
b
服务器,
Node
的做法也是最小化,这一点跟
Express
一样。不像
IIS
或
Apache
那样,需要花上数年时间去掌握,
Node
是很容易搭建和配置的
。这并不是说在生产环境
中为达到性能最大化去调优
Node
服务
器是一件很简单的事情,而是说比起那些服务器,
Node
的配置选项要简单多了。
Node
跟传统
We
b
服务器的另一个显著差异就是,
Node
是单线程的。乍一看去,这似乎
是一步倒退。而事实上,这是明智之举。单线程极大地简化了
We
b
应用的编程,而当需
要达到多线程应用的性能时 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

面向对象的思考过程(原书第5版)

面向对象的思考过程(原书第5版)

马特 魏斯费尔德
精通模块化JavaScript

精通模块化JavaScript

Nicolás Bevacqua

Publisher Resources

ISBN: 9787115565099