Skip to content

Commit 7e842ad

Browse files
committed
add scheduled Lambda images
1 parent a9c57c8 commit 7e842ad

File tree

10 files changed

+6
-6
lines changed

10 files changed

+6
-6
lines changed

the-scalable-webhook/csharp/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ sure that your serverless resource doesn't scale up to an amount that it DO
1919
This is done by putting a queue between them and having a lambda with a throttled concurrency policy pull items off the queue and communicate with your
2020
serverless resource at a rate it can handle.
2121

22-
![Architecture](https://raw.githubusercontent.com/cdk-patterns/serverless/master/the-scalable-webhook/img/architecture.png)
22+
![Architecture](img/architecture.png)
2323

2424
<strong>NOTE:</strong> For this pattern in the cdk deployable construct I have swapped RDS for DynamoDB. <br /><br />Why? Because it is significantly cheaper/faster for developers to deploy and maintain, I also don't think we lose the essence of the pattern with this swap given we still do the pub/sub deduplication via SQS/Lambda and throttle the subscription lambda. RDS also introduces extra complexity in that it needs to be deployed in a VPC. I am slightly worried developers would get distracted by the extra RDS logic when the main point is the pattern. A real life implementation of this pattern could use RDS MySQL or it could be a call to an on-prem mainframe, the main purpose of the pattern is the throttling to not overload the scale-limited resource.
2525

the-scalable-webhook/java/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ sure that your serverless resource doesn&apos;t scale up to an amount that it DO
1919
This is done by putting a queue between them and having a lambda with a throttled concurrency policy pull items off the queue and communicate with your
2020
serverless resource at a rate it can handle.
2121

22-
![Architecture](https://raw.githubusercontent.com/cdk-patterns/serverless/master/the-scalable-webhook/img/architecture.png)
22+
![Architecture](img/architecture.png)
2323

2424
<strong>NOTE:</strong> For this pattern in the cdk deployable construct I have swapped RDS for DynamoDB. <br /><br />Why? Because it is significantly cheaper/faster for developers to deploy and maintain, I also don't think we lose the essence of the pattern with this swap given we still do the pub/sub deduplication via SQS/Lambda and throttle the subscription lambda. RDS also introduces extra complexity in that it needs to be deployed in a VPC. I am slightly worried developers would get distracted by the extra RDS logic when the main point is the pattern. A real life implementation of this pattern could use RDS MySQL or it could be a call to an on-prem mainframe, the main purpose of the pattern is the throttling to not overload the scale-limited resource.
2525

the-scheduled-lambda/csharp/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This is an example CDK stack demonstrating how to use AWS EventBridge to invoke a Lambda function on a schedule or using a cron expression. The Lambda function will then write the request ID to a DynamoDB table.
44

5-
![The Scheduled Lambda Architecture Diagram](../img/the-scheduled-lambda.png)
5+
![The Scheduled Lambda Architecture Diagram](img/the-scheduled-lambda.png)
66

77
**WARNING**: By default the EventBridge rule has been configured with a rate of 2 minutes, so you are able to quickly see the result of this example. I would strongly recommend destroying the stack using `cdk destroy TheScheduledLambdaStack` so that the scheduled run does not lead to AWS billing you for function invocations.
88

Loading

the-scheduled-lambda/java/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This is an example CDK stack demonstrating how to use AWS EventBridge to invoke a Lambda function on a schedule or using a cron expression. The Lambda function will then write the request ID to a DynamoDB table.
44

5-
![The Scheduled Lambda Architecture Diagram](../img/the-scheduled-lambda.png)
5+
![The Scheduled Lambda Architecture Diagram](img/the-scheduled-lambda.png)
66

77
**WARNING**: By default the EventBridge rule has been configured with a rate of 2 minutes, so you are able to quickly see the result of this example. I would strongly recommend destroying the stack using `cdk destroy TheScheduledLambdaStack` so that the scheduled run does not lead to AWS billing you for function invocations.
88

Loading

the-scheduled-lambda/python/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This is an example CDK stack demonstrating how to use AWS EventBridge to invoke a Lambda function on a schedule or using a cron expression. The Lambda function will then write the request ID to a DynamoDB table.
44

5-
![The Scheduled Lambda Architecture Diagram](../img/the-scheduled-lambda.png)
5+
![The Scheduled Lambda Architecture Diagram](img/the-scheduled-lambda.png)
66

77
Once deployed, this stack will product a Lambda function, DynamoDB table, and an EventBridge rule.
88

Loading

the-scheduled-lambda/typescript/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This is an example CDK stack demonstrating how to use AWS EventBridge to invoke a Lambda function on a schedule or using a cron expression. The Lambda function will then write the request ID to a DynamoDB table.
44

5-
![The Scheduled Lambda Architecture Diagram](../img/the-scheduled-lambda.png)
5+
![The Scheduled Lambda Architecture Diagram](img/the-scheduled-lambda.png)
66

77
**WARNING**: By default the EventBridge rule has been configured with a rate of 2 minutes, so you are able to quickly see the result of this example. I would strongly recommend destroying the stack using `cdk destroy TheScheduledLambdaStack` so that the scheduled run does not lead to AWS billing you for function invocations.
88

Loading

0 commit comments

Comments
 (0)