Skip to content

Demo Guide & Script

The POC is designed as an interactive education tool. At each critical state, pause and explain the business value and technical mechanism. This narrative guides the presenter through every important moment.

PersonaAnxiety / ConcernHow We Prove It (In This Demo)
CEO (Chief Exec)“Will this break core sales flows?”Continuity: Safe mode (Durable Objects) never oversells. Even under load, allocations stay consistent and recoverable.
CFO (Finance)“Are we exposing ourselves to cost?”Hard Cost Lock: DEMO_COST_LIMIT=0.0 and BILLING_SCALE=1e-9 block real spend; every response returns the cost ledger.
COO (Ops)“Can it handle concurrency?”Atomicity Under Load: Safe path uses DO per session/SKU; show zero race conditions at high request rate.
CIO (Info)“Is this drop-in without rewrites?”Edge Abstraction: Logic lives at the edge (KV + DO + D1); frontend toggles mock/live without backend rewrites.
CMO (Marketing)“Will UX jitter during spikes?”Stable UX: Live vs mock toggle shows identical UI; allocations return in <100ms on safe path; guardrail banners only.
CRO (Revenue)“Are we losing carts to oversell?”Oversell Demo: Eventual mode intentionally oversells (shows oversellDelta); safe mode prevents it—conversion protection.
CCO (Compliance)“Are we storing customer data?”Minimal Data Footprint: Only sessionId/ip/timestamps in KV; no PII, no cards. Easy data minimization story.
CSO (Security)“Can bots or abuse drain resources?”Zero Trust + Rate Limits: Turnstile for sessions, 200/min allocate throttle, 1/min reset throttle, AE logging.

2) Objection Handling & Competitive Analysis

Section titled “2) Objection Handling & Competitive Analysis”
  • “Cloud costs will spike”: The demo is hard-capped at $0 real spend (DEMO_COST_LIMIT=0.0, BILLING_SCALE=1e-9). No alerts-only posture—actual block.
  • “It will add latency”: Safe path (DO) returns in ~<100ms; overhead is minimal because state is colocated at the edge. Compare to gateway hops.
  • “It will oversell under load”: Show eventual path overselling (oversellDelta) vs safe path preventing it—atomic DO proves the fix.
  • “We cannot touch the backend”: The edge layer is toggleable (mock/live) with no legacy changes; it is an overlay, not a rewrite.
  • “Bots will drain inventory”: Turnstile-gated sessions + per-session/IP rate limits; AE events for abuse traces.

For each step: What the customer seesWhat to sayEducational point.

  1. Login + Guardrails On

    • Sees: Turnstile challenge, 20-min session banner, cost meter at $0.
    • Say: “Zero Trust entry: no session, no spend. Real billing is locked to zero by design.”
    • Teach: KV session, DEMO_COST_LIMIT=0.0, BILLING_SCALE=1e-9, Authorization header.
  2. Baseline Allocation (Safe / Atomic Path)

    • Sees: Safe allocation succeeds; latency ~<100ms; inventory decrements without oversell.
    • Say: “Durable Objects give per-session, per-SKU atomicity—no race, no double-sell.”
    • Teach: DO shard per session+SKU; AE event on success; KV cost ledger updates.
  3. Race Condition Demo (Eventual Path)

    • Sees: Eventual allocation oversells; oversellDelta appears; guardrail flag may light.
    • Say: “This is the failure mode we eliminate in safe mode—intentional oversell to prove the point.”
    • Teach: D1 read → 100ms pause → write; illustrates lost-update risk vs DO atomic path.
  4. Virtual Guardrail Trip

    • Sees: Virtual cost crosses threshold; banner warns; allocations continue safely.
    • Say: “We model financial risk without real spend—perfect for training and pilots.”
    • Teach: Virtual vs real spend; guardrail metadata returned in ApiResponse.
  5. Reset & Recovery

    • Sees: Reset clears allocations; rate limit protects against abuse.
    • Say: “Operational control is rate-limited—one reset per minute per IP.”
    • Teach: KV rate limit keys; DO shards reset per SKU/session; idempotent recovery path.
  6. Wrap / Metrics

    • Sees: Summary card: zero real spend, safe path no oversell, eventual path oversell shown for contrast.
    • Say: “We answered cost, concurrency, and safety in one flow—atomic when you need it, observable always.”
    • Teach: Tie back to Validation Matrix; point to AE for traces and logs.

When evaluating this architecture for production, we solve three simultaneous distributed systems problems that traditional stacks struggle with:

  1. Distributed Systems Under Contention: Race conditions are eliminated by design.

    • Read-modify-write gaps (why “SELECT → check → UPDATE” fails)
    • Single-threaded serialisation (why Durable Objects guarantee atomicity per SKU)
    • State consistency under concurrent load (what “safe mode” actually proves)
    • Result: Stability under extreme contention without heavy locking overhead.
  2. Edge Computing as a First-Class Problem: This isn’t “servers in multiple regions.” It’s:

    • Per-request latency budgets (12ms vs 85ms at scale)
    • Cold-start constraints (<5ms V8 isolate penalty)
    • Hibernation + reconnection resilience (<1s recovery)
    • Per-user state isolation (sharding by session + SKU, not just globally)
    • Result: Global performance that feels local to every user.
  3. Observability & Proof (Not Assertions): The demo shows correctness instead of claiming it:

    • Safe mode live-caps at 100 (observable, repeatable)
    • Eventual mode live-oversells (observable, measurable)
    • Guardrails trip automatically (observable, no manual debugging)
    • Analytics Engine captures every interaction (provable, auditable)
    • Result: Observed behaviour is the only truth that matters in financial transactions.

Competitive Positioning vs Market Alternatives

Section titled “Competitive Positioning vs Market Alternatives”
ApproachAtomicityLatency (p99)Annual CostComplexityThis Demo
AWS DynamoDBEventual (Streams)50–100 ms$400–800kWeeks(Shows why eventual fails)
AWS ElastiCacheApplication Logic10–30 ms$200–400k2–3 weeks(Single cache failure point)
DynamoDB TransactionsYes, but expensive50–150 ms$800k–1.5MComplex, limited(Cost prohibitive at scale)
Regional SQLYes (BUT slow)87–450 ms$1.89M–2.95MHeavy lifting(The “Eventual Mode” failure case)
Cloudflare DO (Revenue Guard)Yes12–25 ms$135–175k4 weeksSafe mode proves it

Key message: “Every other approach trades atomicity or latency or cost. We don’t. Here’s the proof.”

Architectural Takeaway: Choosing Durable Objects over these alternatives solves the trade-off space deeply. It doesn’t just pick a database—it picks the right compute primitive for the problem.

  • AWS: Offers distributed solutions, but atomicity requires Transaction Tables (expensive, complex) or eventual consistency (which fails, as we show).
  • GCP: Datastore + Firestore offer similar patterns; higher latency, regional lock-in.
  • Cloudflare: Durable Objects are uniquely positioned—colocated request path, single-threaded guarantee, hibernation, global edge distribution.

Why this matters: Most architectures default to “databases” and argue about consistency models. Revenue Guard uses an edge compute primitive because it is the right tool for the problem. That’s architectural maturity.

  • Pace & Narrative Arc: Pause at critical moments. “Safe mode: capped at 100, always. Eventual mode: oversells. See the difference?” Translate milliseconds to revenue and risk. “That 70ms latency difference in Sydney? That’s conversion rate loss per customer.”
  • Live Latency Callout: Point to the latency badge during safe mode. “Twelve milliseconds. That’s why we chose edge. Regional database can’t compete.”
  • Guardrail Theater: When the guardrail trips, pause dramatically. “We caught it before it became a billing surprise. That’s what automated circuit-breakers do in production.”
  • Cost Credibility Lock: Emphasise the DEMO_COST_LIMIT=0.0. “No real money. No risk. This is proof without exposure.”
  • Credibility Tie-Back (If audience includes ops/infra): “This is a proof. In production, the same guardrail logic protects real transactions over real money. Same architecture, just with zeros removed.”
  • Close with Competitive Positioning (if audience asks about alternatives): “AWS offers DynamoDB transactions, but they’re expensive and slow. We get both atomicity and speed at 1/10th the cost. Here’s the proof.”
  • For Technical Decision Makers: “This is what edge-native architecture looks like. It understands distributed systems at a depth most don’t reach. It didn’t default to a database—it picked the right compute primitive for the problem.”
  • If Turnstile is unavailable: Use DEBUG_TOKEN to proceed; Turnstile is a nice-to-have for the security narrative but not a blocker.
  • If guardrail doesn’t trip naturally: Reset the counter and trigger it manually. The moment it trips is the credibility moment.