parent

The parent POM for all ktor-server-lambda modules

License

License

GroupId

GroupId

com.mercateo
ArtifactId

ArtifactId

ktor-server-lambda
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

parent
The parent POM for all ktor-server-lambda modules
Project URL

Project URL

https://github.com/otbe/ktor-server-lambda
Project Organization

Project Organization

Mercateo AG
Source Code Management

Source Code Management

https://github.com/otbe/ktor-server-lambda.git

Download ktor-server-lambda

How to add to project

<!-- https://jarcasting.com/artifacts/com.mercateo/ktor-server-lambda/ -->
<dependency>
    <groupId>com.mercateo</groupId>
    <artifactId>ktor-server-lambda</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.mercateo/ktor-server-lambda/
implementation 'com.mercateo:ktor-server-lambda:1.0.1'
// https://jarcasting.com/artifacts/com.mercateo/ktor-server-lambda/
implementation ("com.mercateo:ktor-server-lambda:1.0.1")
'com.mercateo:ktor-server-lambda:jar:1.0.1'
<dependency org="com.mercateo" name="ktor-server-lambda" rev="1.0.1">
  <artifact name="ktor-server-lambda" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.mercateo', module='ktor-server-lambda', version='1.0.1')
)
libraryDependencies += "com.mercateo" % "ktor-server-lambda" % "1.0.1"
[com.mercateo/ktor-server-lambda "1.0.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • ktor-server-lambda-core
  • ktor-server-lambda-sample

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.

Versions

Version
1.0.1
1.0.0
0.0.11
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1