클라이언트가 서버에 처리할 데이터를 보내면 서버는 이후의 세션에서 조회할 수 있도록 이 데
이터를 저장하는 일이 많다. 데이터를 메모리에 장시간 저장하는 것은 신뢰성이 떨어진다. 시
스템 재시작과 충돌 등으로 데이터 손실이 일어나기 때문이다. 또한 램은 디스크에 비해 상당
히 비싸다.
디스크에 데이터를 저장할 때는 데이터를 안전하고 빠르게 조회, 저장, 질의할 수 있게 적절한
주의를 기울여야 한다. 지금의 웹 애플리케이션 대부분은 사용자가 제출한 데이터를 데이터베
이스에 저장하는데 어떤 종류의 데이터베이스를 사용할 것인지는 비즈니스 로직과 용도에 따
라 달라진다.
SQL
데이터베이스는 범용 데이터베이스로 시장에서 가장 널리 사용되는 유형이다. 질의 언어
인
SQL
은 엄격하지만 속도가 빠르며 배우기 쉽다.
SQL
을 가지고 사용자 자격 증명부터
JSON
객체 관리나 작은 이미지 블롭
binary
large
object
(
BLOB
)까지 다룰 수 있다.
PostgreSQL
, 마이크로
소프트
SQL
서버
Microsoft
SQL
Server
,
MySQL
,
SQLite
등의
SQL
데이터베이스가 널리 사용된다.
좀 더 유연한 스토리지가 필요할 때는 스키마가 없는
NoSQL
데이터베이스를 사용할 수 있다.
몽고
DB
, 도큐먼트
DB
DocumentDB
, 카우치
DB
CouchDB
같은 데이터베이스는 정보를 느슨한 구조를
가진 ‘문서’로 저장하여 유연성이 높은 반면 다루기가 어렵거나 조회와 집계의 효율성이 ...
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.
O’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
I 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
I’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
I'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.