Phase 04 — Product Operations
Deploy strategy, SLOs, DORA metrics, A/B experiments and monitoring.
Deploy Strategy
ECP Pay v1 operates as a local service in the development ecosystem. Deploy is done via npm run dev with hot reload via tsx.
- API Server: Fastify on port
3335 - Admin Panel: Vite dev server on port
5176 - Database: SQLite —
database-pay.sqlite(auto-created) - Default provider: Internal (simulation mode)
# In project root
npm install
npm run dev
# Or separately
cd server && npm run dev # API :3335
cd web && npm run dev # Admin :5176
Database is automatically populated at startup with:
- 3 registered apps (ecp-bank, ecp-emps, ecp-food)
- 1 admin user (admin@ecpay.dev / Admin@123)
- Default feature flags (PAYMENT_PROVIDER=internal)
- Sample transactions for each type
Service Level Objectives (SLOs)
GET /pay/health. Endpoint returns server status and active provider.callback_status = delivered on first attempt.DORA Metrics
Planned A/B Experiments
Hypothesis: Reducing the Pix auto-approve delay from 5s to 1s improves developer test cycle speed.
Metric: Time to complete a full payment test cycle.
Variants: 5s delay (control) vs. 1s delay (variant)
Linked KR: KR-04
Hypothesis: Adding elapsed time between steps in the timeline reduces investigation time for operators.
Metric: Time between opening transaction detail and identifying root cause.
Variants: Timestamps only (control) vs. Timestamps + elapsed (variant)
Linked KR: KR-05
Hypothesis: Adding impact preview (pending tx count) reduces accidental provider switches.
Metric: Accidental switch-backs within 5 minutes.
Variants: Simple confirmation (control) vs. Impact preview (variant)
Linked KR: KR-03