k6 Lambda+Postgres load drill [Chore-1169]

Story 1169Epic None1 files · +104/−0

PR #295 · pramaan-io/pramaan-functions · merged 2026-06-10

Why this matters

You ship what you haven't flooded.

The ceiling you never found in staging will find you in production.

Your 'green' test never reached the ceiling.

The fix — You don't ship a dam you haven't flooded.

How it flows

sequenceDiagram
  autonumber
  participant vu as k6 VUs
  participant lambda as Lambda
  participant db as Postgres
  vu->>lambda: ramp stages
  lambda->>db: query
  db->>lambda: result
  lambda->>vu: response / timeout
  vu->>vu: record latency, error, threshold check

Files changed (1)

File±
scripts/k6/staging-lambda-db-load.js ★+104