我在linux平台,同事用C语言写的引擎,提供stdin/stdout的接口,也就是标准的erlang扩展协议通信。然后我自己用erlang写了个简单的http服务器,每秒钟连查询后端引擎(单线程)带处理http请求,可以完成6000req/s的样子。这个速度仅仅比apache处理纯静态html页面稍微慢一点(6200req/s)。
至于稳定性,我比较看好监督树模型,所以基本不在乎单个线程的稳定性了。
关于跨平台,我还没有计划把这个程序移植到windows上面去,不过估计没什么问题的。
For a long, long time I have been pondering the problem of how we glue(software) things together. The simplest of all methods is the unix pipe.
cat foo | grep ... | awk ...| wc
(or whatever)
aside: When people say "parallel programming is difficult!" I guess they weren't thinking of the unix pipe notation - the above is (or course) a parallel program with 4 parallel processes .-)