Abstract
Purpose: This paper provides a thorough roadmap for developers, architects, and cloud enthusiasts who want to use the AWS Serverless Application Model (AWS SAM) to create a REST API and use the power of serverless computing. To handle HTTP requests effectively, the article focuses on deploying the API behind an Application Load Balancer (ALB) using path-based routing. The hands-on approach offers detailed instructions and valuable insights on planning, creating, and implementing serverless REST APIs. The focus is on the details of AWS SAM, examining its benefits and complexities. The paper makes the procedure easier to understand by providing thorough code excerpts, explanations, and pictures.
 Methodology: The methodology covers local testing using the SAM CLI, allowing developers to validate the API's functionality before deployment.
 Findings: The process also includes local testing with the SAM CLI, which enables developers to confirm the functioning of the API before deployment. To target the Lambda function, this paper will discuss AWS Lambda behind an ALB using a path-based listener rule on the ALB. The article’s conclusions cover essential topics like path-based routing, ALB integration, AWS SAM template structure, and recommended security and performance optimization practices.
 Unique Contributor to Theory, Policy and Practice: Based on these findings, recommendations offer information on optimizing templates, ensuring secure deployment, and using local testing to speed up development. Finally, the article walks readers through deploying the built API to AWS via the SAM CLI, facilitating a seamless transfer from a local development environment to an environment in production. Ultimately, this paper provides readers with the know-how and abilities to successfully negotiate AWS SAM's complexities and build reliable serverless REST APIs.
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
More From: International Journal of Computing and Engineering
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.