serverless-java-container icon indicating copy to clipboard operation
serverless-java-container copied to clipboard

aws-serverless-java-container library - can it be used for events like s3Event, sqsEvent triggers of lambda?

Open rajanigk opened this issue 5 years ago • 5 comments

Implementations: `Spring / Spring Boot / Spring Boot 2 '

  • Can this framework be used with other event types like s3Event, sqsEvent? I have seen that it can be used for API gateway invocations. If it does not support other event trgiggers, Can we use this library and extended any interface/class to make it work with other event types? Or is there a plan to provide that support by this library itself?

Regards, Rajani

rajanigk avatar Jul 16 '20 10:07 rajanigk

Hi @rajanigk - it is possible to support other event types by implementing the interfaces defined by this framework. This is not the first time we receive a request for support of other event types so I'll keep this issue open as a feature request and add a comment with a potential solution later on

sapessi avatar Jul 16 '20 15:07 sapessi

Thanks a lot for considering this feature request

rajanigk avatar Jul 17 '20 06:07 rajanigk

+1 I would like to see this feature implemented.

jumpinjan avatar Feb 21 '23 21:02 jumpinjan

+1

Hobart2967 avatar May 07 '24 09:05 Hobart2967

Hi folks, for those having added +1 it would be interesting to hear what event you want to use and what benefit you are expecting AWS Serverless Java Container to offer in this case.

E.g. for Spring it's easy to implement it directly using Spring Cloud Functions (sample https://catalog.workshops.aws/java-on-aws-lambda/en-US/01-migration/handler#step-2:-create-the-entry-handler) so right now we don't see the immediate need to support non HTTP-events as part of this library.

deki avatar May 07 '24 10:05 deki