- Building Microservices with Go
- Nic Jackson
- 115字
- 2021-07-15 17:28:14
Thrift
The Thrift framework was created by Facebook and was open sourced in 2007. It is currently maintained by the Apache Software Foundation. The main aims of Thrift are:
- Simplicity: Thrift code is straightforward and approachable, free of unnecessary dependencies
- Transparency: Thrift conforms to the most common idioms in all languages
- Consistency: Niche, language-specific features belong in extensions, not in the core library
- Performance: Strive for performance first, elegance second
This is a thrift service definition:
struct User {
1: string name,
2: i32 id,
3: string email
}
struct Error {
1: i32 code,
2: string detail
}
service Users {
Error createUser(1: User user)
}
Find more information on Apache Thrift at https://thrift.apache.org.
推薦閱讀
- 零基礎(chǔ)搭建量化投資系統(tǒng):以Python為工具
- GraphQL學(xué)習(xí)指南
- JavaFX Essentials
- 看透JavaScript:原理、方法與實(shí)踐
- Wireshark Network Security
- React.js Essentials
- Linux環(huán)境編程:從應(yīng)用到內(nèi)核
- Developing SSRS Reports for Dynamics AX
- Python編程快速上手2
- 信息學(xué)奧林匹克競(jìng)賽初賽精講精練
- MonoTouch應(yīng)用開發(fā)實(shí)踐指南:使用C#和.NET開發(fā)iOS應(yīng)用
- HTML5+CSS3+JavaScript案例實(shí)戰(zhàn)
- Java語言程序設(shè)計(jì)與實(shí)現(xiàn)(微課版)
- Python3從入門到實(shí)戰(zhàn)
- Storm Real-Time Processing Cookbook