Hello! I found this hosting and decided to host a chat on it, which was previously on the service радянськийхостiнг.укр, but this hosting service is closed three days ago. So, the first thing I did was read the terms of use and found a clause indicating a ban on doing chat here due to the high load on the servers. So, which way should I choose to transfer information so that both I have a chat and your server load is negligible?
Greetings from Kurgan, Mikhail.
Right now, the most preferred way is to combine AJAX and setTimeout with an extended interval. I haven’t tried it yet, this is the answer given by the neural network, but it sounds reasonable.
Technically, it is probably possible to make a lightweight chat server. Reducing the AJAX polling frequency will reduce the load, but it would be even better to use websockets, so that you can push messages to the client instead of having the client check for them. But our hosting does not support websockets, so you would need an external websocket server or service to do that.
However, the terms are still that chat scripts are prohibited on our hosting. And there are some other restrictions you may run into if you try it anyway.
All in all: please just don’t do it.
If you really need chat then maybe you could use an external chat service embedded in an <iframe>
to remove the load from the server ?