AWS Lambda

This module supports the AWS Lambda server-less architecture.


Show version
dependencies {


The add-on uses on the interface-based approach of AWS Lambda. To declare a SeedStack-enabled request handler, extend the BaseRequestHandler class:

public class SomeRequestHandler extends BaseRequestHandler<String, String> {
    private Greeter greeter;

    public String handleRequest(String input, Context context) {
        return greeter.greet(input);

The BaseRequestHandler class will initialize SeedStack on the first call of the lambda function. Your lambda can then be injected like any SeedStack class. Interception is not supported on the request handler itself but can be used on all other classes.

Initialization is only performed during a lambda cold start but it is recommended to keep your lambda code focused and small so the initialization time is kept to a minimum.

All sources of events are supported.


Packaging should be done according to the AWS lambda packaging rules, that is using the Maven shade plugin instead of normal SeedStack capsule:


On this page

Edit this page