How to Deploy Managed WebSocket Clusters with Laravel Cloud Reverb
Scaling Real-Time Connectivity
Real-time features define the modern web, but the infrastructure behind them often presents a steep hurdle. Traditionally, developers had to choose between wrestling with complex configurations or maintaining their own expensive server clusters. solves this by offering a fully managed experience. This guide will help you bridge the gap between local development and production-scale real-time broadcasting without touching a single environment variable.
Tools and Prerequisites
Before you begin, ensure your application is already functional with a local Reverb instance. You will need:
- A application pushed to a repository.
- Broadcasting events and hooks already implemented in your code.
- An active account.
Step-by-Step Deployment
- Push Your Code: Deploy your application to directly from your repository. At this stage, your real-time features won't work yet because the production environment lacks a WebSocket server.
- Add the Resource: Navigate to your application dashboard and select Add New Resource. Choose WebSocket Cluster from the list of managed services.
- Select a Tier: For small apps or demos, the entry-tier allows for 100 concurrent connections at a low monthly cost. Select your capacity and click Create.
- Save and Deploy: Once the resource is added, click Save and Deploy. The platform automatically injects the necessary configuration into your environment so that your code recognizes the new cluster.
Managing Cluster Capacity
As your user base grows, you can adjust your scale without downtime. Access your Account Settings, then navigate to Resources and WebSockets. From here, you can select your cluster (e.g., "Reverb Demo") to view live usage metrics or increase your concurrent connection limit to 5,000 or more. The platform handles the underlying orchestration, keeping your focus on building features rather than managing pings and heartbeats.
Conclusion
The beauty of this workflow is the zero-config handoff. Because manages the server internally, the transition from local php artisan reverb:start to a globally available cluster is seamless. You gain a robust, scalable WebSocket infrastructure that just works the moment you hit deploy.
- 33%· products
- 25%· products
- 8%· products
- 8%· people
- 8%· products
- Other topics
- 17%

Laravel Cloud Has Managed Reverb Now
WatchLaravel // 4:41
The official YouTube channel of Laravel, the clean stack for Artisans and agents. We will update you on what's new in the world of Laravel, from the framework to our products Cloud, Forge, and Nightwatch.