Skip to content

Instantly share code, notes, and snippets.

@joyoyoyoyoyo
Forked from myhrvold/animalexample.thrift
Created August 29, 2019 03:28
Show Gist options
  • Select an option

  • Save joyoyoyoyoyo/7a6090e7373c091ac7c8373216417f9a to your computer and use it in GitHub Desktop.

Select an option

Save joyoyoyoyoyo/7a6090e7373c091ac7c8373216417f9a 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