© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
A. LilleaasPro Kotlin Web Apps from Scratchhttps://doi.org/10.1007/978-1-4842-9057-6_12

12. Building and Deploying to Serverless Environments

August Lilleaas1  
(1)
Oslo, Norway
 

In this chapter, you’ll learn how to take your existing handlers that you currently run in Ktor and invoke them in a serverless environment, without Ktor.

In this chapter, you’ll learn the following about building and deploying to a serverless environment:
  • Setting Java runtime flags to optimize startup time

  • Intricate details about the Java runtime class loading and performance characteristics

  • How AWS Lambda executes your code

  • Important cost-saving tips in serverless environments

An important ...

Get Pro Kotlin Web Apps from Scratch: Building Production-Ready Web Apps Without a Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.