gRPC Microservice Structure in Go! (DDD and Hexagonal Architecture Example)
Вставка
- Опубліковано 26 лис 2024
- Open source Github repo: github.com/sam...
In this video, I show an opinionated example of how you may structure a gRPC microservice in Golang. I discuss the advantages such from hexagonal architecture such as application layers, read and write repositories and the benefits of keeping your application logic outside of your transport layers.
The video does not showcase production-ready code but should give you a good idea of an approach you could take when implementing a microservice in Golang.
I took a lot of inspiration from the following repository github.com/pol... from @polyscone when implementing this example microservice - check the repository!
Twitter: / samvcodes
Github: github.com/sam...
Would love to see a video on how you handle transactions within DDD, specifically handling the errors like rollbacks
Wow sam, this is amazing!
Ayy thanks Paymon!
Hey Sam can you please teach us event driven architecture and its implementation in Golang.
Thanks you for this video
Bruv 5 months no upload
Videos coming soon! Do you have any suggestions?
Thanks Man
Thanks for watching! 🙏
Can you make a video about using sqlc in any project? and how to divide it into parts in repository , thanks ad
I like the project layout, but I always seem to have issues with using internal/ and getting other parts of the app to use it. Its great to hide anything not part of an API.. but when it's just an app for internal use other than "good practices" I dont' quite see the significance of the directory. It seems more relevant for projects that are libraries/sdks to be imported/used by other projects.
Which theme are you using
🙌🙏
Thanks man!
programming font name?
You should define interfaces in the callsites that call for them. That is, you should not define your interfaces upfront as you did with your Reader and Writer interfaces.
'promo sm'