My application has a page for video view with embed for Youtube or Vimeo, so my need is to save two pieces of information: Which was the last time that user saw the video and How long he saw it.
For these, I've created a script to get the last time and sum view time saving every 1 second using AJAX requests. But this created another problem, the frequent requests and multiple users access overloaded my server.
So I need an answer for:
Which is the solution for frequent post requests using laravel?
PS: I already searched this and found some ideas on Websocket, but all examples focus on client side receiving and sending information like Chats, Dashboard and others. What I need is a way to only send information without overload my server
PS2: We check the server and the bottleneck was found in the application server, because of its multiples requests
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire