[
https://issues.apache.org/jira/browse/THRIFT-311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12671683#action_12671683
]
Esteve Fernandez commented on THRIFT-311:
-----------------------------------------
It's just the product of a Sunday morning :-) so I haven't done any serious
benchmarking and I'm sure there's still room for improvement.
Using the same client script and the same number of worker threads (10,
although it doesn't really matter, as I only used one connection), this is what
I got after 555000 calls (using the same connection):
TNonblockingServer ~5080 calls/sec
ThriftASIOThreadPoolServer ~5250 calls/sec
I still have to benchmark how many concurrent connections/sec I can achieve.
Anyway, I don't have much experience with TNonblockingServer and used it "as
is", so I'd happy to know if there's anything I could do to tune it :-)
BTW, I'd like to see a coroutine Thrift server too :-) But it would require
changes to the Thrift compiler, just like THRIFT-148
> ASIO client & server
> --------------------
>
> Key: THRIFT-311
> URL: https://issues.apache.org/jira/browse/THRIFT-311
> Project: Thrift
> Issue Type: Sub-task
> Components: Library (C++)
> Reporter: Esteve Fernandez
> Attachments: thrift_connection.cpp, thrift_connection.hpp,
> thrift_handler.cpp, thrift_handler.hpp, thrift_main.cpp, thrift_server.cpp,
> thrift_server.hpp, ThriftCalculatorASIOServer.cpp
>
>
> Given the recent discussion on a Windows port and moving to ASIO
> (http://mail-archives.apache.org/mod_mbox/incubator-thrift-dev/200901.mbox/%[email protected]%3e),
> I decided to hack a little Thrift asynchronous prototype server using ASIO
> and here's the result. It implements the Calculator service that can be found
> in the tutorial and, just like TNonblockingServer, it uses a FramedTransport.
> It's just a quick prototype, but I think it's enough for building a more
> generic server/protocol. I've only tested it in Linux, but I think there's
> nothing platform-dependent and can be compiled "as is" in Windows.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.