Discussion Overview
The discussion revolves around implementing a real-time chatting script using PHP, focusing on reducing server traffic through techniques like reverse Ajax and socket programming. Participants explore various methods for handling server responses efficiently without overwhelming the server with frequent requests.
Discussion Character
- Exploratory
- Technical explanation
- Debate/contested
Main Points Raised
- Some participants suggest using reverse Ajax to minimize traffic by holding server requests until new messages are available, rather than polling the server at regular intervals.
- Others propose using socket programming with Flash or Java to enable direct communication between the server and client, which could be more efficient than traditional Ajax methods.
- A participant mentions that PHP can be used to build a server, but it must run independently from traditional web servers like IIS or Apache, potentially using the PHP CLI.
- There are discussions about the importance of managing server resources effectively to avoid high CPU usage when holding requests for new messages.
- Some participants express uncertainty about how to implement reverse Ajax and manage timeout issues, seeking examples and further clarification.
Areas of Agreement / Disagreement
Participants generally agree on the potential benefits of reverse Ajax and socket programming for real-time applications, but there are differing opinions on the best implementation strategies and the necessity of specific server setups.
Contextual Notes
There are unresolved questions regarding the handling of timeouts in server responses and the specific implementation details of reverse Ajax, as well as varying levels of familiarity with the technologies discussed.