bketelsen/skynet — pull request #71 by skelterjohn (2012-07-31 13:33:21+00:00)
Title: fibonacci service

Added a service and client in examples/testing/fibonacci that can be used for sending lots of messages throughout a cluster.

I hope to keep this service/client as an example of skynet best practices. That being said, if someone comes up with some better practices, feel free to change this service.

The service will never compute the same index in the sequence twice, even if the requests come in concurrently. It sends out requests for the two previous elements to random instances in the cloud (potentially itself).

There is also a package provided that clients can use to get the appropriate types for RPC calls - a fibonacci.Request and fibonacci.Response.