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版)
上线
|
245
如果需要精确地在某个时间上线某个东西,就不能依赖于域名的变更。你应该配置你的服
务器,让它重定向到“即将上线”站点或页面,并且提前设置好
DNS
。然后在预定的时
刻,可以让服务器切换到新上线的站点,这样,不管你的用户在世界的哪个角落,就都能
立刻看到变更了。
21.1.6
 托管服务
起初,托管服务可能会让你眼花缭乱,不知如何选择。
Node
已经大获成功,广受欢迎,很
多人高嚷着要求提供
Node
托管服务来匹配需求
。而如何选择一个服务供应商,很大程度
上取决于你的需求。如果你有理由相信你的网站将是下一个亚马逊或
T
witter
,那么需要考
虑的问题就跟为当地的集邮俱乐部搭建一个网站要考虑的问题完全不一样了。
1.
传统托管还是云托管
“云”是近年来突然出现的、最模糊的技术术语之一。没错,它不过是“互联网”或“互
联网的一部分”的一种花哨说法。然而,这个术语也并非毫无用处。云端托管,通常隐含
着对计算资源的某种商品化,尽管这不是“云”这个术语技术定义的一部分。也就是说,
我们不再把一台服务器看作一个独特的物理实体,它只是云端某个地方的一个同质的资
源,服务器之间没有好坏之分。当然,我想的有些简单化了,毕竟计算资源是根据它们的
内存、
CUP
数等配置进行区分
(和定价)的。传统托管和云托管的区别在于,传统托管知
道(并关心)你的应用实际托管在哪一台服务器上,而云托管知道你的应用托管在云端的
某一台服务器上,并且在你不知道(也不会关心)的情况下,它可以轻易地转移到另一台
服务器。
云托管也是高度
虚拟化
的。也就是说,运行着你的应用的服务器通常不是物理机器 ...
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