Linuxc/C ++ programming BASICS (22) Use thrift/RPC to develop simple instances

Source: Internet
Author: User

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



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.