FieryCod / holy-lambda

The extraordinary simple, performant, and extensible custom AWS Lambda runtime for Clojure.
https://fierycod.github.io/holy-lambda
MIT License
340 stars 20 forks source link

[FEATURE] Add support for building ARM64 native binaries when on AMD64 #73

Open FieryCod opened 3 years ago

FieryCod commented 3 years ago

Is your feature request related to a problem? Please describe. Starting from version 0.6.0 people with ARM processor may locally compile a project to a native binary by using a special builder image e.g. ghcr.io/fierycod/holy-lambda-builder:aarch64-java11-21.3.0.

ARM architecture for AWS Lambda is great due to the utilization of Graviton2 processor, which means the lambda functions are much faster in the long run. Also cold starts, and the price per 1M invocations are much lower. See here

Since the architecture of the processor is different users with AMD64 processor cannot use the ARM64 builder natively, but are forced to use QEMU and docker buildx. The compilation is much much slower, but it's possible and we should support it.