Skip to content

πŸ“Œ Nodejs Event Driven Microservices Orchestrator βš“ for Ecommerce orders

Notifications You must be signed in to change notification settings

ahmedkhaled4d/aws-event-driven-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

About

πŸ“Œ Nodejs Event Driven Microservices Orchestrator βš“ for Ecommerce orders

Resources

Stars

Watchers

Forks

Packages

No packages published