Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-1915 Multiplexing Services
  3. THRIFT-1125

Multiplexing support for the Ruby Library

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.6
    • Fix Version/s: 0.9.3
    • Component/s: Ruby - Library
    • Labels:
    • Patch Info:
      Patch Available

      Description

      Attached are two files which implement multiplexing support in the Ruby library. I do not consider these implementations complete, however they work well for my purposes.

      On the server side:
      mp = Thrift::MultiplexedProcessor.new
      mp.register 'SomeService', some_service_processor
      mp.register 'SomeOtherService', some_other_service_processor
      ...
      server = Thrift::SimpleServer.new(mp, transport)

      On the client side:
      some_service = SomeServiceService::Client.new('SomeService', some_service_protocol)
      some_other_service = SomeOtherServiceService::Client.new('SomeOtherService', some_other_service_protocol)

      You only need one transport in both cases.

        Attachments

        1. multiplexed.patch
          6 kB
          ted wang
        2. multiplexing_support.diff
          2 kB
          Alex

          Activity

            People

            • Assignee:
              jensg Jens Geyer
              Reporter:
              centromere Alex
            • Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: