Skip to content

Example — failover-demo

Example — failover-demo

Manual primary-failover demo with Transaction Write Replay (TWR) on the proxy side.

Source on GitHub: HDB-HeliosDB-Proxy/examples/failover-demo

Demonstrates

  • Application connects to the proxy on :5432 and starts a long-running transaction
  • Operator triggers pg_promote on the standby; primary goes down mid-transaction
  • HeliosProxy v0.4 detects the failover, replays the in-flight transaction against the new primary via TWR
  • Application sees no error, no rollback — the transaction commits on the new primary

Run

Terminal window
cd HDB-HeliosDB-Proxy/examples/failover-demo
./run-demo.sh

The driver script narrates each step. Watch the proxy admin UI’s Topology and Time-Travel Replay panels to see the failover and journal entries in real time.

Why it matters

This is the demo that maps directly to Innovation #6 (Transaction Write Replay) in the HeliosProxy IP portfolio — Oracle TAF/TAC-equivalent failover transparency without per-application code changes.