[development][thrift] RPC框架 thrift

 

一:

wiki:https://zh.wikipedia.org/wiki/Thrift

二:

来自IBM的介绍:https://www.ibm.com/developerworks/cn/java/j-lo-apachethrift/

都是框架原理,不适合快速上手应用。

摘要:

  1: thritf 即不是 SOAP,也不是JSON。

目前流行的服务调用方式有很多种,例如基于 SOAP 消息格式的 Web Service,基于 JSON 消息格式的 RESTful 服务等。

 

三: tutorial

https://thrift.apache.org/tutorial/

很奇怪,还有一个tutorial从官网链接不到:http://thrift-tutorial.readthedocs.io/en/latest/intro.html

 

摘要:

Thrift was originally developed by Facebook and now it is open sourced as an Apache project. 

 

开发动因,以及设计时的思路选择:

http://thrift.apache.org/static/files/thrift-20070401.pdf

在设计上,分类为五个方面的问题: type, transport, protocol, versioning, processors.  

 

 

四:例子

  一个C++的例子,网页里的thrift文件的链接坏掉了,thrift文件可以在源码里找到。

  https://thrift.apache.org/tutorial/cpp

 

posted on 2018-04-13 21:16  toong  阅读(336)  评论(0编辑  收藏  举报