This project show concretely to build microservice with golang and envoy.
The architecture is that envoy will manage all the route traffic, and you can build all the application (microservices) and API endopoints which are managed by envoy.
In the example, the golang micro service just print some json, but you can modify it with some valid backend code.
docker build -t envoy:v1 .
Run with:
docker run --rm --net host --name envoy envoy:v1
After this envoy should up and running.
After envoy is up and running, run on a seperate terminal
go run service_a.go
When acessing that url, we configured envoy.yaml to point to our golang microservice, so JSON data will printed in your browser.
This basic example can serve you as quick example how to play with envoy and building more complex things ( https/authentification more services etc).