Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How would you transform this architecture into Microservices? #62

Open
JustJakeCalifornia opened this issue Jul 18, 2022 · 2 comments
Open

Comments

@JustJakeCalifornia
Copy link

sup,
Im currently struggling to find an appropriate architecture for building Microservices in Go. Everyone says something different - no crystal-clear standardization.

It'd be great if you can show me how you would transform this approach to Microservices, bc I pretty like this architecture

@mdaops
Copy link

mdaops commented Aug 1, 2022

Hey -

So for the most part the code base is already split into services..

You have

internal/Trainings
internal/Trainer
internal/Users

There's absolutely nothing stopping you from copying this three layers and spliting them up into single repositories and or layers. In fact that's the benefit of using something like DDD-lite because you're effectively serpeating your business logic by domain boundary whether your making microservices or not.

In general though, you should be using what ever standardisation is best for you, or your company. DDD / DDD-lite / Ports & Adapters / Hexagonal aren't sliver bullets. Start of simple, refactor when needed.

@JustJakeCalifornia
Copy link
Author

Sounds coherent ty. I've found my way of structuring my project and it's pretty clean in my opinion. If you're interested, check it out: https://github.com/NicoMarksman/go-license-v2.
I also use the workspace feature in VSCode to separate them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants