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

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.

主站蜘蛛池模板: 方城县| 澎湖县| 新竹市| 清苑县| 大竹县| 绥芬河市| 乳源| 赣榆县| 揭东县| 阿城市| 中山市| 三台县| 峨山| 萝北县| 滕州市| 丰都县| 潜山县| 沂南县| 连江县| 弋阳县| 崇阳县| 乐陵市| 通河县| 三原县| 江安县| 磐石市| 南投市| 茶陵县| 磴口县| 甘德县| 安化县| 鄯善县| 汶川县| 崇明县| 巴南区| 陇南市| 常山县| 富民县| 平定县| 隆安县| 台北县|