ajax-push

using php to monitor mysql changes **WITHOUT** polling

余生长醉 提交于 2020-01-30 08:38:32
问题 I have seen many questions similar to the one I asked. A few of them said that its ok to poll, and that doesn't affect the database performance significantly, and some are still unanswered. What I want to know is this : Can I do something similar to ASP.NET's sqldependency, which helps to find out when changes are made to the database WITHOUT polling. I know polling is ok to do, might not affect database performance, but I need to know the update as soon as it is made, so I feel I need

How to Hook up the HTTP Streaming Server APE (Ajax Push Engine) to a Computation-Expensive Server

馋奶兔 提交于 2019-12-24 10:36:25
问题 I've been studying the APE (Ajax Push Engine - http://www.ape-project.org/) for several weeks, and I have read all the documentation they have at the website. The APE project claims " real-time data streaming ", but I just cannot find a good example for that. I'm kind of frustrated with their documentation. The possible wikipage I read at their website: http://www.ape-project.org/wiki/index.php/Tutorial:How_to_write_an_application_with_APE But again, it just has some concepts, not detailed

Securing a javascript client with hmac

丶灬走出姿态 提交于 2019-11-30 03:51:23
问题 I am researching ways to secure a javascript application I am working on. The application is a chat client which uses APE (Ajax Push Engine) as the backend. Currently, anyone can access the page and make a GET/POST request to the APE server. I only want to serve the chat client to registered users, and I want to make sure only their requests will be accepted. I can use username/password authentication with PHP to serve a user the page. But once they have the page, what's to stop them from