-
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? |
Beta Was this translation helpful? Give feedback.
Replies: 1 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 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. |
Beta Was this translation helpful? Give feedback.
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_size
will 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.