-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
This is a very common and powerful Serverless pattern. You can see an example of it implemented here https://github.com/brettstack/civ6-play-by-cloud-turn-notifier.
Acceptance Criteria:
- Add a Lambda Function connected to the
POST /sqsendpoint that stores the body of the request on the SQS Queue (see the Civ repo for implementation, though it should be simplified as much as possible) - Render two buttons to the UI that invoke the API endpoint
POST /sqs- one should send a valid message, and the other should send a malformed message (to experiment with DLQs) - Add a Lambda Function connected to the SQS Queue that increments a value against the current logged in user. The Lambda Function should use the https://www.npmjs.com/package/@middy/sqs-partial-batch-failure middleware similar to the Civ repo and should throw when it detects a malformed SQS message
- Alarms should be configured for the
ApproximateAgeOfOldestMessageandNumberOfMessagesSentmetrics on the DLQ. - The
ApproximateAgeOfOldestMessagealarm should be configured as a rollback trigger Add CloudFormation Rollback Alarms/Triggers #11 - Software architecture diagram is updated
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed