thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pzh <piaopiaohu...@163.com>
Subject [Discussion] Should thrift-java support HTTP/2 ?
Date Thu, 29 Aug 2019 13:25:09 GMT
Dear All:


Our team encountered some http protocol problems when using thrift-0.12.0:


1. Just like Spark Thrift's http delay case, Since HttpClient 4.3, many classes and methods
have been deprecated or terminated, HttpClient uses HTTP/2, which is much worse than HTTP/2,
Apache HttpComponents httpclient 5.0 has still not released support for HTTP/2 officially.


2. In Android Thrift aspect, the underlying implementation of HttpURLConnection from Android4.4
uses OkHttp, which is based on HTTP/2 development, 
official team is no longer maintaining HttpClient.


OTOH, compared to HTTP/1, HTTP/2 has more features and excellent performance, such as: Multiplexing,
binary framing, header compression, server push etc...


HTTP/1, is a little out of date, so i propose to replace HttpClient with a third-party jar
that supports HTTP/2, such as OkHttp, or upgrade the java version that supports HTTP/2.


hope for your reply, guys.


Best Regards
Zhouhu
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message