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

Sending a JSON object from a Node.js Thrift client using Buffered Transport and Binary Protocol is slow when compared to sending the same using a C++ Thrift client.

    XMLWordPrintableJSON

Details

    • Question
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • 2 Linux machines with Ubuntu 16.04, 8GB RAM and ulimit of both machines set to 101000

    Description

      A C++ Thrift server is running in one machine.
      A Node.js client running in other machine. Initially, this Node.js client runs using a V8 addon of Thrift client written in C++, now module is changed to use Node.js Thrift modules only.
      Node.js module with V8 addon Thrift client is able to handle 4500 requests per second perfectly. But Node.js Thrift module is handling very less number of requests.
      I am using Buffered Transport and Binary Protocol to send these messages to the Thrift server. Is it slow because of JavaScript or am I doing something wrong?

      I have made a small benchmarking code for the same. Please do check this.
      https://github.com/chandan047/ThriftBenchmark

      Attachments

        Activity

          People

            Unassigned Unassigned
            chandan047 Chandan Akiti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: