开发者

How do I update a web app to change in mysql db?

开发者 https://www.devze.com 2023-02-15 21:13 出处:网络
I want to alert a number of connected users to a change in the database without having the end user polling mysql. Is there a way to trigger a client update from the server side without moving long po

I want to alert a number of connected users to a change in the database without having the end user polling mysql. Is there a way to trigger a client update from the server side without moving long polling down the stack? I'm using PHP, Javascript, and MySQL. ~70 clients need to be updated at once and was hoping to have a b开发者_如何学JAVAetter response time and lower hits to the web and db server than AJAX/COMET allows.

Thanks,

T


You may want to look into HTML5 web sockets too which would be a little more resource efficient than tons of Ajax calls.

0

精彩评论

暂无评论...
验证码 换一张
取 消