Giter Club home page Giter Club logo

ktor-server-lambda's People

Contributors

alxgrk avatar duarte-figueiredo avatar kellydavid avatar otbe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ktor-server-lambda's Issues

Add README

There should be some description about what this library is and how to use it.

Use common code style

Unfortunately, the formatting rules seem to differ between developers.
Find a way to unify formatting and maybe also introduce ktlint to this project.

Provide example

We should provide a basic example. Maybe a small serverless + REST example?

Running somewhere else than AWS?

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...

Build

Create a library ready build setup + Travis (or circle?) setup

two listeners when starting sample locally

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.