Thrift介绍 作者:马育民 • 2021-10-23 09:04 • 阅读:10227 # Thrift是什么 Thrift是 Facebook 于2007年开发的 **跨语言** 的rpc服务框架,提供 **多语言** 的 **编译** 功能,并提供多种服务器工作模式;用户通过Thrift的IDL(接口定义语言)来描述接口函数及数据类型,然后通过Thrift的编译环境生成各种语言类型的接口文件,用户可以根据自己的需要采用不同的语言开发客户端代码和服务器端代码。 [![](https://www.malaoshi.top/upload/pic/hive/QQ20211023091216.png)](https://www.malaoshi.top/upload/pic/hive/QQ20211023091216.png) 类比: [![](https://www.malaoshi.top/upload/pic/hive/QQ20211023091154.png)](https://www.malaoshi.top/upload/pic/hive/QQ20211023091154.png) ### Thrift的相关网址和资料: Thrift的官方网站:http://thrift.apache.org/ Thrift官方下载地址:http://thrift.apache.org/download Thrift官方的IDL示例文件(自己写IDL文件时可以此为参考): https://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob_plain;f=test/ThriftTest.thrift;hb=HEAD 各种环境下搭建Thrift的方法: http://thrift.apache.org/docs/install/ 感谢: https://blog.csdn.net/houjixin/article/details/42778335 原文出处:http://malaoshi.top/show_1IX25nWmAXZN.html