concept performance in category apache thrift

This is an excerpt from Manning's book Programmer's Guide to Apache Thrift.
The last three bars are Apache Thrift server cases. The first is as close to an apples-to-apples comparison with the REST example as can be had with Apache Thrift. An Apache Thrift server was created with the same one method service, packaged as a servlet, deployed on Tomcat, and configured to use the JSON protocol over an HTTP transport. The result is a significant improvement in performance. This is attributable to the serialization benefits produced by the purpose-built Apache Thrift client/server stubs, among other efficiencies.
The real performance gains arrive when Tomcat and HTTP are left behind. The final two bars show the performance of compiled Apache Thrift servers running over TCP with JSON and Compact protocols respectively. Both are an order of magnitude faster and an order of magnitude smaller in memory.
While your mileage will vary with different languages, different levels of concurrency, different server shells, different services, and different frameworks, the previous example case provides a frame of reference and explains why many firms have moved large-scale backend services away from REST/SOAP and/or JSON serialization when under pressure for performance. Migrating to Apache Thrift from REST or SOAP could enable the same hardware to support 10 times the traffic. Backend systems using a microservice approach often require multiple backend services to collaborate to complete a client request, prioritizing backend service repressiveness.
Distributed applications vary widely when it comes to load profiles, communications patterns, and message payload types and sizes. Even within the fairly modern and narrow world of microservices, performance isn’t a one-size-fits-all proposition. That said, we’ll use the next few pages to develop basic intuition around Apache Thrift networked service performance.
Other benefits aside, in microservice-oriented backend systems, Apache Thrift offers one particularly killer feature: performance. If you need responsiveness and/or support for extreme request rates in backend systems, or the ability to run services in resource-restricted embedded systems, Apache Thrift may be the perfect tool. Performance can also be particularly important in microservice-based architecture, due to the dramatic increase in network RPC traffic created over that of traditional monolithic applications. We’ll examine relative interface performance in the next section.