D
D
Dmitry2021-12-07 17:54:17
Laravel
Dmitry, 2021-12-07 17:54:17

How reliable is native websocket in laravel?

In a Laravel application, we want to use a websocket. But we can't decide how good the free option of using this package is. If the project is impacted by a large number of simultaneous connections and millions of messages per day, how long will it all work? What does it depend on? Or all the same for maintenance, turn to paid services?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
NubasLol, 2021-12-07
@NubasLol

I would recommend this lib
https://centrifugal.dev/
It has proven itself very cool. Plus no need to torment the puff

V
Vasily Bannikov, 2021-12-07
@vabka

If the project is impacted by a large number of simultaneous connections and millions of messages per day, how long will it all work?

1kk per day is 10 messages per second, which even a weak server can handle.
The limit will be only in the active TCP connections that it can withstand.
Or all the same for maintenance, turn to paid services?

Are there any?
In general, if the library is adequate, then the reliability will depend more on the infrastructure, on the servers, and so on.

P
pLavrenov, 2021-12-08
@pLavrenov

If you read the documentation, you can find that the entire project can be split into several servers.
In websockets, the main thing is not how many messages per day, but how many simultaneous connections the server can withstand.
Any libraries are just sugar around one technology. In the box, an excellent solution without witchcraft and dancing.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question