Skip to content

nporsche/writing-a-distributed-systems-library

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview

Companion code for the Gopher Academy blog post:

http://www.gopheracademy.com/writing-a-distributed-system-library

Running

To run the code, simply go get it:

$ go get github.com/benbjohnson/writing-a-distributed-systems-library

And then you can run the executable:

$ writing-a-distributed-systems-library

From another terminal window, you can add values to your system using something fancy like curl:

$ curl http://localhost:8000/add?value=5
5

$ curl http://localhost:8000/add?value=10
15

$ curl http://localhost:8000/add?value=-2
13

You can stop and restart the program (from the same directory) and your data will be persisted.

Cluster configuration is not included in this simple example. For a more complete example, please check out the raftd reference implementation.

About

Companion code for the Gopher Academy blog post.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%