0Pricing
Edge Computing with Cloudflare Workers & Deno · 강의

블루-그린 및 점진적 배포

블루-그린 배포와 점진적인 트래픽 전환으로 엣지 애플리케이션을 안전하게 배포하여 위험을 최소화하고 즉시 롤백할 수 있도록 합니다.

블루-그린 및 점진적 배포은(는) CoddyKit의 무료 Edge Computing with Cloudflare Workers & Deno 강의입니다. 이것은 4개 중 4번째 강의입니다. 아래에서 전체 강의를 무료로 읽을 수 있으며, 내장 코드 에디터와 24/7 AI 튜터와 함께 브라우저에서 직접 실습할 수 있습니다. 이 강의는 Edge Computing with Cloudflare Workers & Deno 학습 경로의 일부이며, 진행 상황이 웹과 CoddyKit 앱에 동기화됩니다. Edge Computing with Cloudflare Workers & Deno 강의에는 총 4개의 강의가 포함되어 있습니다.

이 강의의 일부는 아직 번역되지 않았으며 영어로 표시됩니다.

The Risk of Big-Bang Deploys

Shipping a new version to 100% of users at once is risky, a hidden bug hits everyone instantly.

Progressive deployment strategies reduce blast radius by exposing changes gradually and enabling fast rollback.

Blue-Green Deployments

In a blue-green setup you run two environments:

  • Blue, the current live version
  • Green, the new version, fully deployed but not yet receiving traffic

You switch traffic to green when ready, and switch back instantly if something breaks.

Gradual (Canary) Rollouts

A gradual rollout sends a small percentage of traffic to the new version first, then increases it as confidence grows.

  • 5% then 25% then 50% then 100%
  • Watch error rates at each step

Also called a canary release.

Versioned Uploads

Cloudflare lets you upload a new Worker version without deploying it to all traffic.

wrangler versions upload
# uploads a new version, 0% traffic by default

Splitting Traffic by Percentage

Use gradual deployments to assign a percentage of requests to each version.

wrangler versions deploy \
  <new-version-id>@10% <old-version-id>@90%

Manual Routing for Control

For custom logic you can route in code, for example send a cohort to the new behavior based on a hash of the user ID.

function inCanary(userId) {
  // simple stable bucketing
  return (userId.charCodeAt(0) % 100) < 10; // ~10%
}

Watch the Right Metrics

During a rollout, monitor:

  • Error rate / 5xx responses
  • Latency (p50, p95, p99)
  • CPU time
  • Business KPIs

Compare the new version against the baseline before increasing traffic.

Instant Rollback

The key benefit of progressive deploys is fast rollback, shift traffic back to the known-good version immediately.

wrangler versions deploy <old-version-id>@100%

Automating Rollback

Tie rollout steps to CI checks. If error rates exceed a threshold, the pipeline automatically reverts to the previous version.

if (errorRate > 0.02) {
  await rollbackToPrevious();
}

Database Compatibility

During blue-green, both versions may run at once, so schema changes must be backward compatible.

  • Add columns before removing old ones
  • Use expand-then-contract migrations

Best Practices Summary

Deploy safely at the edge by:

  • Uploading versions without full deploy
  • Splitting traffic gradually and watching metrics
  • Keeping rollback one command away
  • Making migrations backward compatible

Quick Check

What is the defining characteristic of a canary (gradual) rollout?

Recap

You learned safe deployment strategies:

  • Blue-green keeps a hot standby for instant switching
  • Gradual rollouts shift traffic in steps while you watch metrics
  • Versioned uploads and percentage splits make this easy on Cloudflare
  • Backward-compatible migrations keep both versions healthy

Progressive delivery turns scary deploys into routine, reversible events.

자주 묻는 질문

“블루-그린 및 점진적 배포” 강의는 무료인가요?

네 — “블루-그린 및 점진적 배포” 전체 내용을 이 웹사이트에서 무료로 읽을 수 있습니다. 인터랙티브하게 실습하려면(내장 코드 에디터와 24/7 AI 튜터), CoddyKit PRO로 업그레이드하면 Edge Computing with Cloudflare Workers & Deno 강의 전체를 잠금 해제할 수 있습니다. Edge Computing with Cloudflare Workers & Deno 강의에는 총 4개의 강의가 포함되어 있습니다.

“블루-그린 및 점진적 배포”에서 뭘 배우나요?

블루-그린 배포와 점진적인 트래픽 전환으로 엣지 애플리케이션을 안전하게 배포하여 위험을 최소화하고 즉시 롤백할 수 있도록 합니다. 브라우저에서 직접 실행하는 실습 코드로 Edge Computing with Cloudflare Workers & Deno을(를) 배우며, 24/7 AI 튜터가 강의를 진행하면서 질문에 답변해줍니다.

Edge Computing with Cloudflare Workers & Deno을(를) 시작하는 데 경험이 필요한가요?

사전 경험은 필요하지 않습니다. CoddyKit의 Edge Computing with Cloudflare Workers & Deno은(는) 초급자부터 고급 학습자까지를 위해 구성되어 있으므로, 여기서 시작하거나 처음부터 시작할 수 있으며 자신의 속도대로 진행할 수 있습니다. 이것은 4개 중 4번째 강의입니다.

“블루-그린 및 점진적 배포” 강의는 얼마나 걸리나요?

대부분의 CoddyKit 강의는 약 5~10분이 소요됩니다. 각 강의는 간결하고 인터랙티브하여 꾸준한 진행이 가능하며, 웹과 앱에서 중단한 부분부터 바로 시작할 수 있습니다.

이 Edge Computing with Cloudflare Workers & Deno 강의에서 코드를 작성하고 실행할 수 있나요?

네. 모든 Edge Computing with Cloudflare Workers & Deno 강의에는 내장 코드 에디터가 포함되어 있으므로, 브라우저에서 바로 실제 코드를 작성하고 실행한 후 즉시 AI 피드백을 받을 수 있습니다 — 로컬 설정이 필요 없습니다.

이 강의의 모든 강의

  1. Deno Deploy 및 CLI
  2. 사용자 지정 런타임 환경
  3. 엣지를 위한 테스트 및 CI/CD
  4. 블루-그린 및 점진적 배포
← Edge Computing with Cloudflare Workers & Deno(으)로 돌아가기