An example of two Go web services using a sleuth network.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
article-service
comment-service
types
.gitignore
LICENSE
README.md

README.md

sleuth-example

This is an example of two web services: an article-service and a comment-service. The article service is dependent on the comment service.

The http branch solves this dependency by making HTTP requests, assuming that the comment service is on the same machine and its port never changes.

The master branch solves this dependency by creating a sleuth network between the two services.

This codebase is the basis for a tutorial on how to use sleuth: "Service autodiscovery in Go with sleuth".