package
3.0.1+incompatible
Repository: https://github.com/ajroetker/grid.git
Documentation: pkg.go.dev

# README

hello

The "hello world" of grid applications.

What You Will Learn

  1. How to start a gird application
  2. How to define a leader actor
  3. How to discovery peers in the application
  4. 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 github.com/coreos/etcd
$ cd github.com/coreos/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.

# Structs

LeaderActor is the entry point of the application.
WorkerActor started by the leader.