The Programmer's Guide to Apache Thrift
=======================================
Source for the examples in: The Programmer's Guide to Apache Thrift
http://www.manning.com/abernethy/
The book is organized into three parts:
Part I - Apache Thrift Overview
-------------------------------
A high level introduction to Apache Thrift and its architecture. Examples from this part are hello worldish. This part also covers basic Apache Thrift setup and debugging.
Part II - Programming Apache Thrift
-----------------------------------
This part digs into each layer of the Apache Thrift framework, examining transports, protocols, types, services, servers and the Apache Thrift interface definition language in detail. Examples from these chapters use C++, Java and Python as the demonstration languages. C++ examples provide makefiles and Java examples provide Build.xml files for building with make/ant respectively. Build scripts and code have been tested with various Apache Thrift versions. In general you should use the latest version of Apache Thrift. The Ant builds depend on SLF4J. The python examples are directly executable. You can checkout older version of this repo for examples compatible with older versions of Apache Thrift.
Part III - Apache Thrift Language Libraries
-------------------------------------------
This part of the book provides jump starts for the most popular platforms and languages used with Apache Thrift. The Web, and backend systems are examined through the lens of C++, Java, C#, JavaScript, Python, PHP, Perl and Ruby. Web chapters are complete or in-progress for Haxe, Go and Rust (code is/will-be found here). Part III also includes the final chapter, "Apache Thrift in the Enterprise", which demonstrates Apache Thrift in use with messaging systems and takes a pragmatic look at the key advantages of Apache Thrift and some of the common best practices for developing with the framework.
Tools - Miscellaneous Thrift Stuff
----------------------------------
This folder is for various Thrift related stuff. Presently only a GEdit language file for Apache Thrift IDL.
Development Environment
-----------------------
The Dockerfile in the root of this repo defines a development environment for the book which will make it easy to build and test all of the examples in the book. This file is configured to support C++, Java and Python as built but it is easy to add additional language support to the container or similarly configured system by following the instruction in the book. Apache Thrift is undergoing an important change on the way to v1.0.
- Switch out of the build platform (compiler and all libs) from autotools to cmake
As things migrate I will update this Dockerfile. You can "$ docker run -it randyabernethy/thrift-book" to run the prebuilt image on Docker Hub (https://hub.docker.com/r/randyabernethy/thrift-book/).
[![](https://images.microbadger.com/badges/image/randyabernethy/thrift-book.svg)](https://microbadger.com/images/randyabernethy/thrift-book "Thrift Book Layers")
没有合适的资源?快使用搜索试试~ 我知道了~
ThriftBook:《 Apache Thrift程序员指南》中示例的源代码
共291个文件
java:52个
thrift:51个
cpp:42个
5星 · 超过95%的资源 需积分: 29 8 下载量 136 浏览量
2021-05-06
05:31:37
上传
评论
收藏 193KB ZIP 举报
温馨提示
Apache Thrift程序员指南 以下示例中的源代码:Apache Thrift程序员指南 本书分为三个部分: 第一部分-Apache Thrift概述 对Apache Thrift及其体系结构的高级介绍。 这部分的例子非常有趣。 本部分还介绍了基本的Apache Thrift设置和调试。 第二部分-编程Apache Thrift 本部分深入研究Apache Thrift框架的每一层,详细检查传输,协议,类型,服务,服务器和Apache Thrift接口定义语言。 这些章节中的示例使用C ++,Java和Python作为演示语言。 C ++示例提供了makefile,而Java示例提供了Build.xml文件,分别用于使用make / ant进行构建。 构建脚本和代码已通过各种Apache Thrift版本进行了测试。 通常,您应该使用最新版本的Apache Thrift。 蚂蚁的
资源详情
资源评论
资源推荐
收起资源包目录
ThriftBook:《 Apache Thrift程序员指南》中示例的源代码 (291个子文件)
quasar.bmp 25KB
quasar.bmp 25KB
trans_excep.c 3KB
TradeHistoryService.class 2KB
TradeReport.class 1KB
TradeHistory.class 847B
ObjectFactory.class 437B
package-info.class 242B
proto_write_times.cpp 4KB
nb_server.cpp 4KB
disk_ser_z.cpp 3KB
event_server.cpp 3KB
inherit_server.cpp 2KB
factory_server.cpp 2KB
nb_client.cpp 2KB
trans_excep.cpp 2KB
simple_server.cpp 1KB
server_frame.cpp 1KB
excep_server.cpp 1KB
bin_file_write.cpp 1KB
async_client.cpp 1KB
simple_udt.cpp 1KB
server.cpp 1KB
client_frame.cpp 1KB
excep_client.cpp 1KB
sock_trans.cpp 1KB
event_client2.cpp 1KB
server_trans.cpp 1KB
hello_server.cpp 1KB
http_server.cpp 1KB
inherit_client.cpp 1KB
hello_server.cpp 1KB
nvi_server.cpp 1KB
vi_server.cpp 1KB
hello_client.cpp 909B
event_client.cpp 894B
client.cpp 858B
factory_client.cpp 839B
hello_client.cpp 825B
borrow.cpp 808B
file_trans.cpp 803B
hello_client_bad.cpp 784B
hello_client.cpp 768B
hello_client_new.cpp 762B
hello_client_old.cpp 762B
bin_mem.cpp 747B
simple_client.cpp 740B
http_client.cpp 686B
client.cpp 631B
mem_trans.cpp 566B
tradeServer.cs 6KB
tradeClient.cs 1KB
helloServer.cs 782B
helloClient.cs 590B
Dockerfile 2KB
.gitignore 42B
server_event_handler.h 3KB
helloExc.html 1KB
hellows.html 1KB
helloJq.html 1KB
helloAsync.html 1KB
hello.html 1KB
cors.html 1KB
helloCsp.html 436B
Hello.hx 624B
Hello.hxml 95B
DiskSerZ.java 4KB
AsyncServer.java 4KB
DiskSer.java 4KB
AsyncClient.java 3KB
TradeHistoryService.java 3KB
TradeReport.java 3KB
TransExcep.java 2KB
MultiServiceServer.java 2KB
BinFileRead.java 2KB
CompFileWrite.java 2KB
TradeReader.java 2KB
FileTrans.java 2KB
SocialLookupHandler.java 2KB
ServerFrame.java 1KB
MemTrans.java 1KB
RestServer.java 1KB
TradeHistoryTest.java 1KB
ServerTrans.java 1KB
SockTrans.java 1KB
MultiServiceClient.java 1KB
RestClient.java 1KB
ThriftServer.java 1KB
HelloServer.java 1KB
ObjectFactory.java 1KB
TTeeTransport.java 998B
HelloServer.java 989B
ThriftServer.java 938B
FactoryServer.java 924B
FactoryClient.java 866B
ExcepClient.java 849B
TradeHistory.java 843B
TradeHistory.java 841B
RestServer.java 834B
TWritelogTransportFactory.java 826B
共 291 条
- 1
- 2
- 3
Rainy.凌霄
- 粉丝: 23
- 资源: 4601
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论1