laravelwebsocketredispusher

Using Laravel Events without Pusher nor Redis?


I am surprised that I need third-party services such as Pusher or Redis to have a bidirectional communication from my server to my clients through WebSockets.

What are the advantages of Pusher over Redis or simply a socker.io server aside from nginx? I see many disadvantages:

From my understanding, they are only two possible solutions with Laravel:

Is there a third alternative?


Solution

  • The benefits of using a third party solution are different per use case and per person. However, broadly speaking there are a couple of benefits that haven't been mentioned here that are worth highlighting:

    A lot has been said about build vs buy over the years, and there are many resources that discuss the merits of both (in fact Pusher has a resource for this). Ultimately this is not a decision that can be made for you, you will need to assess your application requirements and then look at what best fits your use case.