Skip to content
Get started
Get started
Engineering Validation Report
View Markdown
examples · engineering report · 2026-08-30

Tested end to end. Nothing left running.

Recorded functional validation for the executable PostgreSQL multi-broker suite: scenario timings, timeout checks, cleanup proof, and scope boundaries.

Chaos & Verification Evidence

Every multi-broker invariant is tested against live PostgreSQL 17, 18, and 19

stress LOAD Real Traffic multi-pod push/pull recover KILL Fault Injection SIGTERM + SIGKILL assert HEAL Auto Recovery fenced lease handoff PASS 0 Lost / 0 Dup 100% jobs settled Validated continuously on PostgreSQL 17, 18.6, and 19.0
Proven under faults: automated test suites verify zero lost jobs, zero duplicate completions, and clean lease recovery across broker kills and DB restarts.

PASS for the documented functional scope. Three active brokers shared authoritative PostgreSQL state across all four scenarios (exit 0), and the exit trap removed every container, network, volume, and local image. A forced 1 ms timeout run (BUNQUEUE_EXAMPLE_SCENARIO_TIMEOUT_MS=1) failed fast on topology (exit 1) with identical zero-residue teardown.

FieldRecorded value
Campaign date / arch2026-08-30 · macOS Darwin 25.6.0 (arm64) -> Linux arm64 containers
Docker / BunDocker 29.4.0 / Bun 1.4.0 (34cbb9a40)
PostgreSQL / topologypostgres:18.6-alpine (now 19.0-alpine in compose.yaml) · 3 brokers, shared namespace, internal: true, zero host mounts
ScenarioResultRunner durationVerified assertions
topologyPASS8 ms3x /healthz + /ready, unauthenticated metrics denied, authenticated /prometheus returned
multi-queuePASS613 ms3 queues/workers, priority order, delayed hold/promote, retry, progress, logs, events, results
reliabilityPASS1,492 msGlobal concurrency handoff, shared fixed-window rate limit, custom-ID race, pause, DLQ, replay
flowPASS551 ms5 durable nodes, 3 levels, strict child ordering, exactly-once execution, getFlow() + result

Durations measure performance.now() inside the isolated SDK container (excluding image build, startup, and teardown).

  • Zero residual Docker state (after both the 1 ms timeout failure and final passing run): 0 containers, 0 volumes, 0 networks, 0 local project images.
  • Unit regressions (test/postgres-multibroker-example.test.ts): verify CLI argument hardening (Object.hasOwn rejecting toString/constructor/__proto__), multi-phase cleanup aggregation, scenario/HTTP deadlines, and BUNQUEUE_EXAMPLE_PROJECT prefix validation.
  • Covered: public TypeScript SDK, authenticated TCP transport, PostgreSQL transactions/leases/policies/DLQ/flows, cross-broker reads/writes, and automatic teardown.
  • Not covered here: PostgreSQL primary failover, broker SIGKILL during active leases, mixed-version upgrades, TLS PKI, non-TypeScript SDKs, or sustained load benchmarks (covered separately by the repo’s PostgreSQL crash, model-based, SDK conformance, and sandbox suites).

Re-run locally: ./examples/postgres-multibroker/verify.sh