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

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.

主站蜘蛛池模板: 比如县| 邛崃市| 彩票| 翁牛特旗| 漾濞| 历史| 那坡县| 海丰县| 鱼台县| 常熟市| 关岭| 黔西县| 上杭县| 曲靖市| 桐庐县| 牟定县| 鸡东县| 安顺市| 双柏县| 略阳县| 五原县| 江都市| 赫章县| 皋兰县| 乌苏市| 毕节市| 柘城县| 越西县| 清徐县| 阿合奇县| 叶城县| 咸阳市| 通江县| 定安县| 炉霍县| 东方市| 平阳县| 武川县| 井陉县| 定安县| 古浪县|