Nest Engineering Docs
Stream

Operations

Deployments, SLOs, and monitoring for Stream

Deployments

  • Build from services/stream/Dockerfile.
  • The container runs granian against services.stream.main:app.
  • Default listen port is 8080 and honors the PORT environment variable.

Startup behavior

  • Loads STREAM_SENTRY_DSN from Secret Manager.
  • Initializes Spanner client and warms the connection pool.
  • Initializes Cloud Tasks scheduler with per-PIMS queue mappings.

Monitoring and alerts

  • Sentry is required; startup fails if the DSN is missing.
  • Logs are written to stdout with INFO-level defaults.

SLOs and SLIs

  • TBD. Define latency and error targets for change stream processing.

Scaling and performance

  • Stateless service; scheduling is parallelized.
  • Idempotent task naming prevents duplicate downstream work.

Last updated on