Layers
The Layers sub-project is designed to simplify the deployment of machc.core libraries as reusable AWS Lambda Layers. AWS Layers allow you to share code, dependencies, and libraries across multiple Lambda functions, improving modularity, maintainability, and deployment efficiency.
Why Are Layers Needed?
AWS Lambda Layers are critical for modular and reusable serverless applications. Here's why:
- Shared Code Across Functions: Common libraries (like
machc-core
) can be stored in a layer and reused, reducing redundancy and improving consistency. - Reduced Deployment Package Size: Instead of bundling all dependencies with each Lambda function, layers keep your deployment lightweight by separating common libraries.
- Centralized Updates: Changing a library in a layer automatically reflects across all associated Lambda functions—no need to redeploy each function separately.
- Improved Development Efficiency: Keeps Lambda functions focused on core business logic, while reusable functionality is made available via the layer.
In the context of Mach-C, the Layers project allows you to package and deploy machc.core libraries as an AWS Lambda Layer, providing reusable functionality wherever it's needed.
How To Build
$ sh build.sh