Can we scale Lambda functions for SNS trigger?

0 votes
If the messages being published to the SNS topic if Lambda reaches its limit of maximum concurrent executions and is not able to scale further what will happen then? If SNS topic is receiving more messages per second then what Lambda can scale up to. These are the issues. Plus SNS, it is a pub/sub mechanism with no no backlog in it. So, what will happen to the extra surplus messages per second?

Is there a way to monitor if my Lambda can process at the rate at which SNS is receiving messages?
Apr 20, 2018 in Cloud Computing by code_ninja
• 6,220 points
503 views

1 answer to this question.

0 votes

This doc should answer your first concern: https://docs.aws.amazon.com/lambda/latest/dg/retries-on-errors.html

 It talks specifically about retry behaviour.

This is a specific you should make note of:

Asynchronous invocation – Asynchronous events are queued before being used to invoke the Lambda function. If AWS Lambda is unable to fully process the event, it will automatically retry the invocation twice, with delays between retries. If you have specified a Dead Letter Queue for your function, then the failed event is sent to the specified Amazon SQS queue or Amazon SNS topic. If you don’t specify a Dead Letter Queue (DLQ), which is not required and is the default setting, then the event will be discarded. For more information, see Dead Letter Queues.

Now getting to your second question:

Use AWS Cloudwatch:

Following are the metrics interesting for you:

  • AWS/Lambda - Invocations
  • AWS/SNS - NumberOfMessagesPublished

 I hope this helps

answered Apr 20, 2018 by hemant
• 5,750 points

Related Questions In Cloud Computing

0 votes
1 answer

AWS Cloud9: Can we deploy only one Lambda function at a given time

Let us start understanding what happens when ...READ MORE

answered Apr 18, 2018 in Cloud Computing by code_ninja
• 6,220 points
85 views
0 votes
1 answer

Can we Access AWS SNS service without having access to Secret key and access key?

Yes what you ask for is possible. ...READ MORE

answered May 9, 2018 in Cloud Computing by DragonLord999
• 8,380 points
49 views
0 votes
1 answer

Can we add AWS IAM users to AWS Cognito Pool?

For now, that seems unlikely. Because if ...READ MORE

answered Apr 18, 2018 in Cloud Computing by brat_1
• 7,080 points
106 views
0 votes
1 answer

Can we Use Api keys with AWS API Gateway?

There is no getting away here. When ...READ MORE

answered Apr 18, 2018 in Cloud Computing by hemant
• 5,750 points
28 views
0 votes
1 answer

Do we have an API for Amazon Cloudwatch?

AWS Website has answers to all these ...READ MORE

answered Apr 19, 2018 in Cloud Computing by hemant
• 5,750 points
14 views
0 votes
1 answer
0 votes
1 answer

Can we host website on AWS EFS

You can host a website on a ...READ MORE

answered May 3, 2018 in Cloud Computing by DragonLord999
• 8,380 points
40 views
0 votes
1 answer

Can we hit a web page regularly in AWS & get a notifications if it fails or goes down

Yes, it is possible to do so. ...READ MORE

answered May 9, 2018 in Cloud Computing by Meci Matt
• 9,420 points

reshown Aug 15, 2018 by Vardhan 77 views
+2 votes
6 answers

Can we download an entire S3 bucket?

Use this command with the AWS CLI: aws ...READ MORE

answered Oct 25, 2018 in Cloud Computing by tryhard
657 views
+1 vote
1 answer

Can we use boto to generate last modified datetime of S3 objects

Okay this code snippet will help you ...READ MORE

answered Apr 10, 2018 in Cloud Computing by hemant
• 5,750 points
1,020 views