Part 7 · 1 chapters · ~8 min

Serverless and Edge Deploys

Function versions and aliases with weighted traffic (Lambda), Cloud Run and Cloud Functions revisions, edge deploys on CDNs and Workers, global propagation and its blast radius, cold start effects of deploys, and the frontend specifics from the Infra course.

8

Versions, aliases and global propagation

code
# AWS Lambda: publish a version, shift 10% of the alias to it, watch alarms, then promote
aws lambda publish-version --function-name ledger-webhook          # → version 42
aws lambda update-alias --function-name ledger-webhook --name live \
  --function-version 41 --routing-config 'AdditionalVersionWeights={"42"=0.1}'
# CodeDeploy can automate: Canary10Percent5Minutes, Linear10PercentEvery1Minute, with CloudWatch alarm rollback
concernserverless and edge specifics
blast radiusan edge deploy reaches every region in seconds; use staged rollouts where the platform offers them, and flags
cold startsa new version starts cold everywhere; traffic shifting warms it gradually
statefunctions are stateless; migrations and schema compatibility rules still apply
frontendsimmutable assets and atomic manifest switches, version skew handling (Infra part 7)