Skip to content

Latest commit

Β 

History

History
34 lines (20 loc) Β· 1.55 KB

README.md

File metadata and controls

34 lines (20 loc) Β· 1.55 KB

Nodejs Event Driven Microservices Orchestrator for Ecommerce orders

I built this project to get my hands familiar with both SQS and SNS.

Flow ♻️

  1. A customer completes an order.
  2. OrderManagementLambda receives the order details and sends them to OrderQueueSQS.
  3. PaymentProcessingLambda retrieves the order from OrderQueueSQS and processes the payment.
  4. The result of the payment is published to PaymentStatusSNS.
  5. InventoryManagementLambda, subscribed to PaymentStatusSNS, updates the inventory and publishes to InventoryStatusSNS.
  6. NotificationServiceLambda, subscribed to InventoryStatusSNS, sends an email to the customer confirming the order.

Visualization πŸ‘Ύ

image of architecture

AWS SES πŸ“§

I also had to setup AWS SES in order to send emails.

This could also be done via Terraform.

After provisioning the resources, I got a confirmation email.

AWS SES Sandbox

I was using the Sandbox, so to send emails to anyone I would have to get out of it.

I would send emails to my personal email using different variations with the plus signhttps://support.google.com/a/users/answer/9282734?hl=en#.

Email image πŸŽ‰

Screenshot 2024-01-30 at 17 24 45