Developer Developer

Lộ trình 6 tuần cho developer: từ mental model edge tới Workers, storage, Pages và dự án portfolio trên Developer Platform. A 6-week developer path: edge mental model to Workers, storage, Pages, and a Developer Platform portfolio project.

  • Lập trình viên frontend/backend muốn học serverless trên edge Frontend/backend developers learning serverless at the edge
  • Sinh viên CNTT làm đồ án trên Cloudflare CS students building projects on Cloudflare
  • Dev đã dùng AWS/Vercel muốn thêm Workers vào stack Devs on AWS/Vercel adding Workers to their stack

Kết quả cuối: Final outcome: Deploy được mini-project full-stack (Pages + Worker + storage) và hiểu pattern production cơ bản. Deploy a full-stack mini-project (Pages + Worker + storage) and understand basic production patterns.

Tiến độ roadmapRoadmap progress

0/6 tuần · 0%0/6 weeks · 0%

Tuần 1 Week 1

Nền tảng mạng và mental model Developer Platform Networking basics and Developer Platform mental model

Hiểu request/response, edge vs origin — nền tảng trước khi viết Workers hoặc deploy Pages. Understand request/response and edge vs origin — foundation before writing Workers or deploying Pages.

Chủ đề Topics

  • HTTP basics HTTP basics
  • Edge computing Edge computing
  • Workers runtime Workers runtime
  • Dev environment Dev environment

Liên kết trên hub Hub links

Sản phẩm gợi ý Recommended products

  • Workers
  • DNS
  • CDN

Bài tập Exercises

  • Đọc Cloudflare 101 phần Developer Platform — ghi 5 thuật ngữ mới vào sổ. Read the Developer Platform section of Cloudflare 101 — note 5 new terms in your notebook.
  • Tra glossary: Worker, edge, origin, KV — giải thích bằng tiếng Việt đơn giản. Look up glossary terms: Worker, edge, origin, KV — explain each in simple terms.
  • Liệt kê 3 loại app bạn muốn build và match với Workers vs Pages. List 3 app types you want to build and match each to Workers vs Pages.

Kết quả tuần: Week outcome: Bạn biết Workers chạy ở edge và khác gì so với server VPS truyền thống. You know Workers run at the edge and how they differ from a traditional VPS server.

Nguồn tham khảo Sources

Tuần 2 Week 2

Workers: routing, middleware và tích hợp API Workers: routing, middleware, and API integration

Viết Worker xử lý request, proxy API và áp dụng pattern routing cơ bản. Write a Worker that handles requests, proxies APIs, and applies basic routing patterns.

Chủ đề Topics

  • Fetch API Fetch API
  • Routes Routes
  • Environment variables Environment variables
  • Error handling Error handling
  • Cron Triggers Cron Triggers

Liên kết trên hub Hub links

Ví dụ triển khai gợi ý Suggested deployment tutorials

Sản phẩm gợi ý Recommended products

  • Workers
  • Workers Routes
  • Workers AI

Bài tập Exercises

  • Hoàn thành 3 lesson đầu track Developer Platform về Workers. Complete the first 3 lessons of the Developer Platform track on Workers.
  • Đọc use case secure API — sketch Worker đứng trước origin và validate header. Read the secure API use case — sketch a Worker in front of origin that validates headers.
  • Viết pseudocode Worker: redirect, CORS, và cache header đơn giản. Write pseudocode for a Worker: redirect, CORS, and simple cache headers.

Kết quả tuần: Week outcome: Bạn mô tả được luồng code Worker từ request tới response mà không cần nhìn dashboard. You can describe Worker code flow from request to response without looking at the dashboard.

Nguồn tham khảo Sources

Tuần 3 Week 3

Storage: KV, D1 và R2 — chọn đúng công cụ Storage: KV, D1, and R2 — picking the right tool

Phân biệt KV (key-value), D1 (SQL) và R2 (object) — chọn binding phù hợp dự án. Distinguish KV (key-value), D1 (SQL), and R2 (object) — choose the right binding for your project.

Chủ đề Topics

  • KV KV
  • D1 D1
  • R2 R2
  • Bindings Bindings
  • Consistency trade-offs Consistency trade-offs

Liên kết trên hub Hub links

Sản phẩm gợi ý Recommended products

  • KV
  • D1
  • R2

Bài tập Exercises

  • Đọc product pages KV, D1, R2 — điền bảng so sánh: use case, latency, query type. Read KV, D1, and R2 product pages — fill in a comparison table: use case, latency, query type.
  • Thiết kế schema D1 đơn giản cho app todo hoặc guestbook. Design a simple D1 schema for a todo or guestbook app.
  • Chọn storage cho app upload ảnh + metadata — giải thích vì sao không dùng KV alone. Choose storage for an image upload app with metadata — explain why KV alone is not enough.

Kết quả tuần: Week outcome: Bạn không mặc định D1 cho mọi thứ — biết khi nào R2 hoặc KV hợp lý hơn. You do not default to D1 for everything — you know when R2 or KV is a better fit.

Nguồn tham khảo Sources

Tuần 4 Week 4

Pages: deploy frontend và full-stack nhỏ Pages: deploying frontends and small full-stack apps

Deploy static site hoặc full-stack app với Pages và Functions. Deploy a static site or small full-stack app with Pages and Functions.

Chủ đề Topics

  • Pages project Pages project
  • Git integration Git integration
  • Pages Functions Pages Functions
  • Preview deployments Preview deployments
  • Custom domains Custom domains

Liên kết trên hub Hub links

Ví dụ triển khai gợi ý Suggested deployment tutorials

Sản phẩm gợi ý Recommended products

  • Pages
  • Workers
  • R2

Bài tập Exercises

  • Đọc use case deploy static site — liệt kê 5 bước từ repo tới production. Read the deploy static site use case — list 5 steps from repo to production.
  • Hoàn thành lesson Pages trong track — ghi chú preview vs production. Complete the Pages lesson in the track — note differences between preview and production.
  • Phác thảo cấu trúc repo: frontend Pages + API Worker hoặc Functions. Sketch repo structure: Pages frontend + API Worker or Functions.

Kết quả tuần: Week outcome: Bạn có thể mô tả pipeline deploy từ git push tới URL production trên Pages. You can describe the deploy pipeline from git push to production URL on Pages.

Nguồn tham khảo Sources

Tuần 5 Week 5

Nâng cao: Durable Objects, AI và pattern production Advanced: Durable Objects, AI, and production patterns

Làm quen stateful edge (Durable Objects) và Workers AI — khi nào cần vượt Worker stateless. Get familiar with stateful edge (Durable Objects) and Workers AI — when to go beyond a stateless Worker.

Chủ đề Topics

  • Durable Objects Durable Objects
  • WebSockets WebSockets
  • Workers AI Workers AI
  • Vectorize Vectorize
  • Observability Observability

Liên kết trên hub Hub links

Sản phẩm gợi ý Recommended products

  • Durable Objects
  • Workers AI
  • AI Gateway
  • Vectorize

Bài tập Exercises

  • Đọc product Durable Objects — nêu 1 use case cần state (chat room, counter, lock). Read the Durable Objects product page — name 1 use case that needs state (chat room, counter, lock).
  • Skim 1 tutorial Workers AI trên Developer Docs — tóm tắt input/output flow. Skim 1 Workers AI tutorial on Developer Docs — summarize the input/output flow.
  • Liệt kê 3 điều cần monitor khi Worker lên production (errors, latency, quotas). List 3 things to monitor when a Worker goes to production (errors, latency, quotas).

Kết quả tuần: Week outcome: Bạn biết khi nào refactor sang Durable Objects thay vì nhồi logic vào một Worker. You know when to refactor to Durable Objects instead of cramming logic into a single Worker.

Nguồn tham khảo Sources

Tuần 6 Week 6

Dự án cuối: build, bảo vệ và checklist go-live Capstone: build, protect, and go-live checklist

Hoàn thiện mini-project full-stack, thêm lớp bảo vệ cơ bản và tự đánh giá sẵn sàng production. Complete a full-stack mini-project, add basic protection, and self-assess production readiness.

Chủ đề Topics

  • Capstone project Capstone project
  • WAF basics WAF basics
  • Secrets Secrets
  • Checklist Checklist
  • Quiz Quiz

Liên kết trên hub Hub links

Sản phẩm gợi ý Recommended products

  • Workers
  • Pages
  • D1
  • WAF
  • DNS

Bài tập Exercises

  • Hoàn thành mini-project: 1 Pages site + 1 API Worker + storage — ghi README tiếng Việt. Complete a mini-project: 1 Pages site + 1 API Worker + storage — write a README.
  • Đọc checklist beginner — đánh dấu mục đã làm và mục còn thiếu cho project. Read the beginner checklist — mark items done and items still missing for your project.
  • Làm quiz beginner readiness — ôn lại phần sai và cập nhật README. Take the beginner readiness quiz — review wrong answers and update your README.

Kết quả tuần: Week outcome: Bạn có 1 project portfolio trên Cloudflare và checklist go-live tự tin chia sẻ. You have 1 portfolio project on Cloudflare and a go-live checklist you can share confidently.

Nguồn tham khảo Sources