Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.36 KB

README.md

File metadata and controls

35 lines (24 loc) · 1.36 KB

ktor-server-lambda

Maven Central CircleCI

Purpose

ktor-server-lambda-core is a proof of concept implementation of an ktor engine, which allows you to run your ktor module in AWS Lambda behind an API Gateway. Basically, its just a mapping of API Gateway events to ktor request/response objects and vice versa.

Installation

In Maven add our core dependency:

<project>
    ...
    <dependencies>
        <dependency>
            <groupId>com.mercateo</groupId>
            <artifactId>ktor-server-lambda-core</artifactId>
            <version>1.0.1</version>
        </dependency>
    </dependencies>
</project>

Usage

Just write your ktor application as always and set the Lambda Handler to com.mercateo.ktor.server.lambda.LambdaAdapter::handle. After that the Lambda Engine will pickup your application and executes the call pipeline.

Please have a look at our sample for a compete guide how to use this library.