Allow Lambda plugins to return invocation results directly #4688
+327
−297
Conversation
…ication around inv. forwarding
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.


Allow Lambda plugins to return invocation results directly, streamlining the code, and removing code duplication around invocation forwarding in the presence of
LAMBDA_FORWARD_URL.Introduces a
LambdaInvocationForwarderPluginwhich is in charge of forwarding the Lambda invocations. In that process, we are able to remove some of the duplicate error handling code inlambda_api.pyandlambda_executors.py.There is one
TODOleft in the code - currently we're returning the first result received from a Lambda executor. Technically, there could be multiple execution plugins trying to intercept the invocation and returning a result - we need a better conflict resolution mechanism if that situation comes up in the future (currently aWARNINGmessage is being logged should that occur..).(The PR also contains a few refactorings/fixes in the Lambda unit tests, e.g., avoid hardcoding
us-east-1as the region for Lambda ARNs.)@serkan-ozal - can you please confirm that the Thundra plugin still works properly with these changes? Thanks!
/cc @thrau @dfangl
The text was updated successfully, but these errors were encountered: