PHP Database Read-Write Proxy Generator

•
47
•

Generates robust database connection proxies for PHP 8.4 to implement seamless read/write splitting and replica routing.

This skill automates the creation of high-performance database infrastructure components that optimize application scaling by distributing read loads across multiple replicas while maintaining write consistency. It generates a transaction-aware proxy that intelligently routes SQL queries based on operation type, incorporating enterprise-grade patterns such as sticky connections after writes to prevent stale data and automated health checks to ensure traffic only reaches healthy replicas. Designed for modern PHP 8.4 environments, it follows DDD and Clean Architecture principles to keep your database routing logic decoupled from business code.

主な機能

01Multi-replica support with automated health monitoring and failover
02Transaction-aware routing to ensure data consistency
0347 GitHub stars
04Automated SQL routing for primary/replica architectures
05PHP 8.4 type-safe implementation with unit test generation
06Sticky connection logic to prevent read-after-write stale data

ユースケース

01Reducing primary database load in CQRS or DDD-based architectures
02Scaling high-traffic PHP applications by offloading reads to database replicas
03Implementing resilient database infrastructure with automated health checks