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
Apologies this is probably just lack of understanding on my part but I'm trying to understand how the trimming behaviour in .NET should work with the annotations library. I have a project using Amazon.Lambda.Annotations in which the csproj has the various options for trimming enabled i.e...
Let's say this project references another project with classes for data access etc. If I have some functions that use these data access classes but another function that doesn't use any of these external classes at all i.e...
[RestApi(LambdaHttpMethod.Get, "/hello")]
[LambdaFunction]
public string Hello()
{
return "hello";
}
I would expect that the deployed bundle size for the above lambda would be much smaller than the bundles for my other functions. At the moment I am seeing them all deploy with the same size bundle. Is there any way for this to be the case or do we effectively need to deploy the whole API and all dependencies for each individual function?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Apologies this is probably just lack of understanding on my part but I'm trying to understand how the trimming behaviour in .NET should work with the annotations library. I have a project using
Amazon.Lambda.Annotationsin which the csproj has the various options for trimming enabled i.e...Let's say this project references another project with classes for data access etc. If I have some functions that use these data access classes but another function that doesn't use any of these external classes at all i.e...
I would expect that the deployed bundle size for the above lambda would be much smaller than the bundles for my other functions. At the moment I am seeing them all deploy with the same size bundle. Is there any way for this to be the case or do we effectively need to deploy the whole API and all dependencies for each individual function?
Beta Was this translation helpful? Give feedback.
All reactions