|
I have a scenario where I'm using an architecture like this -
How do I go about simulating/testing this scenario using a custom function and having it invoked multiple times with the event_source_mapping? My idea is to use - aws_lambda_simple to do the job. Would this work? |
Answered by
bblommers
Feb 9, 2024
Replies: 1 comment 4 replies
|
Hi @rishacha! Moto isn't quite advanced enough to support your test case, I'm afraid. Invoking a function via an EventSource is done syncronously, so the Maybe LocalStack may be a better fit? I don't know for sure whether they support it, but they tend to be better at emulating the real behaviour when it comes to AWSLambda Functions. |
4 replies
Answer selected by
rishacha
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @rishacha! Moto isn't quite advanced enough to support your test case, I'm afraid. Invoking a function via an EventSource is done syncronously, so the
batch_sizewill realistically always be 1. TheMaximumConcurrency-argument isn't taken into account at all, for the same reason.Maybe LocalStack may be a better fit? I don't know for sure whether they support it, but they tend to be better at emulating the real behaviour when it comes to AWSLambda Functions.