serverless-java-container
serverless-java-container copied to clipboard
aws-serverless-java-container library - can it be used for events like s3Event, sqsEvent triggers of lambda?
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
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
Thanks a lot for considering this feature request
+1 I would like to see this feature implemented.
+1
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.