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版)
持久化
|
129
blobService.createBlockBlobFromFile('uploads', filename, __dirname +
'/tmp/' + filename)
更多细节请查看微软的
Azure
的文档。
我们已经了解了文件存储的几项技术,现在考虑结构化数据的存储:使用数据库。
13.3
 数据库持久化
除了最简单的网站和
Web
应用,其他的网站和
Web
应用都需要一个数据库。即使你的数
据是二进制的,并且已经在使用共享文件系统或者云存储,很可能你也希望有一个数据库
来帮助归类这些二进制数据。
传统上,
数据库
这个词是
关系型数据库管理系统
(
RDBMS
)
的简称。关系型数据库,比
如
Oracl
e
、
Mysql
、
PostgreSQL
或
SQL Server
,都是以几十年的研究和形式化的数据库理
论为基础的,目前数据库这项技术已经非常成熟,这些数据库的威力也是无可置疑的。然
而,现在我们可以扩展对数据库组成的概念。近年来
NoSQL
数据库成了新风尚
,它们正
在改变互联网数据存储的方式。
声称
NoSQL
数据库要优于关系型数据库是愚蠢的
,但是
NoSQL
数据库也有其优势(关系
型数据库也有)。尽管在
Node
应用中整合关系型数据库已经相当容易
,但
NoSQL
数据库
简直就是为
Node
而生的。
两种最流行的
NoSQL
数据库类型是
文档数据库
和
键值数据库
。文档数据库擅长对象的存
储,这使得它们天然适合于
Node
和
JavaScript
。键值数据库
,正如其名,非常简单,对于
那些数据模式很容易映射成键值对的应用来说是非常好的选择。 ...
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