Guria / aws-js-practitioner

https://aws-js-practitioner-dev.guria.dev/
1 stars 0 forks source link

Task 6. SQS & SNS, Async Microservices Communication #33

Open Guria opened 2 years ago

Guria commented 2 years ago

Task 6 assignment

Note for reviewers

Task 6 Artifacts

Task 6.1 (Pull Request #29)

:heavy_check_mark: Create a lambda function called catalogBatchProcess which will be triggered by an SQS event. :heavy_check_mark: Create an SQS queue called catalogItemsQueue, in the resources section. :heavy_check_mark: Configure the SQS to trigger lambda catalogBatchProcess with 5 messages at once via batchSize property. :heavy_check_mark: The lambda function should iterate over all SQS messages and create corresponding products in the products table.

Task 6.2 (Pull Request #31)

:heavy_check_mark: Update the importFileParser lambda function to send each CSV record into SQS. :heavy_check_mark: It is no longer log entries to CloudWatch.

Middify for non http handlers now use appropriate middlewares to log inputs, outputs and errors.

Task 6.3 (Pull Request #26)

:heavy_check_mark: Create an SNS topic and email subscriptions. :heavy_check_mark: Update the catalogBatchProcess lambda function to send an event to the SNS topic once it creates products. :heavy_plus_sign: catalogBatchProcess lambda is covered by unit tests :heavy_plus_sign: There are 2 email subscriptions with different filtering rules

Links to deployment

Deployments links removed since its outdated and there are newer tasks implemented.

Email SNS notifications screenshot: image