Here is my Lambda function:
LambdaFunction:
Type: AWS::Serverless::Function
Properties:
Description: Lambda Function that is spawned via an SQSEvent
FunctionName: LambdaFunctionName
Handler: 'com.amazon.krakenscreenruleengineservicelambda.handler.RulesSubscriptionConsumerHandler::handleRequest'
Runtime: java8
Events:
SubscriptionEvent:
Type: SQS
Properties:
Queue:
Fn::GetAtt: [SubscriptionQueue, Arn]
BatchSize: 1
Timeout: 890
MemorySize: 1024
I've set BatchSize
as 1
.
1 assumption I am making is that, a single Lambda container spawning is determined by it's specific START and END requestId
. If there are 5 such START and END requestId
, that means 5 unique containers were spawned.
Now does this mean that within a START and END requestId
, exactly 1
message is processed and for the next message a new container is spawned with a new START and END requestId
EVEN if the previous container had the Memory and Time to execute more requests?