How to Deploy a Quarkus RESTEasy Microservice as AWS Lambda Function
1. Introduction This article will teach us how to deploy a RESTEasy microservice in Quarkus as an AWS Lambda function. 2. What is A...
1. Introduction
This article will teach us how to deploy a RESTEasy microservice in Quarkus as an AWS Lambda function.
2. What is AWS Lambda?
AWS Lambda is a serverless computing platform commonly used to perform an event-driven function. But with the recent updates, it can also be used to handle HTTP and REST requests. This entails a significant saving in cloud usage fees compared to other services where containers can be run like AWS Fargate and EC2. Especially if the service is not in use 24/7.
3. What is Quarkus?
Quarkus is another Java framework similar to Spring but optimized to make it more efficient for containers, cloud, and serverless environments. It also provides a library quarkus-amazon-lambda-rest used to deploy a RESTEasy (JAX-RS) microservice as a Lambda function using AWS Gateway REST API.
4. What do you need to Create a Quarkus Project?
You can use the project starter creator available at: https://code.quarkus.io.
Or use the Quarkus plugin in IntelliJ or Eclipse to create a Quarkus project template.
Quarkus project in IntelliJ.
5. What do you need to Deploy a Quarkus Lambda Function on AWS?
5.1 Install the following Tools
- Chocolatey (Windows), Homebrew (Mac)
- Quarkus CLI - https://quarkus.io/guides/cli-tooling
- AWS SAM CLI - https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install.html
Post a Comment