<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>Cloudflare Developer — Things Worth Sharing</title><description>Bài viết gắn tag Cloudflare Developer.</description><link>https://cloudsecop.net/</link><item><title>Migration AWS/Vercel sang Cloudflare: playbook thực tế</title><link>https://cloudsecop.net/blog/migration-aws-to-cloudflare/</link><guid isPermaLink="true">https://cloudsecop.net/blog/migration-aws-to-cloudflare/</guid><description>Playbook migrate production từ AWS (Lambda, DynamoDB, RDS, S3, SQS, ElastiCache) sang Cloudflare: mapping primitive, 3 chiến lược, data migration, cutover, rollback, 10 pitfall.</description><pubDate>Thu, 01 Jan 2026 00:00:00 GMT</pubDate><category>Cloudflare</category><category>Cloudflare Developer</category><category>Migration</category><category>AWS</category><category>Serverless</category><author>KhaVan</author></item><item><title>Cost model Cloudflare Developer Platform: tier, so sánh AWS</title><link>https://cloudsecop.net/blog/cost-model-production/</link><guid isPermaLink="true">https://cloudsecop.net/blog/cost-model-production/</guid><description>Pricing từng primitive Cloudflare (Workers, D1, KV, R2, Queues, DOs, Vectorize, Workers AI), breakpoint, so sánh AWS, 3 scenario: blog, SaaS 10k user, app 100M req/tháng.</description><pubDate>Wed, 24 Dec 2025 00:00:00 GMT</pubDate><category>Cloudflare</category><category>Cloudflare Developer</category><category>Cost</category><category>AWS</category><category>Pricing</category><author>KhaVan</author></item><item><title>Security cho Worker: secrets, CSP, Bot Management, Turnstile</title><link>https://cloudsecop.net/blog/secrets-csp-bot-management/</link><guid isPermaLink="true">https://cloudsecop.net/blog/secrets-csp-bot-management/</guid><description>Defense-in-depth cho Cloudflare Worker: WAF + Bot Management, Turnstile, Access JWT, secret management, CSP/HSTS, 4 pattern auth, validation Zod, và anti-pattern cần tránh.</description><pubDate>Wed, 17 Dec 2025 00:00:00 GMT</pubDate><category>Cloudflare</category><category>Cloudflare Developer</category><category>Security</category><category>CSP</category><category>Bot Management</category><author>KhaVan</author></item><item><title>Observability cho Worker: Logs, Tail Workers, Analytics</title><link>https://cloudsecop.net/blog/logs-analytics-tail-workers/</link><guid isPermaLink="true">https://cloudsecop.net/blog/logs-analytics-tail-workers/</guid><description>4 tầng observability Cloudflare: Workers Logs (retention 3 ngày), Tail Workers (realtime), Logpush (batch tới R2/SIEM), Analytics Engine. Structured logging, alert, debug prod.</description><pubDate>Tue, 09 Dec 2025 00:00:00 GMT</pubDate><category>Cloudflare</category><category>Cloudflare Developer</category><category>Observability</category><category>Logs</category><category>Analytics Engine</category><author>KhaVan</author></item><item><title>Stream và Images: media pipeline ở edge, khi nào dùng product nào</title><link>https://cloudsecop.net/blog/stream-images-media/</link><guid isPermaLink="true">https://cloudsecop.net/blog/stream-images-media/</guid><description>3 cách xử lý media của Cloudflare: Stream cho video (HLS/DASH), Images cho upload-transform-deliver, Image Resizing / cf.image. Pipeline, giá, responsive, OG động.</description><pubDate>Mon, 01 Dec 2025 00:00:00 GMT</pubDate><category>Cloudflare</category><category>Cloudflare Developer</category><category>Stream</category><category>Images</category><category>Media</category><author>KhaVan</author></item><item><title>Durable Objects cho realtime: chat, collab, game state</title><link>https://cloudsecop.net/blog/durable-objects-realtime/</link><guid isPermaLink="true">https://cloudsecop.net/blog/durable-objects-realtime/</guid><description>Durable Object là single-writer coordination của Cloudflare: 1 roomId = 1 instance, WebSocket hibernation, storage persistent. 6 pattern, API cốt lõi, và khi nào DO là quá mức.</description><pubDate>Mon, 24 Nov 2025 00:00:00 GMT</pubDate><category>Cloudflare</category><category>Cloudflare Developer</category><category>Durable Objects</category><category>WebSocket</category><category>Realtime</category><author>KhaVan</author></item><item><title>Vectorize + RAG: embeddings, top-K, hybrid search edge</title><link>https://cloudsecop.net/blog/vectorize-rag-pattern/</link><guid isPermaLink="true">https://cloudsecop.net/blog/vectorize-rag-pattern/</guid><description>Vectorize là vector DB native của Cloudflare, kết hợp Workers AI bge-m3 cho RAG trọn edge. Pipeline ingest + query, chunking, lọc metadata, hybrid search D1, reranking.</description><pubDate>Sun, 16 Nov 2025 00:00:00 GMT</pubDate><category>Cloudflare</category><category>Cloudflare Developer</category><category>Vectorize</category><category>RAG</category><category>AI</category><author>KhaVan</author></item><item><title>Workers AI + AI Gateway: catalog, pricing, vs Bedrock/OpenAI</title><link>https://cloudsecop.net/blog/workers-ai-model-catalog/</link><guid isPermaLink="true">https://cloudsecop.net/blog/workers-ai-model-catalog/</guid><description>Workers AI chạy inference trên edge GPU, AI Gateway proxy OpenAI/Anthropic/Bedrock/Google với cache + rate limit. Catalog, giá, khi nào chọn cái nào, retry/fallback production.</description><pubDate>Sat, 08 Nov 2025 00:00:00 GMT</pubDate><category>Cloudflare</category><category>Cloudflare Developer</category><category>Workers AI</category><category>AI Gateway</category><category>LLM</category><author>KhaVan</author></item><item><title>CI/CD với Wrangler + GitHub Actions: pipeline, smoke test</title><link>https://cloudsecop.net/blog/ci-cd-wrangler-github-actions/</link><guid isPermaLink="true">https://cloudsecop.net/blog/ci-cd-wrangler-github-actions/</guid><description>Pipeline 4 bước: test → build → deploy → smoke. Scoped API token, smoke test 19 assertion, concurrent lock, preview env, rollback 10 giây. Full workflow file từ blog này.</description><pubDate>Sat, 01 Nov 2025 00:00:00 GMT</pubDate><category>Cloudflare</category><category>Cloudflare Developer</category><category>CI/CD</category><category>GitHub Actions</category><category>Wrangler</category><author>KhaVan</author></item><item><title>Astro, Remix, SvelteKit trên Workers: adapter và trade-off</title><link>https://cloudsecop.net/blog/astro-remix-sveltekit-workers/</link><guid isPermaLink="true">https://cloudsecop.net/blog/astro-remix-sveltekit-workers/</guid><description>3 framework full-stack trên Workers khác nhau về render, JS client, adapter và bindings. Thiết lập thực tế từng cái, SSG vs SSR vs hybrid, và vì sao blog này chọn Astro.</description><pubDate>Fri, 24 Oct 2025 00:00:00 GMT</pubDate><category>Cloudflare</category><category>Cloudflare Developer</category><category>Astro</category><category>Remix</category><category>SvelteKit</category><author>KhaVan</author></item><item><title>ORM cho D1: Drizzle, Prisma, hay raw SQL</title><link>https://cloudsecop.net/blog/orm-d1-drizzle-prisma/</link><guid isPermaLink="true">https://cloudsecop.net/blog/orm-d1-drizzle-prisma/</guid><description>3 lựa chọn: SQL thô (0KB), Drizzle (10KB, TS-first), Prisma (500KB WASM). Quy trình, pattern query phức tạp, migration, type safety, và khi nào ORM hại nhiều hơn lợi.</description><pubDate>Thu, 16 Oct 2025 00:00:00 GMT</pubDate><category>Cloudflare</category><category>Cloudflare Developer</category><category>D1</category><category>ORM</category><category>Drizzle</category><category>Prisma</category><author>KhaVan</author></item><item><title>cloudflare/agents trên Workers + Durable Objects — production patterns</title><link>https://cloudsecop.net/blog/cloudflare-agents-production-patterns/</link><guid isPermaLink="true">https://cloudsecop.net/blog/cloudflare-agents-production-patterns/</guid><description>Cloudflare Agents framework dùng Durable Objects cho long-running state. Hibernation, tool calling, multi-agent WebSocket, schedule(). Cost ~$0.04/agent/tháng.</description><pubDate>Wed, 15 Oct 2025 00:00:00 GMT</pubDate><category>Cloudflare</category><category>Workers</category><category>Durable Objects</category><category>AI Agents</category><category>Cloudflare Developer</category><author>KhaVan</author></item><item><title>Router cho Workers: vanilla, Itty, hay Hono</title><link>https://cloudsecop.net/blog/router-choice-hono-itty/</link><guid isPermaLink="true">https://cloudsecop.net/blog/router-choice-hono-itty/</guid><description>3 lựa chọn: vanilla fetch (0 bundle), Itty (3KB), Hono (13KB). Cú pháp, chuỗi middleware, validate Zod, khi nào chọn cái nào, và vì sao blog này dùng vanilla dù có 40 route.</description><pubDate>Wed, 08 Oct 2025 00:00:00 GMT</pubDate><category>Cloudflare</category><category>Cloudflare Developer</category><category>Workers</category><category>Routing</category><author>KhaVan</author></item><item><title>Queues và Durable Objects: async messaging và single-writer state</title><link>https://cloudsecop.net/blog/queues-durable-objects/</link><guid isPermaLink="true">https://cloudsecop.net/blog/queues-durable-objects/</guid><description>2 primitive khó nhất khi Worker cần state. Queues cho fire-and-forget job với retry và DLQ. Durable Objects cho single-writer coordination. Khi nào dùng cái nào, pattern và gotcha.</description><pubDate>Wed, 01 Oct 2025 00:00:00 GMT</pubDate><category>Cloudflare</category><category>Cloudflare Developer</category><category>Queues</category><category>Durable Objects</category><category>Storage</category><author>KhaVan</author></item><item><title>R2 object storage: S3-compat, egress free, và 4 access pattern</title><link>https://cloudsecop.net/blog/r2-object-storage/</link><guid isPermaLink="true">https://cloudsecop.net/blog/r2-object-storage/</guid><description>R2 là object storage S3-compatible của Cloudflare, không phí egress. So sánh R2 vs S3, 4 pattern phục vụ object, migration từ S3, gotcha về consistency, metadata, lifecycle.</description><pubDate>Tue, 23 Sep 2025 00:00:00 GMT</pubDate><category>Cloudflare</category><category>Cloudflare Developer</category><category>R2</category><category>Storage</category><author>KhaVan</author></item><item><title>D1 trong production: primary-replica, batch, và 7 gotcha</title><link>https://cloudsecop.net/blog/d1-production-patterns/</link><guid isPermaLink="true">https://cloudsecop.net/blog/d1-production-patterns/</guid><description>D1 là SQLite ở edge với primary region và read replica: kiến trúc, 5 query method, Sessions API cho read replica, prepared statement cache, migration, và 7 gotcha production.</description><pubDate>Mon, 15 Sep 2025 00:00:00 GMT</pubDate><category>Cloudflare</category><category>Cloudflare Developer</category><category>D1</category><category>Storage</category><category>SQL</category><author>KhaVan</author></item><item><title>KV deep-dive: cache toàn cầu, eventual consistency, vs D1</title><link>https://cloudsecop.net/blog/kv-deep-dive/</link><guid isPermaLink="true">https://cloudsecop.net/blog/kv-deep-dive/</guid><description>Cloudflare KV là eventually-consistent KV store với cache tại từng PoP. Consistency model thực tế, giới hạn, 5 pattern đúng, 3 anti-pattern phổ biến, và gotcha thực tế.</description><pubDate>Mon, 08 Sep 2025 00:00:00 GMT</pubDate><category>Cloudflare</category><category>Cloudflare Developer</category><category>KV</category><category>Storage</category><author>KhaVan</author></item><item><title>Wrangler và Miniflare dev loop: từ init tới deploy trong 30 phút</title><link>https://cloudsecop.net/blog/wrangler-miniflare-dev-loop/</link><guid isPermaLink="true">https://cloudsecop.net/blog/wrangler-miniflare-dev-loop/</guid><description>Dev loop thực tế của Workers: wrangler init, dev local với Miniflare, vitest, D1 migration, secret, triển khai 300+ PoP trong 30 giây. Vòng đời từ file trống đến production.</description><pubDate>Sun, 31 Aug 2025 00:00:00 GMT</pubDate><category>Cloudflare</category><category>Cloudflare Developer</category><category>Workers</category><category>DevOps</category><author>KhaVan</author></item><item><title>Mental model 3 tầng binding: Request, Identity, Storage</title><link>https://cloudsecop.net/blog/mental-model-3-binding/</link><guid isPermaLink="true">https://cloudsecop.net/blog/mental-model-3-binding/</guid><description>Khung tư duy chung cho mọi Worker: Request là cửa vào, Identity là ai đang gọi, Storage là đọc ghi đâu. Áp dụng vào Worker đang chạy blog này và cách chọn storage primitive đúng.</description><pubDate>Tue, 19 Aug 2025 00:00:00 GMT</pubDate><category>Cloudflare</category><category>Cloudflare Developer</category><category>Workers</category><category>Architecture</category><author>KhaVan</author></item><item><title>Workers runtime mental model: lifecycle, context, limit</title><link>https://cloudsecop.net/blog/workers-runtime-mental-model/</link><guid isPermaLink="true">https://cloudsecop.net/blog/workers-runtime-mental-model/</guid><description>fetch handler, ExecutionContext, waitUntil, giới hạn subrequest, CPU vs wall time, cold start thực tế. 6 ngộ nhận khi dev từ Node/Lambda sang Workers. Code mẫu từ blog này.</description><pubDate>Sat, 16 Aug 2025 00:00:00 GMT</pubDate><category>Cloudflare</category><category>Cloudflare Developer</category><category>Workers</category><category>Runtime</category><author>KhaVan</author></item><item><title>Cloudflare developer platform là gì, và vì sao khác Lambda</title><link>https://cloudsecop.net/blog/cloudflare-developer-platform-la-gi/</link><guid isPermaLink="true">https://cloudsecop.net/blog/cloudflare-developer-platform-la-gi/</guid><description>Cloudflare không còn chỉ là CDN. Workers, D1, R2, KV, Queues, DOs, Workers AI, Vectorize tạo thành nền tảng edge-native. Mental model đầu tiên, so sánh với Lambda.</description><pubDate>Fri, 08 Aug 2025 00:00:00 GMT</pubDate><category>Cloudflare</category><category>Cloudflare Developer</category><category>Workers</category><category>Edge Computing</category><author>KhaVan</author></item><item><title>lol-html: streaming HTML rewriter trên Workers — 3 production patterns</title><link>https://cloudsecop.net/blog/lol-html-streaming-rewriter/</link><guid isPermaLink="true">https://cloudsecop.net/blog/lol-html-streaming-rewriter/</guid><description>CSS-selector streaming HTML rewriter trên Cloudflare Workers. 3 pattern production: CSP nonce per request, rewrite analytics URL, A/B variant inject.</description><pubDate>Wed, 09 Apr 2025 00:00:00 GMT</pubDate><category>Cloudflare</category><category>Workers</category><category>Cloudflare Developer</category><category>Performance</category><category>Edge</category><author>KhaVan</author></item></channel></rss>