Skip to content

Instantly share code, notes, and snippets.

@myhrvold
Last active February 16, 2016 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save myhrvold/a19874cf641edbde0c2a to your computer and use it in GitHub Desktop.
Save myhrvold/a19874cf641edbde0c2a to your computer and use it in GitHub Desktop.
Statement Client Thrift Service Example in Pseudocode
service StatementClient {
// Service: "I'm making weekly statements for last week. Do any of your users want any?"
// Client: "Yes, I want statements for users uuid1, uuid2, …"
getStatementCandidates(request);
// Service: "Okay, what does user uuid1 need in its statement for last week?"
// Client: "All this information …"
getStatementCandidateDetails(request);
// Service: "I have finished uuid1's statement, and here it is."
// Client: "Thanks!"
receiveCompletedStatementCallback(request);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment