DEV Community

Discussion on: Complete guide to achieving WebSocket real-time communication with Laravel Broadcast using Pusher, Laravel echo & Web socket

Collapse
 
eugenevdm profile image
Eugene van der Merwe

Why do you use queue:work?

Collapse
 
ankitmpatel profile image
Ankit Patel

That depends on the method you follow.

Let say, QUEUE_CONNECTION=database and When you fire an event "event(new \App\Events\TestEvent());" Those events drop in a database queue. We need queue:work at that time.

Generally, Queues are recommended that prevents block on the frontend.