Thrift Service 笔记

2019-05-28  本文已影响0人  张大虎

Thrift is a serialization and RPC framework for service communication. Thrift enables these features in all major languages, and there is strong support for C++, Python, Hack, and Java. Most services at Facebook are written using Thrift for RPC, and some storage systems use Thrift for serializing records on disk.

A CODE GENERATOR

Thrift has a code generator which generates data structures that can be serialized using Thrift, and client and server stubs for RPC, in different languages.

A SERIALIZATION FRAMEWORK

Thrift has a set of protocols for serialization that may be used in different languages to serialize the generated structures created from the code generator.

AN RPC FRAMEWORK

Thrift has a framework to frame messages to send between clients and servers, and to call application-defined functions when receiving messages in different languages.

There are several key goals for these components:

** References **
Faceboook Thrift Lab
如何实现一个简单的RPC

上一篇下一篇

猜你喜欢

热点阅读