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

Duplication in mediator handlers #50

Open
hanigamini opened this issue Apr 5, 2023 · 0 comments
Open

Duplication in mediator handlers #50

hanigamini opened this issue Apr 5, 2023 · 0 comments

Comments

@hanigamini
Copy link

hanigamini commented Apr 5, 2023

How to use duplicate code in handler?
Does the static method take up a lot of memory when a lot of data is exchanged?
Base on @ShreyasJejurkar
It's not recommended to send another request from request handlers. The purpose of using MeditR is just to convert HTTP requests to our application-specific requests and send them into the application layer without letting the controller knows about it or any other presentation layer.

What is the best solution to not occupy a lot of memory?
Static method or utility class or service or Application services or abstraction layers or domain layer?

What is the code you suggest?

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

1 participant