Lộ trình đang học Current learning path Current learning path

Application Services Application Services Application Services

Lộ trình cho website hoặc API đang chạy: kiến trúc, khi nào dùng từng lớp, rồi lab bấm theo trên dashboard. A path for a live website or API: the architecture, when to use each layer, then a dashboard lab. A path for a live website or API: the architecture, when to use each layer, then a dashboard lab.

Về trang lộ trình Track home Track home

Phần 0: Kiến trúc và quy trình Part 0: Architecture and workflow Part 0: Architecture and workflow · Bài 1/1 Lesson 1/1 Lesson 1/1

Kiến thức Knowledge Knowledge Khoảng 15 phút About 15 min About 15 min

Kiến trúc Application Services và thứ tự làm Application Services architecture and the build order Application Services architecture and the build order

Không cần bài trước. No prerequisites. No prerequisites. Nếu DNS hay proxy còn mới, làm bước 0 trước. If DNS or the proxy is new, do step 0 first. If DNS or the proxy is new, do step 0 first.

Ý chính Main ideas Main ideas

Khách vào site theo đường: DNS, rồi proxy (đám mây cam), SSL, WAF, cache, rồi mới tới origin. Làm đúng thứ tự đó. Khi nền chưa xong, đừng chuyển sang API Shield hay Load Balancing. A visitor reaches your site through DNS, then the proxy (orange cloud), SSL, WAF, cache, and only then the origin. Follow that order. Do not branch to API Shield or Load Balancing before the base is in place. A visitor reaches your site through DNS, then the proxy (orange cloud), SSL, WAF, cache, and only then the origin. Follow that order. Do not branch to API Shield or Load Balancing before the base is in place.

Application Services architecture and the build order

Cách hoạt động How it works How it works

Cloudflare đứng giữa khách và máy chủ của bạn. Record được proxy thì request HTTP đi qua mạng Cloudflare. Record chỉ DNS (đám mây xám) thì Cloudflare trả địa chỉ, không xem nội dung HTTP — WAF và cache không chạy trên record đó. Cloudflare sits between the visitor and your server. A proxied record sends HTTP through Cloudflare’s network. A DNS-only record (grey cloud) only returns an address. WAF and cache do not run on that record. Cloudflare sits between the visitor and your server. A proxied record sends HTTP through Cloudflare’s network. A DNS-only record (grey cloud) only returns an address. WAF and cache do not run on that record.

Kiến trúc Architecture Architecture

Thứ tự xây: (1) đưa domain lên và rà DNS, (2) bật proxy đúng hostname public, (3) SSL Full (strict) khi origin có chứng chỉ hợp lệ, (4) WAF và rate limit, (5) cache cho file tĩnh. API Shield, Load Balancing và Waiting Room là nhánh sau, khi nền đã chạy. Build order: (1) onboard the domain and review DNS, (2) proxy the public hostnames, (3) SSL Full (strict) when the origin has a valid certificate, (4) WAF and rate limiting, (5) cache for static files. API Shield, Load Balancing, and Waiting Room come after that base is working. Build order: (1) onboard the domain and review DNS, (2) proxy the public hostnames, (3) SSL Full (strict) when the origin has a valid certificate, (4) WAF and rate limiting, (5) cache for static files. API Shield, Load Balancing, and Waiting Room come after that base is working.

Sơ đồ Diagrams Diagrams

Hình 1: Tổng quan luồng dữ liệu

Thiết kế kiến trúc hiệu năng web phân tán Designing a distributed web performance architecture Designing a distributed web performance architecture

Pattern L7: data flow, cache tiers, deployment models — giảm latency và cải thiện Core Web Vitals. A prescriptive pattern for building a Cloudflare-based L7 performance architecture that reduces latency, raises cache efficiency, and improves Core Web Vitals. A prescriptive pattern for building a Cloudflare-based L7 performance architecture that reduces latency, raises cache efficiency, and improves Core Web Vitals.

Thuật ngữ: Concepts: Concepts: CDN · Cache · Core Web Vitals · Smart Shield · Argo

Sơ đồ chính thức ↗ Official diagram ↗ Official diagram ↗ · Phân phối nội dung Content Delivery Content Delivery

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

Dùng lộ trình này khi bạn đã có website, web app hoặc API public và muốn Cloudflare đứng trước origin. Use this path when you already have a website, web app, or public API and you want Cloudflare in front of the origin. Use this path when you already have a website, web app, or public API and you want Cloudflare in front of the origin.

Khi nào không dùng When not to use it When not to use it

Đừng bắt đầu bằng API Shield hay Load Balancing nếu zone chưa Active và hostname public chưa Proxied. Hai sản phẩm đó không thay bước DNS và proxy. Do not start with API Shield or Load Balancing if the zone is not Active and the public hostname is not Proxied. Those products do not replace DNS and the proxy. Do not start with API Shield or Load Balancing if the zone is not Active and the public hostname is not Proxied. Those products do not replace DNS and the proxy.

Gói và giới hạn Plans and limits Plans and limits

Bắt đầu bằng gói Free cho full setup (đổi nameserver) là đủ để học DNS, proxy và SSL. CNAME setup (partial) chỉ có trên Business và Enterprise — đó không phải Custom Hostnames / SSL for SaaS. Xem bảng ở đầu track. Nguồn: https://developers.cloudflare.com/dns/zone-setups/ (2026-11-11). Free is enough to learn DNS, the proxy, and SSL on a full setup (nameserver change). CNAME setup (partial) is Business and Enterprise only — that is not Custom Hostnames / SSL for SaaS. See the table at the top of the track. Source: https://developers.cloudflare.com/dns/zone-setups/ (2026-11-11). Free is enough to learn DNS, the proxy, and SSL on a full setup (nameserver change). CNAME setup (partial) is Business and Enterprise only — that is not Custom Hostnames / SSL for SaaS. See the table at the top of the track. Source: https://developers.cloudflare.com/dns/zone-setups/ (2026-11-11).

Không phải báo giá. Đối chiếu docs và dashboard. Kiểm tra lần cuối: 2026-11-11. Not a price quote. Check the docs and the dashboard. Last checked: 2026-11-11. Not a price quote. Check the docs and the dashboard. Last checked: 2026-11-11.

Thuật ngữ Glossary Glossary

  • Origin Origin Origin

    Máy chủ thật đang giữ website hoặc API của bạn. The server that actually hosts your website or API. The server that actually hosts your website or API.

  • Proxy Proxy Proxy

    Đám mây cam. Request HTTP đi qua Cloudflare. The orange cloud. HTTP requests go through Cloudflare. The orange cloud. HTTP requests go through Cloudflare.

Mở bảng thuật ngữ → Open the glossary → Open the glossary →
Các bước thao tác trên dashboard Steps on the dashboard Steps on the dashboard Mở Expand Expand

Ví dụ triển khai (Cloudflare Resources) Deployment examples (Cloudflare Resources) Deployment examples (Cloudflare Resources)

Ví dụ chính thức từ Cloudflare Resources — gợi ý theo chủ đề bài học trong lộ trình này. Official examples from Cloudflare Resources — matched to this lesson within this path. Official examples from Cloudflare Resources — matched to this lesson within this path.

Tutorial Tutorial Tutorial Developer Platform Developer Platform Developer Platform

Thêm một site Add a site បន្ថែមគេហទំព័រ

Hướng dẫn này sử dụng Pulumi Infrastructure as Code (IaC) để làm quen với vòng đời quản lý tài nguyên.

This tutorial uses Pulumi infrastructure as code (IaC) to familiarize yourself with the resource management lifecycle.

ការបង្រៀននេះប្រើហេដ្ឋារចនាសម្ព័ន្ធ Pulumi ជាកូដ (IaC) ដើម្បីស្គាល់ខ្លួនអ្នកជាមួយនឹងវដ្តជីវិតនៃការគ្រប់គ្រងធនធាន។

Tìm hiểu thêm Learn more ស្វែងយល់បន្ថែម
Tutorial Tutorial Tutorial Cloudflare One Cloudflare One Cloudflare One

Tạo API thành access D1 bằng cách sử dụng Proxy Worker Build an API to access D1 using a proxy Worker បង្កើត API ទៅ access D1 ដោយប្រើប្រូកស៊ីកម្មករ

Hướng dẫn này cho thấy cách tạo một API cho phép bạn chạy truy vấn an toàn chống lại một cơ sở dữ liệu D1. API có thể được sử dụng để tùy chỉnh các điều khiển access và/hoặc giới hạn các bảng có thể được truy vấn.

This tutorial shows how to create an API that allows you to securely run queries against a D1 database. The API can be used to customize access controls and/or limit what tables can be queried.

ការបង្រៀននេះបង្ហាញពីរបៀបបង្កើត API ដែលអនុញ្ញាតឱ្យអ្នកដំណើរការសំណួរដោយសុវត្ថិភាពប្រឆាំងនឹងមូលដ្ឋានទិន្នន័យ D1 ។ API អាចត្រូវបានប្រើដើម្បីប្ដូរតាមបំណង access គ្រប់គ្រង និង/ឬកំណត់តារាងដែលអាចសួរបាន។

Tìm hiểu thêm Learn more ស្វែងយល់បន្ថែម
Tutorial Tutorial Tutorial Application Services Application Services Application Services

Thêm ngoại lệ với Page Rules Add exceptions with Page Rules បន្ថែមករណីលើកលែងជាមួយ Page Rules

Page Rules cho phép bạn bỏ qua cài đặt khu vực cho các mẫu URL cụ thể. Chuyển hướng các URL cũ với một chuyển hướng 301 vĩnh viễn

Page Rules let you override zone settings for specific URL patterns. Redirects old URLs with a 301 permanent redirect.

Page Rules អនុញ្ញាតឱ្យអ្នកបដិសេធការកំណត់តំបន់សម្រាប់លំនាំ URL ជាក់លាក់។ បញ្ជូនបន្ត URLs ចាស់ជាមួយនឹង 301 ប្តូរទិសអចិន្ត្រៃយ៍។

Tìm hiểu thêm Learn more ស្វែងយល់បន្ថែម

Xem thêm ví dụ trong lộ trình → More examples in this path → More examples in this path →

Tài liệu Cloudflare Developers Cloudflare Developer docs Cloudflare Developer docs

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

Học xong hoặc muốn đổi hướng? Finished or want a different path? Finished or want a different path?

Ba lộ trình độc lập — mỗi lộ trình chỉ gồm bài học và tài liệu trong phạm vi đó. Chọn lộ trình khác khi sẵn sàng, không cần học song song. Three independent paths — each includes only lessons and materials for that scope. Switch when you are ready; no need to study paths in parallel. Three independent paths — each includes only lessons and materials for that scope. Switch when you are ready; no need to study paths in parallel.

Chưa chắc — làm bài chọn lộ trình Not sure — use the path selector Not sure — use the path selector · So sánh cả ba lộ trình Compare all three paths Compare all three paths