Skip to content

Enable writing Middleware code for lambda handler #1170

@ritigupt1

Description

@ritigupt1

Is your feature request related to a problem? Please describe.

I was working on adding retry and error/exception handling to the lambda written in Java when I came across an AWS reinvent talk where best practices to handle the errors was told. There was a mention of writing Middleware code to centralise the error/exception handling and for some runtimes like Python and Node.js AWS Lambda powertools already provide a way to do this using annotations. For Java, we are missing this feature in Powertools.
Describe the solution you'd like

Powertools to enable writing a middleware code which can be called before and/or after lambda function handler invocation.
Describe alternatives you've considered

Additional context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Ideas

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @jeromevdl@scottgerring@mriccia@dreamorosi@ritigupt1

      Issue actions

        Enable writing Middleware code for lambda handler · Issue #1170 · aws-powertools/powertools-lambda-java