amphp/cluster
amphp/cluster lets PHP applications scale across multiple processes and machines, providing cluster nodes, workers, message passing, job distribution, and synchronization primitives on top of Amp for building resilient distributed systems.
Consider it when:
amphp/http-server, WebSocket/socket libraries, etc.).Look elsewhere when:
Executive summary: amphp/cluster is a niche infrastructure package that lets AMPHP-based PHP network services use multiple CPU cores through worker processes. It does not add user-facing features; it may extend the life of a PHP async service and reduce pressure to rewrite in another language. Given its small community and limited adoption signals, it should be positioned as a time-boxed technical spike for a proven bottleneck — not a platform-wide standard.
Engineering summary: Use it only if we are already on AMPHP and need worker-process orchestration rather than building it ourselves. Keep workers stateless, externalize shared state, and budget for supervision, observability, graceful shutdown, and upgrade risk. Success criteria should be explicit: measured throughput/latency improvement on a realistic workload, a runbook for operations, and a clear exit path if the dependency or complexity does not pay off.
Recommendation: Conditional pilot, not broad adoption. Fund a short spike against one concrete service bottleneck; if it does not beat simpler scale-out or Octane/RoadRunner/FrankenPHP alternatives on cost, risk, and operability, do not adopt.
How can I help you explore Laravel packages today?