https://github.com/otbe/ktor-server-lambda
https://github.com/otbe/ktor-server-lambda
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/otbe/ktor-server-lambda
- Owner: otbe
- License: apache-2.0
- Created: 2019-04-11T14:22:28.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-05T22:09:44.000Z (over 2 years ago)
- Last Synced: 2025-07-18T01:31:57.862Z (11 months ago)
- Language: Kotlin
- Size: 138 KB
- Stars: 9
- Watchers: 4
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ktor-server-lambda
[](https://search.maven.org/search?q=g:%22com.mercateo%22%20AND%20a:%22ktor-server-lambda-core%22)
[](https://circleci.com/gh/otbe/ktor-server-lambda)
## Purpose
`ktor-server-lambda-core` is a proof of concept implementation of an [ktor engine](https://ktor.io/servers/configuration.html), 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:
```xml
...
com.mercateo
ktor-server-lambda-core
1.0.1
```
## 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](ktor-server-lambda-sample/) for a compete guide how to use this library.