Your Ad Here

Wednesday, March 18, 2009

Polling Performance

I am making a little app that has to update nearly realtime. It polls a database via ajax/php and updates client side.

Which method would put less strain on the server?

1) AJAX call every 3 seconds

2) AJAX call every 30 seconds, but the PHP script would stay open the entire time sleeping 3 seconds in between checking for updates.

Read More...
Your Ad Here

No comments: