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 info.
After doing some Google search, I started feeling more frustrated. No valuable tutorials or examples for my purpose.
So I'm posting this here.
Basically, what I've been wanting to do is, an HTTP streaming server (with very computation expensive) can still scale reasonably well (100 or 200 clients). Requirements:
- Use HTTP protocol (no RTMP);
- The client streams the audio data to the server;
- The server receives the audio data, processes it and sends the result back to the cient WHILE receiving the audio data from the client;
- The processing of the audio data is done in a C/C++ library;
- The server is also be able to stream several-second audio data to the client, and the client can play the audio WHILE receiving the audio data from the server;
- A long-lived connection/session should be made between a client and the server, and the disconnection (TimeOut or UserDisconnect) should be detected by the server;
My questions are:
- What APE examples and tutorials should I read to facilitate my needs?
- Where can I find a good example using APE HTTP Streaming?
- How can I create a very simple HTTP streaming example (server streams)?
- How can I hook up my computation-expensive C/C++ lib at the server side?
- How can I maintain the state of each client connection/session at the server side?
If anyone know any idea of my requirements or questions, please let me know.
Thanks.
Peter