简体   繁体   English

聊天php / ajax(jquery)中的问题

[英]Problem in the chat php/ajax(jquery)

I programmed Chat script using PHP and jQuery but the problem is Will be great pressure on the server ?? 我使用PHP和jQuery编写了Chat脚本,但是问题是服务器上的压力很大?

If there is an answer please tell me 如果有答案请告诉我

Thank you in advance 先感谢您

It all depends on the logic you've used. 这完全取决于您使用的逻辑。

If you make the server block for a sensible amount of time before sending a 'no data' response, load will be much less than if you fire off a new request every time you get a response from the server 如果在发送“无数据”响应之前使服务器阻塞一段合理的时间,则负载将大大小于每次从服务器获得响应都触发新请求时的负载

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM