Developer Platform Developer Platform Developer Platform Trung cấp Intermediate កម្រិតមធ្យម ~9 phút đọc · ~654 từ ~9 min read · ~555 words

Cloudflare Developer Platform: xây ứng dụng toàn cầu mà không tự quản lý server Cloudflare Developer Platform: build global apps without managing servers yourself Cloudflare Developer Platform: build global apps without managing servers yourself

Developer Platform giống bộ lego edge: compute (Workers), hộp đựng (R2/KV/D1), AI, và lớp bảo vệ — lắp theo use case thay vì mua cả trung tâm dữ liệu. The Developer Platform is like an edge Lego set: compute (Workers), storage boxes (R2/KV/D1), AI, and protection layers — assemble by use case instead of buying a whole data center. The Developer Platform is like an edge Lego set: compute (Workers), storage boxes (R2/KV/D1), AI, and protection layers — assemble by use case instead of buying a whole data center.

Hình 1: Cloudflare Developer Platform

Ứng dụng fullstack 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. A practical example of how these services come together in a real fullstack application architecture.

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

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

Vì sao “không quản lý server” vẫn là kỹ sư thật? Why “no servers to manage” is still real engineering Why “no servers to manage” is still real engineering

Serverless không có nghĩa là không có máy chủ — chỉ là bạn không trực tiếp vá OS và thay đĩa. Bạn vẫn thiết kế API, mô hình dữ liệu, giới hạn chi phí, quan sát lỗi, và bảo mật. Developer Platform của Cloudflare gom các khối đó trên cùng mạng đã phục vụ CDN và bảo mật web. Serverless does not mean no computers exist — it means you are not patching OS disks yourself. You still design APIs, data models, cost limits, error observability, and security. Cloudflare’s Developer Platform colocates those building blocks on the same network that already serves CDN and web security. Serverless does not mean no computers exist — it means you are not patching OS disks yourself. You still design APIs, data models, cost limits, error observability, and security. Cloudflare’s Developer Platform colocates those building blocks on the same network that already serves CDN and web security.

Các bài trên blog.cloudflare.com về Developer Platform, Workers, và AI thường lặp một thông điệp: tích hợp thắng “dụng cụ rời”. Bindings giúp Worker nói chuyện với R2/D1/AI một cách có kiểm soát. Đó là lợi thế khi team nhỏ cần ship nhanh nhưng không muốn mười bảng điều khiển khác nhau. Cloudflare Blog posts about the Developer Platform, Workers, and AI often repeat one message: integration beats a pile of disconnected tools. Bindings let a Worker talk to R2/D1/AI in a controlled way. That helps small teams ship fast without ten unrelated dashboards. Cloudflare Blog posts about the Developer Platform, Workers, and AI often repeat one message: integration beats a pile of disconnected tools. Bindings let a Worker talk to R2/D1/AI in a controlled way. That helps small teams ship fast without ten unrelated dashboards.

Nếu bạn đã đọc các bài CDN, WAF, Workers và AI trong chuỗi này, bạn đang đứng ở điểm nối: Application Services bảo vệ và tăng tốc thứ đang có; Developer Platform giúp bạn xây thứ mới trên edge. If you have read the CDN, WAF, Workers, and AI posts in this series, you are at the join point: Application Services protect and accelerate what you already have; the Developer Platform helps you build new things on the edge. If you have read the CDN, WAF, Workers, and AI posts in this series, you are at the join point: Application Services protect and accelerate what you already have; the Developer Platform helps you build new things on the edge.

Hình 1: Workers for Platforms: Main Flow

Nền tảng lập trình được (programmable platforms) Programmable Platforms Programmable Platforms

Workers for Platforms cung cấp hạ tầng an toàn, mở rộng, chi phí hợp lý cho nền tảng lập trình được, phủ toàn cầu. Workers for Platforms provide secure, scalable, cost-effective infrastructure for programmable platforms with global reach. Workers for Platforms provide secure, scalable, cost-effective infrastructure for programmable platforms with global reach.

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

Bản đồ thành phần theo câu hỏi sản phẩm (không theo tên marketing) A component map by product question (not marketing names) A component map by product question (not marketing names)

Cần chạy logic khi có request? → Workers. Cần lưu file/ảnh/backup đối tượng? → R2. Cần key-value đơn giản, đọc nhiều? → KV. Cần SQL cho app vừa? → D1. Cần suy luận AI? → Workers AI (+ AI Gateway khi vận hành). Cần bảo vệ HTTP? → WAF/CDN vẫn nằm trong cùng hệ sinh thái. Need logic on a request? → Workers. Need object/file/image storage? → R2. Need simple, read-heavy key-value? → KV. Need SQL for a mid-size app? → D1. Need AI inference? → Workers AI (+ AI Gateway for operations). Need HTTP protection? → WAF/CDN still live in the same ecosystem. Need logic on a request? → Workers. Need object/file/image storage? → R2. Need simple, read-heavy key-value? → KV. Need SQL for a mid-size app? → D1. Need AI inference? → Workers AI (+ AI Gateway for operations). Need HTTP protection? → WAF/CDN still live in the same ecosystem.

Đừng chọn database vì “nghe hiện đại”. Chọn vì mẫu truy cập: nếu bạn chỉ lưu session flag, KV có thể đủ; nếu bạn cần quan hệ đăng ký workshop và truy vấn, D1 hợp hơn. Hub có use case deploy static site, build serverless app, và build AI applications để bạn đối chiếu. Do not pick a database because it “sounds modern.” Pick it for access patterns: session flags may fit KV; relational workshop signups fit D1 better. This hub’s deploy-static-site, build-serverless-app, and build-AI-applications use cases help you compare. Do not pick a database because it “sounds modern.” Pick it for access patterns: session flags may fit KV; relational workshop signups fit D1 better. This hub’s deploy-static-site, build-serverless-app, and build-AI-applications use cases help you compare.

Với SEO/AEO và giữ chân độc giả: mỗi trang sản phẩm trên hub trả lời “là gì / vì sao / khi nào dùng”. Blog này đóng vai trò câu chuyện nối các trang đó — có FAQ, nguồn blog.cloudflare.com, và backlink nội bộ để người đọc không lạc sau định nghĩa đầu tiên. For SEO/AEO and retention: each product page on this hub answers “what / why / when.” This blog supplies the narrative that connects those pages — with FAQs, blog.cloudflare.com sources, and internal backlinks so readers do not bounce after the first definition. For SEO/AEO and retention: each product page on this hub answers “what / why / when.” This blog supplies the narrative that connects those pages — with FAQs, blog.cloudflare.com sources, and internal backlinks so readers do not bounce after the first definition.

Một lộ trình dự án 2 tuần cho người học trung cấp A two-week project path for intermediate learners A two-week project path for intermediate learners

Tuần 1: Worker + trang tĩnh (Pages hoặc asset) + một API JSON; thêm WAF/proxy nếu có domain thật. Tuần 2: persistence (D1 hoặc R2), rồi một tính năng AI nhỏ qua Workers AI; bọc AI Gateway nếu bạn gọi mô hình thường xuyên. Viết README bằng tiếng người dùng — đó cũng là luyện AEO. Week 1: a Worker + static page (Pages or assets) + one JSON API; add WAF/proxy if you have a real domain. Week 2: persistence (D1 or R2), then one small AI feature via Workers AI; wrap AI Gateway if you call models often. Write a human README — that is AEO practice too. Week 1: a Worker + static page (Pages or assets) + one JSON API; add WAF/proxy if you have a real domain. Week 2: persistence (D1 or R2), then one small AI feature via Workers AI; wrap AI Gateway if you call models often. Write a human README — that is AEO practice too.

Khi kẹt, ưu tiên docs chính thức và changelog; dùng bài viết hub để giữ mô hình tinh thần ổn định. Liên kết chéo tới lộ trình Developer Platform, roadmap vai trò Developer, và các bài CDN/WAF/Workers/AI trong blog để tạo vòng học thay vì trang “củi chết”. When stuck, prefer official docs and the changelog; use hub articles to keep your mental model stable. Cross-link the Developer Platform track, the Developer role roadmap, and the CDN/WAF/Workers/AI posts so learning becomes a loop instead of a dead-end page. When stuck, prefer official docs and the changelog; use hub articles to keep your mental model stable. Cross-link the Developer Platform track, the Developer role roadmap, and the CDN/WAF/Workers/AI posts so learning becomes a loop instead of a dead-end page.

Mục tiêu không phải “biết hết sản phẩm Cloudflare”. Mục tiêu là chọn đúng 3–5 khối cho một use case, giải thích được cho đồng nghiệp non-tech, và biết chỗ xem nguồn gốc trên blog.cloudflare.com khi nền tảng thay đổi. The goal is not “know every Cloudflare product.” The goal is to pick the right 3–5 blocks for one use case, explain them to a non-technical teammate, and know where to read originals on blog.cloudflare.com when the platform evolves. The goal is not “know every Cloudflare product.” The goal is to pick the right 3–5 blocks for one use case, explain them to a non-technical teammate, and know where to read originals on blog.cloudflare.com when the platform evolves.

Câu hỏi thường gặp Frequently asked questions Frequently asked questions

Developer Platform khác “chỉ dùng CDN” như thế nào? How is the Developer Platform different from “just using the CDN”? How is the Developer Platform different from “just using the CDN”?

CDN chủ yếu phân phối và cache nội dung. Developer Platform thêm compute và dịch vụ dữ liệu/AI để bạn xây ứng dụng và API trên cùng mạng edge. A CDN mainly distributes and caches content. The Developer Platform adds compute plus data/AI services so you can build apps and APIs on the same edge network. A CDN mainly distributes and caches content. The Developer Platform adds compute plus data/AI services so you can build apps and APIs on the same edge network.

Pages và Workers khác nhau chỗ nào? What is the difference between Pages and Workers? What is the difference between Pages and Workers?

Pages rất mạnh để deploy site/frontend và tích hợp workflow git. Workers là đơn vị compute linh hoạt cho API và logic edge. Nhiều dự án dùng cả hai. Pages excels at deploying sites/frontends with git workflows. Workers are flexible compute units for APIs and edge logic. Many projects use both. Pages excels at deploying sites/frontends with git workflows. Workers are flexible compute units for APIs and edge logic. Many projects use both.

Tôi nên bắt đầu sản phẩm nào trước trên Developer Platform? Which Developer Platform product should I start with? Which Developer Platform product should I start with?

Hãy bắt đầu với Workers (hoặc Pages nếu bạn ưu tiên site tĩnh), rồi thêm storage khi cần lưu dữ liệu thật. AI là bước tiếp theo khi use case rõ. Start with Workers (or Pages if you primarily need a static site), then add storage when you must persist real data. Add AI once the use case is clear. Start with Workers (or Pages if you primarily need a static site), then add storage when you must persist real data. Add AI once the use case is clear.

Học tiếp trên hub (on-page backlinks) Keep learning on this hub (on-page links) Keep learning on this hub (on-page links)

Nguồn tham khảo (blog.cloudflare.com) Sources (blog.cloudflare.com) Sources (blog.cloudflare.com)

Nội dung được viết lại để dễ hiểu hơn; luôn đọc bài gốc trên blog.cloudflare.com và docs chính thức khi cần chi tiết kỹ thuật hoặc cập nhật mới nhất. Content is rewritten for clarity; always read the original posts on blog.cloudflare.com and official docs for technical detail or the latest updates. Content is rewritten for clarity; always read the original posts on blog.cloudflare.com and official docs for technical detail or the latest updates.

What are Cloudflare Workers? Serverless at the edge, explained simply
Workers Workers Workers Cơ bản Entry កម្រិតចាប់ផ្តើម ~7 phút ~7 min ~7 នាទី

Cloudflare Workers là gì? Serverless ở “mép mạng” giải thích đơn giản What are Cloudflare Workers? Serverless at the edge, explained simply What are Cloudflare Workers? Serverless at the edge, explained simply

Workers giống thuê “người trực” ngay gần khách hàng: nhận request, xử lý nhanh, trả kết quả — bạn không phải tự mua và bảo trì cả tòa nhà server. Workers are like stationing helpers near customers: take a request, handle it quickly, return a result — without buying and maintaining a whole server building. Workers are like stationing helpers near customers: take a request, handle it quickly, return a result — without buying and maintaining a whole server building.

Đọc bài → Read post → អានអត្ថបទ →

What is Workers AI? Run AI models on Cloudflare without managing GPUs yourself
AI AI AI Cơ bản Entry កម្រិតចាប់ផ្តើម ~8 phút ~8 min ~8 នាទី

Workers AI là gì? Chạy mô hình AI trên Cloudflare mà không tự quản lý GPU What is Workers AI? Run AI models on Cloudflare without managing GPUs yourself What is Workers AI? Run AI models on Cloudflare without managing GPUs yourself

Workers AI giống thuê bếp công nghiệp đã sẵn sàng: bạn gọi món (mô hình), nhận kết quả — không phải tự xây nhà bếp GPU. Workers AI is like renting a ready commercial kitchen: you order a dish (model), get results — without building your own GPU kitchen. Workers AI is like renting a ready commercial kitchen: you order a dish (model), get results — without building your own GPU kitchen.

Đọc bài → Read post → អានអត្ថបទ →

What is a CDN? Understanding Cloudflare Cache in plain language
CDN CDN CDN Cơ bản Entry កម្រិតចាប់ផ្តើម ~6 phút ~6 min ~6 នាទី

CDN là gì? Hiểu Cloudflare Cache như đang giải thích cho bạn bè What is a CDN? Understanding Cloudflare Cache in plain language What is a CDN? Understanding Cloudflare Cache in plain language

CDN giống mạng kho hàng gần người dùng. Cloudflare Cache giữ bản sao nội dung tĩnh gần bạn — trang mở nhanh hơn, server gốc đỡ “mệt”. Think of a CDN as warehouses near your users. Cloudflare Cache keeps copies of static content close by — pages load faster and origin servers work less. Think of a CDN as warehouses near your users. Cloudflare Cache keeps copies of static content close by — pages load faster and origin servers work less.

Đọc bài → Read post → អានអត្ថបទ →

Xem tất cả bài blog Browse all blog posts Browse all blog posts

Chuỗi bài AI · Security · CDN · Workers · Developer Platform — viết lại cho người mới và trung cấp. AI · Security · CDN · Workers · Developer Platform — rewritten for entry and intermediate learners. AI · Security · CDN · Workers · Developer Platform — rewritten for entry and intermediate learners.