1. In actual project development, the addition of a function may require the cooperation of multiple departments or colleagues,
Different Development languages are used. Thrift/RPC can be used in this case. As follows:
NOTE: For the YY client, follow the implementation of the function (in the heart-shaped part in the figure). The implementation requires the fan Proxy Server (C/C ++ implementation) and the background server (Java implementation) communication is actually implemented through thrift/rpc.
Ii. Install thrift/RPC as follows:
1. Download: Workshop:
sudo apt-get install libboost-dev libboost-test-dev libboost-program-options-dev libevent-dev automake libtool flex bison pkg-config g++ libssl-dev
3. Install the SDK as follows:
(A) unzip: tar-xzvf thrift-0.9.0.tar.gz
(B)./configure -- With-boost =/usr/local
(C) Make
(D) sudo make install
4. test:
Enter the command: thrift-version
If the thrift version is displayed, the installation is successful, as shown below:
Reprinted please indicate the source: zhujian blog, http://blog.csdn.net/linyanwen99/article/details/8281384