concept serialization in category apache thrift

This is an excerpt from Manning's book Programmer's Guide to Apache Thrift.
To get a sense for the relative performance of several of the communications approaches described here, look at the test results in figure 1.4 (these tests are created and covered in detail in chapter 17). The chart displays the time required to make one million API calls to a single service implemented with several communications technologies. All of the servers were coded in Java and the same client, also coded in Java, was used in all cases, though the necessary bindings are used to call the service backend under test. Each bar shows the number of seconds the requests took to complete against a different implementation running on the same machine. The tests were performed in isolation over the local loopback on a system with no other activity. Multiple runs of each test were completed and no outliers were discovered. The sole service function accepts a string and returns a small struct. The service implementation is identical in all cases, performs no logic, and returns a static struct to highlight the service and serialization overhead.
The first bar shows the elapsed time for the service when implemented with SOAP. A standard Java SOAP service coded in JAX-WS, deployed on Tomcat 7, was used for the test. The serialization overhead associated with XML and the load incurred by Tomcat and HTTP make this the worst performer in the group, at more than 350 seconds.
Interface Definition Languages (IDLs) can be used to define application-level types and service interfaces, enabling tools to generate code to automate serialization for these types. Rather than hand-coding the serialization of a Trade Report for a stock trading program, you can describe the trade type in IDL and let the Apache Thrift IDL Compiler generate the serialization code for you.