Lambda functions will hold our business logic. They will be executed when an API request is made. We have already shown you how lambda function needs to be bound with an API gateway. You will also see in Chapter 6, Analyzing your Application, how the lambda function will sit between the API gateway and CloudWatch. It will serve as a bridge.
Implementing lambda functions
Writing your first lambda function in Kotlin
You may have already written a lambda function in your project. AWS supports multiple languages for lambda functions. We will write our lambda function in Kotlin. The Kotlin code will be compiled and converted into a fat .jar file. Kotlin code can also be transpiled into JavaScript, and we will target Node.js in...