Class BaseRestateLambdaHandler

java.lang.Object
dev.restate.sdk.lambda.BaseRestateLambdaHandler
All Implemented Interfaces:
com.amazonaws.services.lambda.runtime.RequestHandler<com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent,com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent>

public abstract class BaseRestateLambdaHandler extends Object implements com.amazonaws.services.lambda.runtime.RequestHandler<com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent,com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent>
Base implementation of a Lambda handler to execute restate services

Implementation of AWS Lambda RequestHandler for serving Restate functions.

Restate can invoke Lambda functions directly or through AWS API gateway. For both cases, it will invoke the Lambda using the same envelope of an API Gateway request/response. See Restate Lambda documentation for more details.

  • Constructor Details

    • BaseRestateLambdaHandler

      protected BaseRestateLambdaHandler()
  • Method Details

    • register

      public abstract void register(RestateLambdaEndpointBuilder builder)
      Configure your services in this method.
    • handleRequest

      public com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent handleRequest(com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent input, com.amazonaws.services.lambda.runtime.Context context)
      Specified by:
      handleRequest in interface com.amazonaws.services.lambda.runtime.RequestHandler<com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent,com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent>