Skip to content
Stefano Buliani edited this page Apr 14, 2017 · 23 revisions

AWS Serverless Java Container makes it easy to run your Spring, Jersey, or Spark applications using AWS Lambda and Amazon API Gateway. The library defines a set of interfaces and abstract classes required to support other frameworks in the future.

Quick starts

  • Spring - aws-serverless-java-container-spring
  • Jersey - aws-serverless-java-container-jersey
  • Spark - aws-serverless-java-container-spark

How it works

The primary purpose of the library is to act as a container; it receives events object from Lambda and translates them to a request object for the framework. Similarly, it translates responses from the framework into valid return values for API Gateway.

Event translation

To translate incoming events, the library declares two abstract classes: The RequestReader and the ResponseWriter. Both these classes use generic types for the input and output objects. Implementing libraries, such as the Jersey one, extend these classes to support their types.

Out of the box, the library supports proxy integration events.

Clone this wiki locally