Reputation: 10089
I am uploading a java 8 function on lambda but the libs are taking a huge place.
Each lib is duplicated for specific os:
I could take only one to get a lighter package but I can not found which one I have to take for aws lambda with java 8
Upvotes: 0
Views: 171
Reputation: 1545
The Java Lambda runtime supports following architectures:
Name | Identifier | Architecture |
---|---|---|
Java 11 | java11 |
x86_64, arm64 |
Java 8 | java8.a12 |
x86_64, arm64 |
Java 8 | java8 |
x86_64 |
So you would only have to package either x86_64 or the arm64 libs.
Lambda functions that use arm64 architecture (AWS Graviton2 processor) can achieve significantly better price and performance than the equivalent function running on x86_64 architecture. Consider using arm64 for compute-intensive applications such as high-performance computing, video encoding, and simulation workloads. Source
Depending on which architecture you want to use, you only have to package the libs for that architecture. You can deploy your Lambda function either as zip file and configure the architecture used in the Lambda function's settings or create a Lambda function from a container image
Upvotes: 1