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,300 points
1,756 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,790 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,300 points
1,074 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,450 points
1,260 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,200 points
1,099 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,790 points
557 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,790 points
669 views
0 votes
1 answer
+1 vote
1 answer

Can we host website on AWS EFS

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

answered May 4, 2018 in Cloud Computing by DragonLord999
• 8,450 points
838 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
4,366 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,790 points
5,665 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP