hello
The "hello world" of grid applications.
What You Will Learn
- How to start a gird application
- How to define a leader actor
- How to discovery peers in the application
- How to start other actors besides the leader
Prerequisite, Etcd
The grid library requires a V3 etcd server to be running, and this
example requires that it run on its default port number. You can
get etcd running by doing:
$ go get go.etcd.io/etcd
$ cd go.etcd.io/etcd
$ ./build
$ bin/etcd
Running the Example
In a terminal run the following command from inside the hello
directory:
$ go run main.go -address localhost:7777
You can run as many of these processes as you want, but each
will need a different port number.