Welcome! Since my article talking about how to implement a Golang microservice using MVC from scratch I had a lot of questions about design patterns in Go so in this lesson I’m showing you different microservice design patterns in Golang.
Starting from a mess of code running in a single file and analyzing the problems and issues we’re having when working with this approach we first move our project to a Model-View-Controller design.
This is our first try: https://github.com/federicoleon/golang-examples/tree/master/code_structure/orc
Then we migrate to our MVC implementation: https://github.com/federicoleon/golang-examples/tree/master/code_structure/mvc
Now that we have our MVC implementation, we analyze some of the advantages and disadvantages for this implementation and we take another step by migrating our code to Clean Architecture.
Hope you’ll enjoy the article!
Let me know your thoughts.