role-database:replication-ha

Design high availability and replication topologies for database engines.

14|3|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/rnavarych/alpha-engineer --skill role-database-replication-ha
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: role-database:replication-ha
Source: https://github.com/rnavarych/alpha-engineer/tree/main/plugins/roles/role-database/skills/replication-ha
Command: npx skills add https://github.com/rnavarych/alpha-engineer --skill role-database-replication-ha

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the critical need for continuous database availability and data integrity by implementing robust high availability and replication strategies.

Core Features & Use Cases

  • Replication Configuration: Set up synchronous, semi-synchronous, and asynchronous replication across various database engines (PostgreSQL, MySQL, MongoDB, Redis, Cassandra).
  • High Availability: Design and implement failover mechanisms, including split-brain prevention and automated failover.
  • Monitoring: Establish comprehensive monitoring for replication lag and health.
  • Use Case: When designing a new e-commerce platform, use this Skill to configure multi-region replication for PostgreSQL to ensure zero data loss during a primary data center outage and provide low-latency reads in each region.

Quick Start

Configure PostgreSQL streaming replication with a synchronous standby for high availability.

Frequently Asked Questions about role-database:replication-ha

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

FAQPage Schema
How do I configure PostgreSQL streaming replication for high availability?

To configure PostgreSQL streaming replication for high availability, this Skill designs a topology with a synchronous standby node. It establishes continuous operation and automated failover mechanisms to ensure data consistency and prevent split-brain scenarios during an outage.

What is the difference between synchronous and asynchronous database replication?

Synchronous database replication ensures RPO=0 by confirming writes across nodes before committing, while asynchronous replication allows primary nodes to commit independently. This Skill configures both modes to balance data consistency and read scaling performance.

Can I use this to set up multi-region replication for MongoDB and Cassandra?

Yes, you can use this to set up multi-region replication for MongoDB and Cassandra. It designs high availability topologies across diverse database engines, configuring replication modes and consensus protocols like Raft and Paxos to ensure continuous operation.

How does automated failover prevent split-brain in database clusters?

Automated failover prevents split-brain in database clusters by leveraging consensus protocols like Raft and Paxos. This Skill configures these mechanisms to ensure nodes agree on a single primary, maintaining data consistency during network partitions or node failures.

When do I need RPO=0 replication for my database architecture?

You need RPO=0 database replication for financial transactions where zero data loss is strictly required during failures. This Skill implements synchronous replication to guarantee data consistency across primary and standby nodes for critical operations.

What is the best way to monitor database replication lag and health?

The best way to monitor database replication lag and health is by establishing comprehensive tracking across your topology. This Skill sets up monitoring mechanisms to ensure continuous operation and data consistency for high-traffic applications.