分布式系统

Apache Thrift

2018-01-06  本文已影响0人  ichercher

介绍

Thrift 是一个轻量级,与语言无关的软件栈,拥有生成 RPC 相关代码的机制。Thrift 为数据传输、数据序列化和应用程序级的处理提供了清晰的抽象。其代码生成系统采用一种简单的定义语言作为其输入,从而生成各种编程语言的代码,在这些生成的代码里使用了Thrift 软件栈来构建可操作的 RPC 客户端和服务器。

Thrift 使使用不同编程语言的程序员可以轻松的共享数据以及调用远程过程。Thrift 支持超过20种编程语言,极有可能支持你当前使用的语言。

Thrift 是专门为支持客户端和服务器非原子版本代码更改而设计的。(Thrift is specifically designed to support non-atomic version changes across client and server code.)

有关Thrift设计和实现的更多详细信息,请参阅此发行版中包含的 Thrift 白皮书或感兴趣的特定子目录中的
README.md 文件。

项目层次结构

thrift/

compiler/

Contains the Thrift compiler, implemented in C++.

lib/

Contains the Thrift software library implementation, subdivided by
language of implementation.

cpp/
go/
java/
php/
py/
rb/
...

test/

Contains sample Thrift files and test code across the target programming
languages.

tutorial/

Contains a basic tutorial that will teach you how to develop software
using Thrift.

原文:https://github.com/apache/thrift/

上一篇下一篇

猜你喜欢

热点阅读