kibatic/ha-bundle
A Symfony bundle from Kibatic that brings high availability to Doctrine connections. It transparently fails over to a standby database server when the primary goes down, keeping your application online with minimal configuration and no changes to your existing queries.
Consider it only when all of the following hold:
read/write connection config already covers static splitting. In Laravel the package's value is as a reference design, not a dependency.Look elsewhere when any of these are true:
If you proceed at all, treat it as a spike: read the source, extract the fallback pattern, and reimplement the small piece you need in-house with tests — rather than adding the dependency as-is.
For executives (one paragraph): This is a small, effectively unmaintained open-source add-on that would let our PHP application keep serving read-only pages when our database's primary server goes down, instead of showing errors to every user. Customers never see it — it is insurance against one specific failure mode, and it only pays off if we run our own replicated database without a managed failover service. It is also built for Symfony, not our Laravel stack, so we cannot simply install it. My recommendation is not to adopt it as a dependency: use it as a reference design, and either (a) fund the proper infrastructure fix — a managed HA database or a proxy tier — or (b) if that budget is unavailable this quarter, have engineering implement the read-only fallback pattern directly in our connection layer, scoped to two to three sprints. That delivers the same degradation behaviour without inheriting an unsupported third-party component.
For engineering leadership:
read/write connection config for splitting, plus an infrastructure-tier failover (managed HA endpoint or ProxySQL/MySQL Router) for primary loss. That solves the same problem for every service we run, not just this app.How can I help you explore Laravel packages today?