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 6: Durable Objects, Queues, Workflows, Hyperdrive Part 6: Durable Objects, Queues, Workflows, Hyperdrive ផ្នែក 6: Durable Objects, Queues, Workflows, Hyperdrive · Bài 1/2 Lesson 1/2 Lesson 1/2

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

Durable Objects, Queues, Workflows, Hyperdrive Durable Objects, Queues, Workflows, Hyperdrive Durable Objects, Queues, Workflows, Hyperdrive

Nên đọc trước: Read first: Read first: Workers AI, Gateway và agent Workers AI, Gateway, and agents Workers AI, Gateway, and agents

Ý chính Main ideas Main ideas

Bốn sản phẩm, bốn việc. Cả bốn đều có mức Free có hạn, không phải “chỉ Paid”. Chọn một cái khi Worker và storage đã ổn. Đối chiếu dashboard trước khi bật. Four products, four jobs. All four have a limited Free allowance. They are not “Paid only”. Pick one after the Worker and storage are stable. Check the dashboard before you turn one on. Four products, four jobs. All four have a limited Free allowance. They are not “Paid only”. Pick one after the Worker and storage are stable. Check the dashboard before you turn one on.

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

Durable Object giữ trạng thái của một thứ, ví dụ một phòng chat. Trên Free chỉ có backend SQLite. Queue nhận việc nền và làm sau. Workflow là chuỗi bước dài, có thể tạm dừng (sleep) giữa các bước. Hyperdrive nối Worker tới Postgres hoặc MySQL bên ngoài. Nó không thay D1. A Durable Object keeps the state of one thing, such as one chat room. On Free, only the SQLite backend is available. A queue takes background work and does it later. A Workflow is a long chain of steps that can pause (sleep) between steps. Hyperdrive connects a Worker to external Postgres or MySQL. It does not replace D1. A Durable Object keeps the state of one thing, such as one chat room. On Free, only the SQLite backend is available. A queue takes background work and does it later. A Workflow is a long chain of steps that can pause (sleep) between steps. Hyperdrive connects a Worker to external Postgres or MySQL. It does not replace D1.

Kiến trúc Architecture Architecture

Worker thường vô trạng thái. Những sản phẩm này thêm trạng thái, hàng đợi, hoặc đường tới database có sẵn. Gắn một binding, đừng gắn cả bốn cho lab đầu. A Worker is usually stateless. These products add state, a queue, or a path to a database you already have. Attach one binding. Do not attach all four for the first lab. A Worker is usually stateless. These products add state, a queue, or a path to a database you already have. Attach one binding. Do not attach all four for the first lab.

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

Đọc để biết mình chưa cần mua gì. Làm lab hub khi một use case thật đã chọn đúng một sản phẩm. Read this to see what you do not need to buy yet. Do the hub lab when a real use case has picked exactly one product. Read this to see what you do not need to buy yet. Do the hub lab when a real use case has picked exactly one product.

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

Đừng thêm Durable Object chỉ để lưu một cờ. Việc đó là KV. Đừng dùng Hyperdrive thay database SQL nhỏ. Việc đó là D1. Do not add a Durable Object just to store one flag. That job is KV. Do not use Hyperdrive instead of a small SQL database. That job is D1. Do not add a Durable Object just to store one flag. That job is KV. Do not use Hyperdrive instead of a small SQL database. That job is D1.

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

Tách từng sản phẩm, kiểm tra 2026-11-15. Durable Objects: có trên Free, chỉ SQLite. Bảng giá: 5 triệu dòng đọc/ngày, 100.000 dòng ghi/ngày, 5 GB tổng. Trang limits: một object SQLite trên Free ngừng ghi ở 1 GB. Vượt hạn Free thì thao tác đó lỗi. Queues: trang pricing ghi 10.000 thao tác/ngày và giữ tin 24 giờ trên Free. Một tutorial vẫn nói phải có Workers Paid mới bật Queues trong dashboard — xem dashboard. Workflows: có trên Free, 3.000 step/ngày, CPU 10 ms, request dùng chung hạn mức Workers. Hyperdrive: 100.000 query/ngày trên Free; vượt hạn thì query lỗi. Nguồn: https://developers.cloudflare.com/durable-objects/platform/pricing/ https://developers.cloudflare.com/durable-objects/platform/limits/ https://developers.cloudflare.com/queues/platform/pricing/ https://developers.cloudflare.com/workflows/reference/pricing/ https://developers.cloudflare.com/hyperdrive/platform/pricing/ Split by product, checked 2026-11-15. Durable Objects: on Free, SQLite only. The pricing table lists 5 million rows read per day, 100,000 rows written per day, and 5 GB total. The limits page says one SQLite object on Free stops writes at 1 GB. Past a Free cap, that operation fails. Queues: the pricing page lists 10,000 operations per day and 24-hour retention on Free. One tutorial still says you need Workers Paid to enable Queues in the dashboard. Check the dashboard. Workflows: on Free, 3,000 steps per day, 10 ms of CPU, requests shared with the Workers quota. Hyperdrive: 100,000 queries per day on Free; past that cap, the query fails. Sources: https://developers.cloudflare.com/durable-objects/platform/pricing/ https://developers.cloudflare.com/durable-objects/platform/limits/ https://developers.cloudflare.com/queues/platform/pricing/ https://developers.cloudflare.com/workflows/reference/pricing/ https://developers.cloudflare.com/hyperdrive/platform/pricing/ Split by product, checked 2026-11-15. Durable Objects: on Free, SQLite only. The pricing table lists 5 million rows read per day, 100,000 rows written per day, and 5 GB total. The limits page says one SQLite object on Free stops writes at 1 GB. Past a Free cap, that operation fails. Queues: the pricing page lists 10,000 operations per day and 24-hour retention on Free. One tutorial still says you need Workers Paid to enable Queues in the dashboard. Check the dashboard. Workflows: on Free, 3,000 steps per day, 10 ms of CPU, requests shared with the Workers quota. Hyperdrive: 100,000 queries per day on Free; past that cap, the query fails. Sources: https://developers.cloudflare.com/durable-objects/platform/pricing/ https://developers.cloudflare.com/durable-objects/platform/limits/ https://developers.cloudflare.com/queues/platform/pricing/ https://developers.cloudflare.com/workflows/reference/pricing/ https://developers.cloudflare.com/hyperdrive/platform/pricing/

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

  • Durable Object Durable Object Durable Object

    Một ô nhớ cho một thực thể, ví dụ một phòng hoặc một phiên. A memory cell for one entity, such as one room or one session. A memory cell for one entity, such as one room or one session.

  • Hyperdrive Hyperdrive Hyperdrive

    Cầu từ Worker tới Postgres hoặc MySQL sẵn có. Không phải D1. A bridge from a Worker to existing Postgres or MySQL. Not D1. A bridge from a Worker to existing Postgres or MySQL. Not D1.

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