4 Microservice project setup
This chapter covers
- Using hexagonal architecture for microservice projects
- Setting up tool kits for services
- Running a basic microservice application
- Making the initial request for running an application
It is very normal to ask, “How should I structure my project?” before writing the first line of your Go microservice project. The answer to this question might seem difficult initially, but it is easy to apply some common software architecture patterns that help solve challenges such as building modular projects to have testable components. Let’s see how to apply those principles to a Go microservice project and perform some tests to see how gRPC endpoints work.
4.1 Hexagonal architecture
Hexagonal architecture ...
Get gRPC Microservices in Go now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.