Deploy an Express.js application on Cloudflare Workers
/workers/tutorials/deploy-an-express-app
Mở tutorial / guide ↗ Open tutorial / guide ↗Phần 2: API trên edge Part 2: APIs on the edge · Bài 2/2 Lesson 2/2
Dùng Worker khi cần middleware, auth edge, hoặc nhiều hostname. Worker là đơn vị compute linh hoạt nhất. Use a Worker when you need middleware, edge auth, or multiple hostnames. Workers are the most flexible compute unit.
Worker độc lập phù hợp middleware toàn zone, BFF, hoặc multi-tenant routing — linh hoạt hơn Pages Functions. Standalone Workers suit zone-wide middleware, BFFs, or multi-tenant routing — more flexible than Pages Functions.
Custom domain: Worker là origin, DNS/SSL tự động. Route: Worker chạy trước origin — cần DNS record proxied (orange cloud); thiếu record sẽ gây ERR_NAME_NOT_RESOLVED. Custom domain: the Worker is the origin with automatic DNS/SSL. Route: the Worker runs in front of an origin — you need a proxied DNS record (orange cloud); missing records cause ERR_NAME_NOT_RESOLVED.
Nguồn: Source: Workers Best Practices Workers Best Practices ↗
Tutorial, solution guide và reference từ developers.cloudflare.com/resources ↗ — gợi ý theo chủ đề bài học. Tutorials, solution guides, and reference docs from developers.cloudflare.com/resources ↗ — matched to this lesson topic.
/workers/tutorials/deploy-an-express-app
Mở tutorial / guide ↗ Open tutorial / guide ↗/workers-ai/guides/tutorials/image-generation-playground/image-generator-flux-newmodels
Mở tutorial / guide ↗ Open tutorial / guide ↗/workers/tutorials/build-a-qr-code-generator
Mở tutorial / guide ↗ Open tutorial / guide ↗/workers-ai/guides/tutorials/build-a-retrieval-augmented-generation-ai
Mở tutorial / guide ↗ Open tutorial / guide ↗Dùng khi tự động hóa bước này qua script hoặc Terraform — cần API token phù hợp. Use when automating this step via script or Terraform — requires an appropriate API token.
Serverless global APIs Serverless global APIs
An example architecture of a serverless API on Cloudflare and aims to illustrate how different compute and data products could interact with each other. An example architecture of a serverless API on Cloudflare and aims to illustrate how different compute and data products could interact with each other.
Thuật ngữ: Concepts: Workers · D1 · R2 · Global API · Edge compute
Sơ đồ chính thức ↗ Official diagram ↗ · Serverless Serverless