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...

КОМЕНТАРІ • 17

  • @dandogamer
    @dandogamer 8 місяців тому +2

    Would love to see a video on how you handle transactions within DDD, specifically handling the errors like rollbacks

  • @paymonsattar222
    @paymonsattar222 8 місяців тому +1

    Wow sam, this is amazing!

    • @samvcodes
      @samvcodes  8 місяців тому

      Ayy thanks Paymon!

  • @prashlovessamosa
    @prashlovessamosa 14 днів тому

    Hey Sam can you please teach us event driven architecture and its implementation in Golang.

  • @morkhoudia9
    @morkhoudia9 8 місяців тому

    Thanks you for this video

  • @prashlovessamosa
    @prashlovessamosa 3 місяці тому +1

    Bruv 5 months no upload

    • @samvcodes
      @samvcodes  3 місяці тому +1

      Videos coming soon! Do you have any suggestions?

  • @yassinenassih3002
    @yassinenassih3002 8 місяців тому +1

    Thanks Man

    • @samvcodes
      @samvcodes  8 місяців тому

      Thanks for watching! 🙏

  • @anhhaoam3379
    @anhhaoam3379 8 місяців тому

    Can you make a video about using sqlc in any project? and how to divide it into parts in repository , thanks ad

  • @b3owu1f
    @b3owu1f 8 місяців тому +1

    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.

  • @anshkumargarhewal8582
    @anshkumargarhewal8582 6 місяців тому

    Which theme are you using

  • @TheMrlewismedia
    @TheMrlewismedia 8 місяців тому

    🙌🙏

  • @lucifer-5ybtn
    @lucifer-5ybtn 6 місяців тому

    programming font name?

  • @ibrahimkoz1983
    @ibrahimkoz1983 8 місяців тому

    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.

  • @jbarnett7045
    @jbarnett7045 7 місяців тому

    'promo sm'