Skip to content

An example microservice in Golang following hexagonal architecture and DDD.

License

Notifications You must be signed in to change notification settings

samverrall/microservice-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang DDD / gRPC / Hexagonal Architecture Example

This repository holds an example of how you may structure a Golang microservice. The structure of this service follows principles from Hexagonal Architecture (ports/adapters) and Domain Driven Design. It exposes a gRPC transport layer (adapter) for internal communication between other services. The idea of this repository is to share an approach to how you could structure microservices in Golang.

Project structure

internal/app/ holds the core application layer as "services".

Running the service locally

make build 
make run 

Generating Proto

make proto-health

About

An example microservice in Golang following hexagonal architecture and DDD.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published