Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Building AWS Lambdas with Quarkus and GraalVM: ...

Building AWS Lambdas with Quarkus and GraalVM: Deployment & Performance Benchmarking

In this session, we'll dive into building, running, and deploying AWS Lambda functions using the Quarkus framework. You'll learn how to create a simple Lambda function that interacts with AWS DynamoDB for basic read and write operations.

We’ll start by running the Lambda locally with LocalStack, which simulates AWS services on your machine. Then, we’ll walk through the steps to deploy it to AWS, covering the necessary configuration and setup.

We’ll also take a closer look at performance, comparing how Lambda performs when running on the Java runtime versus the native runtime powered by GraalVM.

By the end of the session, you’ll have a better understanding of how to build serverless applications with Quarkus, the advantages of GraalVM's native compilation, and how to benchmark and optimize the performance of your Lambda functions.

Andre Bedregal

December 09, 2024
Tweet

Other Decks in Programming

Transcript

  1. About me • I’m a software engineer with 10 years

    of experience. • Developed many enterprise-grade applications using Java, Spring Boot, SQL, Kafka, Redis, and Docker. • Passioned about Java <3 • http://linkedin.com/in/andre-bedregal/
  2. Agenda • Introduction to AWS Lambdas, Quarkus, and GraalVM •

    Building a Lambda with Quarkus • Running Locally with LocalStack • Deploying to AWS • Performance Benchmarking: Java vs. GraalVM Native https://github.com/andre-bedregal/lambda-with-quarkus-jconfperu24
  3. What Are AWS Lambdas? • Definition: Event-driven serverless compute service.

    • Advantages: Scalability, cost efficiency, and no server management.
  4. What is GraalVM? • A high-performance runtime that provides support

    for Java and other JVM-based languages, as well as JavaScript, Python, and more. • Compiles JVM-based applications into standalone executables for faster startup and lower memory usage. • Why GraalVM for Lambdas? • Minimizes cold start times. • Reduces resource consumption. • Enhances scalability for serverless applications.
  5. Why Quarkus for AWS Lambdas? • Optimized for cloud environments.

    • Fast startup time and low memory footprint. • Native compilation with GraalVM.
  6. Key Takeaways • Quarkus simplifies serverless application development. • GraalVM

    offers significant performance benefits. • Benchmarking is crucial for optimizing serverless workloads.