-
Notifications
You must be signed in to change notification settings - Fork 9
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
Generating for multiple interface in single file is really painful #6
Comments
Please write example in go-kit-middelwarer for following go-kit example https://github.com/go-kit/kit/tree/master/examples/shipping/booking |
It is generally assumed in this package, and may need to be made more clear in the future, that a single interface for your microservice is expected. Multiple interfaces tends to indicate a bifurcation of business logic and MAY need refactoring. More often then not, in this situation, this actually means that you should be separating out each of these interfaces into separate microservices entirely as the service is trying to do too many things at once. As shown in the below layout from the read me, go-kit-middlewarer currently expects you to follow the below structure:
This expects a single interface in the
In this example, I'll spend a bit of time today to refactor the shipping example from https://github.com/go-kit/kit/tree/master/examples/shipping into a go-kit-middlewarer built collection of microservices to give you an example to base multiple services off of. |
This might take a bit longer then I had previously expected. I've been digging into the shipping example and it appears this is exactly the situation I'd expect separate microservices to exist instead of a complicated multi-interface setup that currently exists. |
@curlymon Thanks for your effort in converting that shipping example. Let me know after converting it. |
I am manually cleaning up the generated code for multiple interfaces.
The text was updated successfully, but these errors were encountered: