Products
Crucible PostgreSQL Walkthrough
This walkthrough provisions three synchronized PostgreSQL 16 containers, sends production-like reads through one stable Eve interlay, inspects request-level evidence, selects the fastest contender, and proves the same interlay address now routes only to that endpoint.
The walkthrough exercises one released adapter in depth. PostgreSQL is not a dependency of the generic Crucible control plane; MySQL, MongoDB, Redis, and LLM adapters register through the same runtime contract.
Prerequisites
- Docker.
psql.- A local Eden service built with
endpoint-comparison,postgresor a production runtime bundle. - An administrator bearer token in
EDEN_TOKEN. - Optional
pgbenchfor the performance gate.
Start Eden
Use the normal local Eden startup path with a database and analytics configuration. Confirm that /api/v1/endpoint-comparisons/arenas is reachable before running the script.
Run The Walkthrough
cd local-demo/endpoint-comparison
export EDEN_BASE_URL=http://127.0.0.1:8000
export EDEN_TOKEN=...
python3 run_demo.py --duration 30Use --duration 0 to continue until Ctrl-C. Use --no-complete to leave the run active for dashboard inspection.
What The Script Does
- Starts three PostgreSQL containers and seeds identical synthetic claims data.
- Adds controlled server delays so equivalent results have distinct performance profiles.
- Registers all three databases as normal Eden endpoints.
- Creates and starts one stable PostgreSQL interlay.
- Creates a homogeneous Crucible arena and starts an indefinite run.
- Sends repeated reads through the interlay, never directly to contenders.
- Writes the arena, run, summary, request drill-down, and selected endpoint to
artifacts/. - Calls completion preflight with warning acknowledgement.
- Completes the run with the fastest successful p95 contender.
- Verifies the unchanged interlay now names the selected endpoint and still accepts the same query.
Inspect The Evidence
Review:
artifacts/arena.jsonartifacts/run_started.jsonartifacts/summary.jsonartifacts/request_comparisons.jsonartifacts/selected_endpoint.jsonartifacts/completion_preflight.jsonartifacts/run_completed.jsonartifacts/final_interlay.json
Request artifacts contain safe identifiers, timings, counts, statuses, and keyed digests. They do not contain SQL or returned claims data.
Run The Serving-Path Gate
python3 run_demo.py --performance-gate --benchmark-seconds 30The script runs matched pgbench workloads before and after attaching Crucible. It fails if added p99 exceeds 25 microseconds or throughput loss exceeds 1 percent and writes the benchmark evidence under artifacts/.
Cleanup
docker compose down -vThe identical seed represents external data readiness. Crucible itself does not synchronize the databases.
Run The Protocol Matrix
The companion local-demo/endpoint-comparison-protocol-matrix harness starts two PostgreSQL, MySQL, MongoDB, and Redis backends plus two fake OpenAI-compatible providers. It creates real Eden endpoints, interlays, arenas, and runs for every released adapter and validates promptless per-target evidence.
python3 local-demo/endpoint-comparison-protocol-matrix/run_matrix.py --protocol all