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

Developer Platform Developer Platform Developer Platform

Lộ trình cho người muốn ship API hoặc tool mà không quản máy chủ. Đọc bài kiến thức, rồi làm lab hub, rồi lab chính thức nếu có. A path for people who want to ship an API or a tool without running a server. Read the knowledge lesson, do the hub lab, then the official lab when one exists. ផ្លូវសម្រាប់អ្នកចង់ ship API ឬ tool ដោយមិនដំណើរការ server។ អានមេរៀនចំណេះដឹង រួចធ្វើ lab hub រួច lab ផ្លូវការ បើមាន។

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

Phần 4: Vận hành và bước tiếp Part 4: Operate and level up ផ្នែក 4: ដំណើរការ និង ឡើងកម្រិត · Bài 1/3 Lesson 1/3 Lesson 1/3

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

Log và Turnstile Logs and Turnstile Logs and Turnstile

Nên đọc trước: Read first: Read first: KV, D1 và R2 KV, D1, and R2 KV, D1, and R2

Ý chính Main ideas Main ideas

Worker lỗi thì không có máy chủ để SSH vào. Bạn xem log. Form public cần Turnstile, và token phải được kiểm tra trên server trước khi ghi D1. When a Worker fails, there is no server to SSH into. You read the logs. A public form needs Turnstile, and the token must be checked on the server before you write to D1. When a Worker fails, there is no server to SSH into. You read the logs. A public form needs Turnstile, and the token must be checked on the server before you write to D1.

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

`wrangler tail` hiện log lúc bạn gọi API. Dashboard cũng có log. Turnstile hiện thử thách trên form. Server gửi token đó tới Cloudflare. Chỉ khi Cloudflare nói token hợp lệ thì mới INSERT. `wrangler tail` prints logs while you call the API. The dashboard has logs too. Turnstile shows a check on the form. The server sends that token to Cloudflare. Only when Cloudflare says the token is valid do you INSERT. `wrangler tail` prints logs while you call the API. The dashboard has logs too. Turnstile shows a check on the form. The server sends that token to Cloudflare. Only when Cloudflare says the token is valid do you INSERT.

Kiến trúc Architecture Architecture

Widget trên trang chỉ là nửa đầu. Ai cũng có thể POST thẳng vào API và bỏ qua widget. Nhánh kiểm tra nằm trong Worker hoặc Function, cạnh câu lệnh ghi database. The widget on the page is only the first half. Anyone can POST straight to the API and skip the widget. The check belongs in the Worker or Function, next to the database write. The widget on the page is only the first half. Anyone can POST straight to the API and skip the widget. The check belongs in the Worker or Function, next to the database write.

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

Bật log trước khi đoán lỗi. Thêm Turnstile khi form ghi dữ liệu thật: đăng ký, liên hệ, OTP. Turn logs on before you guess at a bug. Add Turnstile when a form writes real data: signup, contact, OTP. Turn logs on before you guess at a bug. Add Turnstile when a form writes real data: signup, contact, OTP.

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

Đừng coi widget là đủ. Đừng tắt log trên production rồi mới hỏi vì sao API im. Do not treat the widget as enough. Do not turn logs off in production and then ask why the API is silent. Do not treat the widget as enough. Do not turn logs off in production and then ask why the API is silent.

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

Workers Logs có trên Free và Paid. Đến 1 tháng 12 năm 2026, Free là 200.000 sự kiện/ngày, giữ 3 ngày. Sau ngày đó docs chuyển sang giá Observability. Turnstile dùng được trên mọi gói, không tính phí widget. Tài khoản Free được 20 widget. Nguồn: https://developers.cloudflare.com/workers/observability/logs/workers-logs/ https://developers.cloudflare.com/turnstile/plans/ Workers Logs exist on Free and Paid. Until 1 December 2026, Free is 200,000 events per day, kept for 3 days. After that, the docs switch to Observability pricing. Turnstile is available on all plans at no cost for the widget. A Free account can have 20 widgets. Sources: https://developers.cloudflare.com/workers/observability/logs/workers-logs/ https://developers.cloudflare.com/turnstile/plans/ Workers Logs exist on Free and Paid. Until 1 December 2026, Free is 200,000 events per day, kept for 3 days. After that, the docs switch to Observability pricing. Turnstile is available on all plans at no cost for the widget. A Free account can have 20 widgets. Sources: https://developers.cloudflare.com/workers/observability/logs/workers-logs/ https://developers.cloudflare.com/turnstile/plans/

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

  • wrangler tail wrangler tail wrangler tail

    Lệnh xem log Worker đang chạy, gần như xem trực tiếp. The command that shows logs from a running Worker, close to live. The command that shows logs from a running Worker, close to live.

  • Siteverify Siteverify Siteverify

    Bước server hỏi Cloudflare xem token Turnstile có thật không. The server step that asks Cloudflare whether a Turnstile token is real. The server step that asks Cloudflare whether a Turnstile token is real.

Mở bảng thuật ngữ → Open the glossary → Open the glossary →

Làm lab Do the lab Do the lab

Lab nằm ở bài riêng. Đọc ý chính trước, rồi mở lab. Labs live on their own pages. Read the main ideas, then open a lab. Labs live on their own pages. Read the main ideas, then open a lab.

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 React form với Formspree Add a React form with Formspree បន្ថែមទម្រង់ប្រតិកម្មជាមួយ Formspree

Tìm hiểu cách thêm React form với Formspree, một dịch vụ back-end xử lý và lưu trữ form.

Learn how to add a React form with Formspree, a back-end service that handles form processing and storage.

ស្វែងយល់ពីរបៀបបន្ថែមទម្រង់ React ជាមួយ Formspree ដែលជាសេវាកម្មផ្នែកខាងក្រោយដែលគ្រប់គ្រងដំណើរការ និងការផ្ទុកទម្រង់។

Tìm hiểu thêm Learn more ស្វែងយល់បន្ថែម
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 Developer Platform Developer Platform Developer Platform

Thêm HTML form với Formspree Add an HTML form with Formspree បន្ថែម HTML form ជាមួយ Formspree

Học cách thêm HTML form với Formspree — dịch vụ back-end xử lý và lưu dữ liệu form.

Learn how to add an HTML form with Formspree, a back-end service that handles form processing and storage.

រៀនរបៀបបន្ថែម HTML form ជាមួយ Formspree — សេវា back-end ដែលដំណើរការ និងរក្សាទុកទិន្នន័យ form។

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

Thêm mô hình AI mới vào sân chơi của bạn (Phần 2) Add New AI Models to your Playground (Part 2) បន្ថែមម៉ូដែល AI ថ្មីទៅក្នុងសួនកុមាររបស់អ្នក (ផ្នែកទី 2)

Trong phần 2, Kristian mở rộng trên môi trường hiện có được xây dựng trong phần 1, bằng cách cho bạn thấy cách tích hợp các mô hình AI mới và giới thiệu các thông số mới cho phép bạn tùy chỉnh cách images được tạo ra.

In part 2, Kristian expands upon the existing environment built in part 1, by showing you how to integrate new AI models and introduce new parameters that allow you to customize how images are generated.

នៅក្នុងផ្នែកទី 2 Kristian ពង្រីកលើបរិស្ថានដែលមានស្រាប់ដែលបានសាងសង់ក្នុងផ្នែកទី 1 ដោយបង្ហាញអ្នកពីរបៀបបញ្ចូលគំរូ AI ថ្មី និងណែនាំប៉ារ៉ាម៉ែត្រថ្មីដែលអនុញ្ញាតឱ្យអ្នកប្ដូរតាមបំណងពីរបៀបដែល images ត្រូវបានបង្កើត។

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

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