Laravel Reverb vs Pusher (2026): Which WebSocket Server Should You Use + Setup Guide
- Quick Answer: Reverb or Pusher?
- What Are Laravel Reverb and Pusher?
- Reverb vs Pusher: Side-by-Side Comparison
- Cost: Where the Real Difference Shows Up
- Pusher pricing in 2026
- Reverb pricing
- Rule of thumb
- Performance and Scaling
- Features and Developer Experience
- Security and Compliance
- Step-by-Step: Set Up Laravel Reverb
- 1. Install broadcasting and Reverb
- 2. Check your .env
- 3. Create a broadcast event
- 4. Authorize the channel
- 5. Listen in the browser with Echo
- 6. Run everything
- Taking Reverb to Production
- Step-by-Step: Set Up Pusher (for Comparison)
- How to Migrate from Pusher to Reverb
- Common Problems and Fixes
- Final Verdict
- Frequently Asked Questions
Real-time features such as chat, notifications, live dashboards and presence indicators are now table stakes for Laravel apps. The question is no longer whether to use WebSockets, but which server to run them on.
For years the default answer was Pusher. Then Laravel shipped Reverb, a first-party WebSocket server, and the choice got real. This guide compares both on cost, performance, scaling, setup effort and lock-in. It ends with a copy-paste Reverb setup and a migration path from Pusher.
Quick Answer: Reverb or Pusher?
Choose Laravel Reverb if you control your own server (VPS, Forge, Ploi, Docker, Kubernetes), you expect a lot of connections or messages, or you want predictable costs and no per-message billing.
Choose Pusher if you want zero infrastructure to manage, you are shipping an MVP this week, or your team has no one who wants to babysit a long-running process.
Good news: Reverb speaks the Pusher protocol. You can start on one and move to the other by changing environment variables, not rewriting your app.
What Are Laravel Reverb and Pusher?
Laravel Reverb is an open-source WebSocket server written in PHP and maintained by the Laravel team. It plugs straight into Laravel's event broadcasting, so ShouldBroadcast events, private channels, presence channels and Laravel Echo work the way you already know. You run it yourself with php artisan reverb:start. If you do not want to host it, Laravel Cloud offers managed Reverb clusters.
Pusher Channels is a hosted real-time service. You never run a WebSocket server. Your Laravel app sends events to Pusher's API, and Pusher delivers them to browsers. You pay a monthly subscription based on usage.
Reverb vs Pusher: Side-by-Side Comparison
|
Factor |
Laravel Reverb |
Pusher Channels |
|---|---|---|
|
Hosting |
Self-hosted (or Laravel Cloud managed) |
Fully managed SaaS |
|
Cost model |
Your server cost only |
Monthly plan by connections + daily messages |
|
License |
Open source, free |
Proprietary, free Sandbox tier |
|
Protocol |
Pusher-compatible |
Native Pusher |
|
Laravel integration |
First-party, installed via |
Official driver via |
|
Scaling |
Horizontal, via Redis or (Laravel 13+) database driver |
Handled by Pusher |
|
Ops burden |
You manage process, proxy, TLS, limits |
None |
|
Data location |
Your infrastructure |
Pusher's infrastructure |
|
Lock-in |
None |
Moderate (but protocol is portable) |
Cost: Where the Real Difference Shows Up
Cost is the biggest reason teams switch, so let's be concrete.
Pusher pricing in 2026
Pusher bills on two meters: peak concurrent connections and messages per day. Based on pricing trackers reviewed in autumn 2026, the ladder looks like this:
- Sandbox: free, with about 100 concurrent connections and 200k messages per day
- Startup: $49/month
- Pro: $99/month
- Business: $299/month
- Premium: $499/month
- Higher tiers climb to $699, $899 and $1,199/month, plus custom Enterprise pricing
- Priority support is listed as a separate add-on
The trap is the connection ceiling. One popular post or a traffic spike can push your peak connections into the next tier, and a chatty presence channel can burn through the daily message cap faster than expected. Because plan limits are tied to peaks, your bill can jump even if average usage is low.
Prices change. Always confirm on Pusher's official pricing page before you decide.
Reverb pricing
Reverb itself costs nothing. You pay for the server it runs on. A small VPS can handle a surprising number of connections, and when you outgrow it you scale horizontally by adding servers. There is no per-message meter, so a noisy feature does not change your invoice.
The honest caveat: "free" ignores your time. Reverb needs a process manager, a reverse proxy, TLS and monitoring. If nobody on your team wants that job, Pusher's $49 to $99 may be the cheaper option once you count hours.
Rule of thumb
- Under about 100 concurrent users, prototype stage: Pusher's free tier is hard to beat for speed.
- Steady growth, thousands of connections: Reverb usually wins on cost.
- Spiky traffic (launches, live events): Reverb avoids tier-jump surprises, as long as you provision capacity for the spike.
Performance and Scaling
Reverb runs on an event loop and is built for high connection counts on a single process. For more than one process or server, you enable scaling mode, which uses a pub/sub backplane so every Reverb instance can fan messages out to all subscribers.
A notable change arrived with Laravel 13 (released March 17, 2026): Reverb's scaling layer became driver-based, and a database driver now sits alongside Redis. Before this, running two Reverb processes meant adding Redis to your stack. Now smaller deployments can scale out without it. Redis (or Valkey) is still the stronger choice for high-throughput setups.
With Pusher, scaling is not your problem. That is exactly what you are paying for.
Features and Developer Experience
Both support public, private and presence channels, client events and Laravel Echo. In practice the differences are:
- Debugging: Reverb offers
php artisan reverb:start --debugto stream traffic locally. Pusher gives you a hosted debug console and connection logs. - Monitoring: Reverb integrates with Laravel Pulse to track connections and messages. Pusher provides its own dashboard.
- Multiple apps: One Reverb install can serve several applications, which is handy for agencies and multi-tenant products.
- Local dev: Reverb runs on your machine with no account or API keys from a third party.
Security and Compliance
With Reverb, data stays on infrastructure you control, which simplifies data residency questions. You are also responsible for TLS, allowed origins and patching. Reverb's allowed_origins setting rejects connections from origins you have not listed.
With Pusher, security operations are outsourced, and the company publishes ISO 27001 and GDPR information. If you need specific certifications such as SOC 2 or HIPAA, check Pusher's security page directly rather than assuming.
Step-by-Step: Set Up Laravel Reverb
This walkthrough assumes a current Laravel app (Laravel 11, 12 or 13).
1. Install broadcasting and Reverb
php artisan install:broadcasting
This command installs Reverb with sensible defaults, publishes config, and adds the environment variables. Accept the prompt to install Reverb and the Node dependencies.
2. Check your .env
BROADCAST_CONNECTION=reverb
REVERB_APP_ID=my-app-id
REVERB_APP_KEY=my-app-key
REVERB_APP_SECRET=my-app-secret
REVERB_HOST=localhost
REVERB_PORT=8080
REVERB_SCHEME=http
VITE_REVERB_APP_KEY="${REVERB_APP_KEY}"
VITE_REVERB_HOST="${REVERB_HOST}"
VITE_REVERB_PORT="${REVERB_PORT}"
VITE_REVERB_SCHEME="${REVERB_SCHEME}"
Do not confuse REVERB_SERVER_HOST and REVERB_SERVER_PORT (where the server listens) with REVERB_HOST and REVERB_PORT (where Laravel sends messages and where browsers connect).
3. Create a broadcast event
php artisan make:event OrderShipped
<?php
namespace App\Events;
use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class OrderShipped implements ShouldBroadcast
{
use Dispatchable, SerializesModels;
public function __construct(public int $orderId) {}
public function broadcastOn(): array
{
return [new PrivateChannel('orders.'.$this->orderId)];
}
}
4. Authorize the channel
In routes/channels.php:
Broadcast::channel('orders.{orderId}', function ($user, int $orderId) {
return $user->orders()->whereKey($orderId)->exists();
});
5. Listen in the browser with Echo
import Echo from 'laravel-echo';
import Pusher from 'pusher-js';
window.Pusher = Pusher;
window.Echo = new Echo({
broadcaster: 'reverb',
key: import.meta.env.VITE_REVERB_APP_KEY,
wsHost: import.meta.env.VITE_REVERB_HOST,
wsPort: import.meta.env.VITE_REVERB_PORT ?? 80,
wssPort: import.meta.env.VITE_REVERB_PORT ?? 443,
forceTLS: (import.meta.env.VITE_REVERB_SCHEME ?? 'https') === 'https',
enabledTransports: ['ws', 'wss'],
});
window.Echo.private(`orders.${orderId}`)
.listen('OrderShipped', (e) => {
console.log('Shipped!', e);
});
6. Run everything
php artisan reverb:start # add --debug while developing
php artisan queue:work # broadcasts are queued by default
npm run dev
Broadcast events are queued, so a missing queue worker is the number one reason "nothing happens" in a fresh setup.
Taking Reverb to Production
Reverse proxy. Reverb usually listens on a non-public port, so put Nginx (or Caddy) in front of it with WebSocket upgrade headers. Reverb serves WebSocket connections at /app and its HTTP API at /apps, so your proxy must forward both.
server {
listen 443 ssl;
server_name ws.example.com;
location / {
proxy_http_version 1.1;
proxy_set_header Host $http_host;
proxy_set_header Scheme $scheme;
proxy_set_header SERVER_PORT $server_port;
proxy_set_header REMOTE_ADDR $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_pass http://0.0.0.0:8080;
}
}
Process management. Run Reverb under Supervisor (or systemd) so it restarts automatically. Because it is long-running, run php artisan reverb:restart on every deploy, otherwise it keeps serving old code.
Open file limits. Every connection uses a file descriptor. Raise your OS limit (ulimit -n) well above the default, or you will hit a ceiling long before CPU or RAM.
Horizontal scaling. Set REVERB_SCALING_ENABLED=true and choose a backplane (Redis, or the database driver on Laravel 13+). Put a load balancer in front of multiple Reverb nodes.
Forge or Laravel Cloud. Forge can configure the server for Reverb from the Application panel, and Laravel Cloud offers managed Reverb if you want Reverb without running it.
Step-by-Step: Set Up Pusher (for Comparison)
composer require pusher/pusher-php-server
BROADCAST_CONNECTION=pusher
PUSHER_APP_ID=your-id
PUSHER_APP_KEY=your-key
PUSHER_APP_SECRET=your-secret
PUSHER_APP_CLUSTER=mt1
Create a Channels app in the Pusher dashboard, paste the credentials, point Echo at broadcaster: 'pusher' with your key and cluster, and your events, channels and listeners stay exactly the same. That is the entire appeal: about five minutes and nothing to host.
How to Migrate from Pusher to Reverb
Because the protocol matches, migration is mostly configuration:
- Run
php artisan install:broadcasting(orcomposer require laravel/reverbthenphp artisan reverb:install). - Set
BROADCAST_CONNECTION=reverband add theREVERB_*andVITE_REVERB_*variables. - Change the Echo
broadcasterfrom'pusher'to'reverb'. - Set up the reverse proxy and Supervisor on your server.
- Load test with your real channel patterns before cutting over.
- Switch over during a low-traffic window, keep Pusher credentials for a few days as a rollback, then cancel the subscription.
Your event classes, channel authorization and front-end listeners do not need to change.
Common Problems and Fixes
- Events never arrive: the queue worker is not running, or
BROADCAST_CONNECTIONis still set to the old driver. - 403 on private channels: the
/broadcasting/authroute is not registered, or yourroutes/channels.phpcallback returns false. - Works locally, fails in production: the proxy is missing the
UpgradeandConnectionheaders, or you are connecting overwsinstead ofwss. - Connections drop under load: open file limit too low.
- Old behavior after a deploy: you forgot
reverb:restart.
Final Verdict
|
Your situation |
Best choice |
|---|---|
|
Prototype, solo dev, no ops appetite |
Pusher |
|
Growing SaaS with thousands of connections |
Reverb |
|
Strict data-residency requirements |
Reverb |
|
Spiky traffic and cost predictability |
Reverb |
|
Want Reverb without managing servers |
Reverb on Laravel Cloud |
|
Small team, real-time is a minor feature |
Pusher |
For most Laravel teams in 2026, Reverb is the default worth trying first: it is free, first-party, and portable. Pusher remains a solid pick when speed and zero maintenance matter more than the monthly bill.
Frequently Asked Questions (FAQ)
1. Is Laravel Reverb a replacement for Pusher?
2. Is Reverb free?
3. Does Reverb need Redis?
4. Can Reverb handle production traffic?
5. Can I switch back to Pusher later?
6. What are other alternatives?
Test what you just learned with 31 interactive multiple-choice questions and instant explanations.
- Nov 24, 2026
- 11
Tags
You May Also Like Below Articles
Handpicked related tutorials and step-by-step developer guides to continue learning.