Storage & Databases Storage & Databases

D1 D1

D1 là database SQL (SQLite) serverless của Cloudflare, phù hợp lưu dữ liệu có schema và query. SQLite serverless, replicate globally — bảng quan hệ nhỏ/vừa, workshop signup, config app. D1 is Cloudflare’s serverless SQL (SQLite) database for schema-based data and queries. Serverless SQLite, globally replicated — small/medium relational data, signups, app config.

D1
Sơ đồ tham chiếu từ Cloudflare Developer Docs — bấm vào sơ đồ bên dưới để xem bản đầy đủ. Reference figure from Cloudflare Developer Docs — see diagrams below for the full official version.

Là gì? What is it?

D1 là database SQL (SQLite) serverless của Cloudflare, phù hợp lưu dữ liệu có schema và query. SQLite serverless, replicate globally — bảng quan hệ nhỏ/vừa, workshop signup, config app. D1 is Cloudflare’s serverless SQL (SQLite) database for schema-based data and queries. Serverless SQLite, globally replicated — small/medium relational data, signups, app config.

Tại sao quan trọng? Why it matters

Lưu file, config và SQL nhỏ gọn — gắn trực tiếp vào Workers/Pages qua binding. Store files, config, and small SQL — bind directly to Workers/Pages.

Khi nào nên dùng? When to use it

  • Khi bạn cần giải pháp D1 trên Cloudflare thay vì tự host When you need D1 on Cloudflare instead of self-hosting
  • Khi team mới bắt đầu và muốn bản free/low-ops để thử When your team is starting out and wants a low-ops free tier to experiment
  • Khi tài liệu chính thức gợi ý sản phẩm này cho use case của bạn When official docs recommend this product for your use case

Ví dụ đơn giản Simple example

Ví dụ: một team SME bật D1 cho website onboarding — họ thấy lợi ích ngay mà chưa cần kiến trúc phức tạp. Example: an SME team enables D1 for an onboarding site — they see value quickly without a complex architecture.

Đừng nhầm D1 với toàn bộ nền tảng Cloudflare — đây là một mảnh ghép; kết hợp với DNS/proxy và sản phẩm liên quan. Don’t confuse D1 with the entire Cloudflare platform — it’s one piece; combine it with DNS/proxy and related products.

Hình ảnh trực quan (Cloudflare Docs) Visual guides (Cloudflare Docs)

Figure 1: Cloudflare Developer Platform

Fullstack applications Fullstack applications

Ví dụ fullstack trên Developer Platform — Workers/Pages, storage và AI services trong một kiến trúc thực tế. A practical example of how these services come together in a real fullstack application architecture.

Thuật ngữ: Concepts: Workers · Pages · D1 · R2 · KV · Durable Objects

Sơ đồ chính thức ↗ Official diagram ↗ · Serverless Serverless

Figure 1:  Traditional single-region architecture

Serverless global APIs Serverless global APIs

An example architecture of a serverless API on Cloudflare and aims to illustrate how different compute and data products could interact with each other. An example architecture of a serverless API on Cloudflare and aims to illustrate how different compute and data products could interact with each other.

Thuật ngữ: Concepts: Workers · D1 · R2 · Global API · Edge compute

Sơ đồ chính thức ↗ Official diagram ↗ · Serverless Serverless

Sản phẩm liên quan Related products

Tiếp theo Next step

Quay lại bản đồ sản phẩm hoặc chọn lộ trình học phù hợp. Return to the product map or pick a learning track.