Integrating a Lambda function with an upstream component

In the previous sections, we went over the basics of Lambda functions and the programming model, and we created, configured, deployed, and tested a very simple Lambda function, which greeted the caller.

In this section, with the goal of having an end-to-end working example of a Lambda function, let's hook our greeter to an API Gateway that allows the Lambda function to be exposed as an API.

In a production-grade application, none of the following have to be done via the console. The API Gateway provides extensive Swagger extensions, which can be leveraged to eradicate the boilerplate steps.

Some working knowledge of REST APIs is required to properly understand this section. Knowledge ...

Get Hands-On Serverless Applications with Kotlin 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.