Java based HTTP Client which supports Pipelining

后端 未结 4 1306
既然无缘
既然无缘 2020-12-19 20:31

Do you know of any free Java library which support the HTTP pipelining option of HTTP/1.1 ( http://en.wikipedia.org/wiki/HTTP_pipelining ) ?

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-19 20:50

    hotpotato will support pipelining really soon. Performance-wise, it's way superior to Apache's HTTP Client, especially in high concurrency environments (multiple threads using the same instance of the client).

    I still need to publish the results but on a LAN test, I'm getting ~7000req/s (hotpotato) vs ~100req/s (apache's). Of course, a great deal of the merit must go to Netty, the amazing framework hotpotato is built upon ;)

    If you don't need a fancy full-fledged client, take a look here for a simpler version.

提交回复
热议问题