jeudi 20 août 2020

Using a Real time update on a web app will that crash the server?

I have an app that consist of two types of users one type can post questions and the other type can answer now I'm integrating a real time updates when a user add a question all the other users get this question immediately without refreshing the page I using Pusher for that and once a user adds a question I send an alert to all the connect users nad once they receive this alert they make an ajax requests and get all the question again, my question is , is this a valid way to do that and can this method cause problems later on when deploy app to the server as you can see when I send the alert all the users will make an ajax request to the server at the same time will that cause my server to crash please help me thanks.




Aucun commentaire:

Enregistrer un commentaire