Quarkus Lambda Rest extension with other @Named handlers #35327
Replies: 3 comments
-
/cc @matejvasek (amazon-lambda), @patriot1burke (amazon-lambda) |
Beta Was this translation helpful? Give feedback.
-
Did you find a solution for this @sivabalachandran? I'm considering to split my project in 3 sub-modules to support this but it's not very elegant :-(
And as we use Quarkus, the |
Beta Was this translation helpful? Give feedback.
-
A little bit late but maybe someone else has the same question. You do not need to make your commons a Quarkus extension. It can be a Maven dependency. For such projects I use the Maven multi-module project approach. The problem is if you want to build a native executable of your application this increases the build time because each handler is built separately. |
Beta Was this translation helpful? Give feedback.
-
I am writing a Lambda that has a REST handler and a handler that listens to SNS event. I want two handlers to be in same repo as they share majority of the code and does pretty much the same thing. Currently this does not work with exception
Multiple handler classes. You have a custom handler class....
. I see the rest extension creating aProvidedAmazonLambdaHandlerBuildItem
that basically leads to this issue. I am wondering if we can do a sensible default in the extension by creating the build item conditionally if no handler is configured inapplication.properties
.I can do a pull request, but I am not sure how do I resolve config values at build time? Need some direction here. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions