# Cloudflare, Workers 용 SQL 데이터베이스 D1 공개

> Clean Markdown view of GeekNews topic #6553. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=6553](https://news.hada.io/topic?id=6553)
- GeekNews Markdown: [https://news.hada.io/topic/6553.md](https://news.hada.io/topic/6553.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2022-05-16T09:31:53+09:00
- Updated: 2022-05-16T09:31:53+09:00
- Original source: [blog.cloudflare.com](https://blog.cloudflare.com/introducing-d1/)
- Points: 10
- Comments: 4

## Topic Body

- SQLite 기반으로 API 그대로 지원  
- 읽기용 클론을 만들어서 최신으로 자동 업데이트   
- 배치 API로 여러 개의 SQL문장을 한번에 실행(트랜잭션)  
- egress 비용 무료   
- R2 저장소에 스냅샷을 주기적으로 자동 저장

## Comments



### Comment 10011

- Author: xguru
- Created: 2022-05-16T09:32:05+09:00
- Points: 1

SQLite 는 원래가 서버리스(라이브러리)니까 서버리스인 Worker에는 잘 어울리는 듯 한데..  
뭔가 세부내용이 너무 없긴 하네요. 각 엣지에서 돌아가면 어떻게 글로벌 동기화가 되는지 등등

### Comment 10015

- Author: cometkim
- Created: 2022-05-16T09:59:44+09:00
- Points: 2
- Parent comment: 10011
- Depth: 1

D1은 Durable Objects의 Transactional Storage API를 활용합니다.  
  
Durable Objects는 특정 인스턴스가 글로벌 네트워크에서 동시에 단 한 곳에서만 유지되는 것을 클라우드플레어가 보장해주기 때문에, 분산으로 인한 일관성 문제가 발생하진 않아요.  
  
요컨데 프로비저닝이 최소화된 DX 중점적인 제품이라고 보시면 될 것 같습니다. 아직은요 ㅎㅎ

### Comment 10016

- Author: cometkim
- Created: 2022-05-16T10:01:53+09:00
- Points: 1
- Parent comment: 10015
- Depth: 2

관련해서 CEO인 매튜가 아주 흥미로운 스포일러를 남겼습니다.  
  
https://twitter.com/eastdakota/status/1524770651764146176  
  
D0(Durable Objects, 기호를 통한 말장난), D1 (SQL Database), 그럼 D2는?

### Comment 10019

- Author: xguru
- Created: 2022-05-16T10:45:01+09:00
- Points: 1
- Parent comment: 10016
- Depth: 3

ㅎㅎ 재미나네요. 과연 뭐가 되려나요.
