官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 秦皇岛市| 磐安县| 驻马店市| 大姚县| 旺苍县| 祁东县| 郎溪县| 互助| 潜山县| 淳安县| 肥乡县| 拜城县| 萨嘎县| 凤山县| 桐乡市| 陇川县| 克山县| 马公市| 云南省| 平度市| 荣成市| 大兴区| 磴口县| 安岳县| 定兴县| 姜堰市| 纳雍县| 彭水| 上犹县| 汕尾市| 千阳县| 堆龙德庆县| 和林格尔县| 招远市| 潜山县| 鹤庆县| 锦屏县| 确山县| 九龙坡区| 新津县| 宁化县|