- Docs
- SDKs, Recipes & Learning
- PostgreSQL Multi-Broker
- Validation Report
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.
Every multi-broker invariant is tested against live PostgreSQL 17, 18, and 19
Verdict
Section titled “Verdict”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.
Recorded environment & scenario matrix
Section titled “Recorded environment & scenario matrix”| Field | Recorded value |
|---|---|
| Campaign date / arch | 2026-08-30 · macOS Darwin 25.6.0 (arm64) -> Linux arm64 containers |
| Docker / Bun | Docker 29.4.0 / Bun 1.4.0 (34cbb9a40) |
| PostgreSQL / topology | postgres:18.6-alpine (now 19.0-alpine in compose.yaml) · 3 brokers, shared namespace, internal: true, zero host mounts |
| Scenario | Result | Runner duration | Verified assertions |
|---|---|---|---|
topology | PASS | 8 ms | 3x /healthz + /ready, unauthenticated metrics denied, authenticated /prometheus returned |
multi-queue | PASS | 613 ms | 3 queues/workers, priority order, delayed hold/promote, retry, progress, logs, events, results |
reliability | PASS | 1,492 ms | Global concurrency handoff, shared fixed-window rate limit, custom-ID race, pause, DLQ, replay |
flow | PASS | 551 ms | 5 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).
Cleanup proof and coverage boundaries
Section titled “Cleanup proof and coverage boundaries”- Zero residual Docker state (after both the 1 ms timeout failure and final passing run):
0containers,0volumes,0networks,0local project images. - Unit regressions (
test/postgres-multibroker-example.test.ts): verify CLI argument hardening (Object.hasOwnrejectingtoString/constructor/__proto__), multi-phase cleanup aggregation, scenario/HTTP deadlines, andBUNQUEUE_EXAMPLE_PROJECTprefix 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
SIGKILLduring 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