A general question about Lambdas and what I should do as best practice. Right now I have a series of objects that the Lambda generates in order to correctly do calculations. At the end I have monthly, quarterly and yearly view of the data. Question is should I do 1 or 2 and does it matter?
Return only the objects I plan to have the API return to my app
Return all the objects to the API and the API returns only the things that are needed
So does it matter?
Thanks!