Create generic MicronautRequestHandler to handle any AWS Event and APIGatewayProxy request #1957
Unanswered
sjesubillgo
asked this question in
Q&A
Replies: 1 comment
-
Hi, I am facing the same challenge! An existing Micronaut Lambda application needs to handle both APIGatewayProxy events and AWS Events coming from EventBridge(CloudWatch). @sjesubillgo what was your final approach to this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am trying to create Micronaut Lambda application to handle and support any
AWS Event
processing in addition toAPIGatewayProxy
request usingMicronautRequestHandler
.Basically the challenge is, I currently have Micronaut REST API application running on Lambda and now the requirement is to make a change to the current application to handle any incoming Events from EventBridge, S3, SQS, etc in the same application. Thus, trying to make it work using
MicronautRequestHandler
so that I keep utilizing Controller classes along with Event processing.So far I have tried this in my Demo application and seems to be working from AWS Lambda. However, I just want to double check if this is a valid way to achieve my goal or is there a better way of doing it? Would appreciate your any suggestions to make this better!
Controller
Function Handler
ProcessSQSmessageService
Beta Was this translation helpful? Give feedback.
All reactions