In the enterprise world, people know about Netflix's Eureka and Spring Boot from the Java community. In Go, a package that tries to reach that level of implementation is obviously Go kit. It is a toolkit for building microservices.
It has a Go style of adding services, which makes us feel good. It comes with a procedure for adding the microservices. In the upcoming sections, we will see how to create a microservice with the steps defined by Go Kit. It mainly consists of many layers. There are three layers where request and response flow in Go Kit:
- Transport layer: This takes care of transferring data from one service to another
- Endpoint layer: This takes care of building endpoints for the given services
- Service layer: This is the actual business logic for the API handlers
Install Go Kit using this command:
go get github...