otbe / ktor-server-lambda Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Interesting for authorization context provided by APIG if your using Cognito or Custom Authorizers
...
If yes we must encode the buffer as a base64 encoded string and set the proper flag.
There should be some description about what this library is and how to use it.
Check current impl for correctness
Add tests for APIG integration
Unfortunately, the formatting rules seem to differ between developers.
Find a way to unify formatting and maybe also introduce ktlint to this project.
Maybe something like com.mercateo.ktor.server.lambda
?
Check current impl for correctness (especially the headers part)
We should provide a basic example. Maybe a small serverless + REST example?
Should it be possible to deploy the ktor function to any other cloud provider than AWS? Could be helpful to at least structure the project by creating a separate ktor-server-lambda-aws
module and map from AWS specific request model to a more generic one...
Clenaup and verify correctness
Create a library ready build setup + Travis (or circle?) setup
...
we encountered that the application is started twice, when running locally.
--- [main] INFO Application - No ktor.deployment.watch patterns specified, automatic reload is not active
--- [main] INFO Application - Responding at http://0.0.0.0:8080
--- [DefaultDispatcher-worker-1] INFO Application - No ktor.deployment.watch patterns specified, automatic reload is not active
--- [DefaultDispatcher-worker-1] INFO Application - Responding at http://0.0.0.0:8080
this seems to happen because the we probably don't use the lambda engine correctly: we specify the main function like fun main(args: Array<String>): Unit = io.ktor.server.cio.EngineMain.main(args)
but shortly afterwards we also start the LambdaEngine
using the LambdaAdapter
.
This also shows, that it's probably a good idea to follow the pattern used in EngineMain
and let LambdaEngine
be a singleton, that is started by the library user.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.