Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-669

Use Http chunk encoding to do full duplex transfer in a single post

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.2
    • None
    • Java - Library
    • None
    • Patch Available

    Description

      Instead of each method call being a separate post, use chunk-encoded request. If you look at the traffic in wireshark many times the payload is much smaller than the HTTP header. Using chunk encoding, the per method overhead of the http header is gone. Running a simple test of getting a time as i32, using http post vs chunk encoding I got from 100+ms to ~40ms per request as the servlet container did not have to process the overhead of a "new request".

      More I think with jetty and continuation the long running connections could actually scale and perform a lot better than the current HttpClient.

      Attachments

        1. TFullDuplexHttpClient.java
          3 kB
          Aron Sogor

        Activity

          People

            Unassigned Unassigned
            sogor Aron Sogor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: