I also want to run a dropwizard application in Lambda. The jrestless application says it supports JAX-RS and is easy to use to get started; but I don't know enough about dropwizard to see how to splice it in. https://github.com/bbilger/jrestless
Any advice appreciated On Friday, December 1, 2017 at 8:07:50 AM UTC-8, Rupert Smith wrote: > > I have some DropWizard code that I want to run under AWS Lambda functions. > > Does it even make sense to use DW in this context? > > Due to using DW I already use Jersey for my API. There is some code to > help run Jersey under Lambda functions: > > > https://github.com/awslabs/aws-serverless-java-container/tree/master/aws-serverless-java-container-jersey > > But I also use other DW bundles for things like database access and so on. > I would be helpful to keep on using DW to configure all the components of > the project, as a micro-service kernel. I would also need a module to pick > up the config from somewhere other than a file too. > > So I am wondering if the best way to tackle it is to try and inject the > Jersey handler that is needed for AWS as a DW bundle? Anyone done anything > with DW on AWS Lambda already? > > I think using DW as a lambda function will introduce a little bit of > overhead to the startup time. That is ok for my needs at the moment; once > it is spun up it will be used for a short burst of activity and I expect it > can be kept running throughout that and be fast enough. A brief pause in > getting started will be totally fine. > > Rupert > -- You received this message because you are subscribed to the Google Groups "dropwizard-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
