high-availability-patterns

Implement Redis leader election and failover for Python crypto trading systems.

4|2|Updated Nov 13, 2025
One-click install
npx skills add https://github.com/khanh-vu/claude-force --skill high-availability-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: high-availability-patterns
Source: https://github.com/khanh-vu/claude-force/tree/main/.claude/skills/high-availability-patterns
Command: npx skills add https://github.com/khanh-vu/claude-force --skill high-availability-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides production-ready high-availability patterns for distributed crypto trading platforms, enabling seamless failover, leader election, and state reconciliation to guarantee near-zero downtime.

Core Features & Use Cases

  • Active-Passive Architecture with Redis Leader Election: ensures a single active instance coordinates trades while others stay ready to take over.
  • State Reconciliation on Failover: re-syncs state to prevent duplicate orders and balance drift during failover.
  • Health Check & Monitoring: proactive health checks to detect degradations and trigger safe failovers.
  • Graceful Shutdown Pattern: orderly shutdown sequences to minimize risk during maintenance.
  • Failover Time Monitoring: metrics and alerts to meet targeted failover times.

Quick Start

Use this Skill to deploy and test high-availability workflows in a clustered crypto trading environment by enabling the leader election and failover test sequence.

Frequently Asked Questions about high-availability-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement leader election for a Python crypto trading system using Redis?

State reconciliation during failover re-syncs active state to prevent duplicate orders and balance drift. This mechanism ensures the newly elected leader picks up the exact trading position without executing previously committed transactions.

What is the best way to handle graceful shutdown in distributed asyncio trading platforms?

Health monitoring detects system degradations and triggers safe failovers before critical failures occur. This proactive approach uses continuous health checks to verify instance availability and meet targeted failover time metrics in crypto deployments.

Can I use active-passive failover patterns to achieve 99.99% uptime in crypto trading?

Active-passive failover patterns achieve 99.99% uptime by keeping standby instances ready to take over instantly. This architecture uses Redis leader election and state reconciliation to ensure continuous operation during active instance failures.

Do I need Redis to run high-availability failover testing for crypto systems?

Redis is required to run high-availability failover testing for crypto systems as it coordinates leader election and state reconciliation. The implementation uses Redis alongside Python asyncio to manage deterministic active and standby configurations.