[php] real-time watch

I start with programming a small php script which will offer the system administrators to have a real-time watch status of clients (asterisk users), but I have one problem.

I know, that I can get the status of each clients from AMI but if I want to have a real-time watch, it means, that I have to do this request every second, which I thing, isn’t very good solution.

My question is: How can I (real-time) watch status of Asterisk clients or mybee you know for some scripts in php which do it.