with-agents

Serverless Expeditions — selected guide

Designing a serverless app on Google Cloud

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 2 of 14
In this collection Browse 14 summaries 2 of 14

Martin and Dina design an internal application for controlling which server ports may be open. Developers request access, administrators approve it, and nightly scans compare actual access with those approvals. This June 2021 design exercise separates the request system, scanning, alerts, and audit reports; it is not a completed implementation.

Key points

  • Choose storage around the request data: The proposed app uses Identity-Aware Proxy to restrict employee access. Firestore holds a document for each server, with its ports and permissions underneath. That structure fits the operational queries, which do not need large sums or averages across records 01:03–04:15(opens in a new tab).
  • Split scans into independently retryable work: Cloud Scheduler starts a function that reads target servers and publishes messages to Pub/Sub, a messaging service. Worker functions consume those messages rather than scanning every target in one long loop. If one worker fails, only its work needs retrying. The speakers leave the exact work unit open: one server or one server-port pair 04:15–08:26(opens in a new tab).
  • One result stream can feed independent consumers: The design publishes scan results once, sends mismatches through a filtered subscription for administrator email, and sends all results to BigQuery for audit reporting in Data Studio 07:24–12:38(opens in a new tab).

Full video: https://www.youtube.com/watch?v=HbsHC8gq_NQ(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.