Skip to content

otbe/ktor-server-lambda

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages