with-agents

Serverless Expeditions — selected guide

Safe serverless deployments with Cloud Run

Fourteen episodes on service choice, architecture, scaling, state, security, operations, and delivery

Serverless design and operations through concrete examples: choosing a runtime, ordering events, managing relational state, undoing failed workflows, protecting secrets, and deploying changes safely. The selection also includes two AI-agent examples covering tools and database access.

Google Cloud Tech 12 of 14
In this collection Browse 14 summaries 12 of 14

Safer releases start with repeatable deployment and a reliable way back when new code fails. In this February 2024 discussion, Steve draws on his experience as a Google site reliability engineer to recommend four practices in order: automated builds and delivery, fast rollback, gradual releases, and independently controlled features.

Key points

  • Automate build and verification first: Continuous integration (CI) builds and tests submitted code. Continuous delivery can automatically deploy it to a test environment while leaving an operator to approve production deployment. Automation removes repeated manual steps without requiring every commit to reach users immediately 01:03–04:14(opens in a new tab).
  • Recover before debugging under pressure: The presenter recommends a fast, reliable rollback to a known version, then investigating once service is restored 04:14–06:21(opens in a new tab).
  • Canaries expose fewer users to an unproven version: A canary release sends a small share of users to new code, then expands only after observation. Steve describes Cloud Run traffic splitting and session affinity, which keeps a user on one version rather than changing the interface between requests. His suggested percentages and waiting periods are examples, not universal formulas 06:21–10:35(opens in a new tab).
  • Feature controls separate deploying code from showing it: Hidden features can be enabled for selected groups of users and disabled without rolling back code. Steve's example is a new toolbar that overlaps the purchase button: testing it with a small group can reveal the problem before everyone sees it. This requires feature-management tooling, application integration, and measurements of success and failure 10:35–15:49(opens in a new tab).
  • Adopt in priority order: The presenter explicitly recommends starting with CI/CD, then adding rollback, canaries, and experiments only as their value justifies the cost 14:46–16:51(opens in a new tab).

Full video: https://www.youtube.com/watch?v=ArDuQDjW-DQ(opens in a new tab)

Search

Search field guides and resources across the site.

    Keyboard shortcuts

    Press ? to open this guide (usually Shift + /). Close it before using other site shortcuts.

    Show keyboard shortcuts
    ?
    Search site
    Ctrl + K
    Close the current dialog or menu
    Esc

    Site shortcuts are ignored while typing. Browser and extension shortcuts may take priority.