I am developing a sort of social media website. You can see someone's profile, you can rate the profile, you can submit a comment on their profile etc. So a sort of facebook thing.
All my actions are done with AJAX calls. Now I created a PHP websocket server for private chat. Now is my question what do you think about replace all the AJAX calls to calls to the websocket server? So each user action goes via websockets. Is this good or wrong? What about when 5 people clicking on the same profile at the same time, does this have any consequence to the socket server? Is the socket server able to handle all those actions mentioned above at the same time?
Need your thoughts on this, thank you.