Skip to content

Task 6 (SQS & SNS, Async Microservices Communication)#5

Open
Tati-Moon wants to merge 10 commits intomainfrom
task-6
Open

Task 6 (SQS & SNS, Async Microservices Communication)#5
Tati-Moon wants to merge 10 commits intomainfrom
task-6

Conversation

@Tati-Moon
Copy link
Owner

@Tati-Moon Tati-Moon commented Jul 6, 2024

Task 6

https://github.com/rolling-scopes-school/aws/blob/main/aws-developer/06_async_microservices_communication/task.md

When exporting data, the values are either updated or added

Evaluation Criteria

  • 100/100

Task 6.1

  • Created a lambda function called catalogBatchProcess under the Product Service, which is triggered by an SQS event.
  • Created an SQS queue called catalogItemsQueue in the AWS CDK Stack.
  • Configured the SQS to trigger the lambda catalogBatchProcess with 5 messages at once via the batchSize property.
  • The lambda function iterates over all SQS messages and creates corresponding products in the products table.

Task 6.2

  • Updated the importFileParser lambda function in the Import Service to send each CSV record into SQS.
  • It no longer logs entries from the readable stream to CloudWatch.

Task 6.3

  • Created an SNS topic createProductTopic and an email subscription in the AWS CDK Stack of the Product Service.
  • Created a subscription for this SNS topic with an email endpoint type, using your own email.
  • Updated the catalogBatchProcess lambda function in the Product Service to send an event to the SNS topic once it creates products.

image

image

Additional Tasks

image

image

  • Set a Filter Policy for the SNS createProductTopic in the AWS CDK Stack and created an additional email subscription to distribute messages to different emails depending on the filter for any product attribute.

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant