Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
First, i saw module github.com/babilu-online/common is unavailable so i built a service context manually.
Second, i see the server will termianted immediately,that is not a best practice for handle shutdown server,so i implemented gracefull shutdown.
Third, i realize that when increase workload, this repo become difficult to maintain,so we need apply architecture and i choose Hexagonal for this, clean structure to easy maintain
Fourth, all service in this project is being used directly,that mean difficult to maintain code and violates the D principle in SOLID,so i used Dependency Injection between layers like transport,usecase,repository.make components become loose coupling. Init service by Constructor, make extension func