Skip to content

Instantly share code, notes, and snippets.

@myhrvold
Created February 16, 2016 19:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save myhrvold/1edb63caf68ffe2c2484 to your computer and use it in GitHub Desktop.
Save myhrvold/1edb63caf68ffe2c2484 to your computer and use it in GitHub Desktop.
Thrift Example: Service-Oriented Architecture at Uber Engineering
struct Animal {
1: i32 id
2: string name
3: string sound
}
exception NotFoundException {
1: i32 what
2: string why
}
service Zoo {
/**
* Returns the sound the given animal makes.
*/
string makeSound(1: string animalName) throws (
1: NotFoundException noAnimalFound
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment