Use Workers KV directly from Rust
/workers/tutorials/workers-kv-from-rust
Mở tutorial / guide ↗ Open tutorial / guide ↗Lộ trình đang học Current learning path
Developer Platform Developer Platform
Build và deploy apps trên Cloudflare. Build and deploy apps on Cloudflare.
Phần 3: Chọn storage đúng Part 3: Pick the right storage · Bài 1/3 Lesson 1/3
Lưu feature flags, session token ngắn, rate limit counter. Không dùng KV cho giao dịch tài chính cần consistency cao. Store feature flags, short session tokens, rate limit counters. Avoid KV for financial transactions needing strong consistency.
KV eventually consistent, đọc cực nhanh tại edge — ideal cho read-heavy config. KV is eventually consistent with extremely fast edge reads — ideal for read-heavy config.
Dùng binding (KV, R2, D1…) trực tiếp trong Worker — không gọi REST API Cloudflare từ trong Worker (thêm latency, auth và phức tạp không cần thiết). Use bindings (KV, R2, D1, etc.) directly in Workers — do not call the Cloudflare REST API from within a Worker (adds latency, auth, and unnecessary complexity).
Nguồn: Source: Workers Best Practices Workers Best Practices ↗
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.
/workers/tutorials/workers-kv-from-rust
Mở tutorial / guide ↗ Open tutorial / guide ↗/terraform/tutorial/configure-https-settings
Mở tutorial / guide ↗ Open tutorial / guide ↗/ssl/client-certificates/configure-your-mobile-app-or-iot-device
Mở tutorial / guide ↗ Open tutorial / guide ↗/terraform/tutorial/revert-configuration
Mở tutorial / guide ↗ Open tutorial / guide ↗Xem thêm ví dụ trong lộ trình → More examples in this path →
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.
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.
Bảo vệ và tăng tốc website, application và API Protect and accelerate websites, applications, and APIs
Vào lộ trình này → Enter this path →Bảo vệ users, access, SaaS và mạng doanh nghiệp Secure users, access, SaaS, and corporate networks
Vào lộ trình này → Enter this path →Chưa chắc — làm bài chọn lộ trình Not sure — use the path selector · So sánh cả ba lộ trình Compare all three paths