Algoh
Back to Rock Solid Strategy Structure
Zero Data Loss

5-Layer Database & Storage Fallback

Trade state, open positions, and SL/Target levels are protected by a 5-tier cascading storage engine so a database failure never blinds your bot.

Key Architecture Guarantees

  • Tier 1: Primary SQLite / PostgreSQL transactional database
  • Tier 2: Hot Backup Database mirror for instant failover
  • Tier 3: Structured CSV trade ledger
  • Tier 4 & 5: Atomic JSON state snapshots & append-only Text recovery logs

Execution Flow

01.Write to Primary DB (Success -> Done)
02.On Lock/Error -> Write to Backup DB
03.On DB Unavailable -> Write to CSV & JSON Snapshot
04.Last Resort -> Append-Only Plain Text Recovery Log
Algorithmic Trading Software Features & Capabilities | Algoh | Algo Software Innovations