“I have a question about DTO and the data exchange between BE and FE.
At what data size should we be concerned about calling from the DB or transferring from FE and receiving at BE (data previously sent to FE and FE requests to resend it for other purposes)?
Or in another case,
Example: I have a function that needs to aggregate information from multiple domain objects. Some of that information will be used in one context, while other information will be used in another context. Should I create a DTO containing all the necessary information from multiple domain objects? And why?
In cases where it is necessary to send everything at once, would splitting the DTOs be more efficient in terms of cleaner and more maintainable code?”
Thanks.
I would like to ask about the most optimal way to implement this in terms of performance and maintainability.