You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am following your youtube series, and they are very cool.
If not anything else, just wanted to say thank you for the videos you are creating. they are clear, easy to follow, and very interesting.
I am facing one particular issue and would like to reach out.
What I am trying to achieve
I wish to use "Package by Feature" for my @configuration files.
Currently, I am using "Package by Layer".
Just to be clear, this is not an opinion based question of type which is better between "Package by Feature" and "Package by Layer", but rather a question on how to properly migrate.
The kafka producer is needed by the company service to send messages to other parts of the company
The rest client is needed by the user service and the product service in order to query some external information
the mongo repository is needed to configure all three classes in the repository layer.
Hello Dan,
I am following your youtube series, and they are very cool.
If not anything else, just wanted to say thank you for the videos you are creating. they are clear, easy to follow, and very interesting.
I am facing one particular issue and would like to reach out.
I wish to use "Package by Feature" for my @configuration files.
Currently, I am using "Package by Layer".
Just to be clear, this is not an opinion based question of type which is better between "Package by Feature" and "Package by Layer", but rather a question on how to properly migrate.
Package by layer:
The kafka producer is needed by the company service to send messages to other parts of the company
The rest client is needed by the user service and the product service in order to query some external information
the mongo repository is needed to configure all three classes in the repository layer.
Following this guide: https://medium.com/sahibinden-technology/package-by-layer-vs-package-by-feature-7e89cde2ae3a
I am refactoring to this:
Unfortunately, I am facing difficulties to refactor the configuration layer, and I would like to avoid a hybrid package by feature + package by layer.
How to refactor this configuration layer into the "Package by feature"?
The text was updated successfully, but these errors were encountered: