quarkus on AWS lambda
src: Quarkus on AWS Lambda by Clement Escoffier - Invidious - 2023-05-16
Abstract
- start with https://code.quarkus.io
- funqy-amazon-lambda: abstraction for serverless functions
public class GreetingFunction { @Funq public String myFunqyGreeting(Person friend) { return "Hello " + friend.name(); } }
- provides a
manage.sh
script to mange the function (callingaws
CLI commands)quarkus.snapstart.enable=true
- enable to restart from a snapshot in order to accelerate the function execution
- only pay for invocation, not the snapshotting
- in the AWS console, it’s displayed at
Configuration > General configuration > SnapStart
and should have the valuePublishedVersion