Created
February 16, 2016 19:43
-
-
Save myhrvold/1edb63caf68ffe2c2484 to your computer and use it in GitHub Desktop.
Thrift Example: Service-Oriented Architecture at Uber Engineering
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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