On Wed, Jan 7, 2009 at 14:40, Tomasz Blachowicz (JIRA) <[email protected]>wrote:

> I agree the sample application is a bit too complex. I just wanted to do
> something more complicated to see how it works with multiple threads and so
> on. I have and idea for lot simpler example. What about the app that will
> return day of week i.e. Mon, Tue, etc. for requested date? It'snot the best
> innovative application, but it's simple and clear.


Applications that add two numbers together and return the result are fairly
common for an RPC sort of example.  The body of the implementation is
trivial, its the RPC framing that is interesting to show.

What about just a simple add server?

  message AddRequest { required int32 a = 1; optional int32 b = 2; }
  message AddResult    { required int32 r = 1; }

?

Reply via email to