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

Java nonblocking server with more than one thread for select and handling IO

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.8
    • Java - Library
    • None
    • Patch Available

    Description

      I've used the HsHa server model to write a server that uses a thread for accept and a separate, configurable number of Selector threads to handle IO. I'd like to contribute this back to Thrift.

      For apps that are RPC-heavy and require little computation from the executor pool running on multi-core architectures, this server allows gets throughput as IO is not limited by one CPU.

      Please take a look at the attached patch.

      Attachments

        Issue Links

          Activity

            People

              sjiang Steve Jiang
              sjiang Steve Jiang
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: