AsyncFCGI
May 10th, 2008
Because there is no implementation of the FastCGI protocol available for Apache Mina (2.0.0-M1) yet, I decided to make mine available to all of you under the Apache License.
This is a first preview release, so I cannot garantee that every single part of it already works like expected. However I documented the code as good as possible in the short time, tested it, profiled it and created a set of simple examples to make a quick start possible to everyone.
The library includes support for higher level responses (FCGIResponse) and requests (FCGIRequest) which you may use in basic applications. If you need support for responses consisting of multiple parts (e.g. when asynchronously pushing more content over time), take a look at the low level server example.
Also a FCGIClient is available that makes it possible to easily talk to backends like PHP, Ruby or others. The initial FCGIManager may be used to spread the load over multiple backends but this is still in total alpha stage.
Changelog:
Preview #1: Initial preview release
Preview #2: Fixed some minor issues and typos
Preview #3: Added FCGIHttpService including an example
Get it: AsyncFCGI Preview #3
Feel free to contact me about everything you notice over the Apache Mina mailing lists or commenting on the JIRA issue.
Leave a Reply