Create DynamoDB tables
order — PK — id — inventory — PK — code
default settings and create table
Create Downstream microservices
notification microservices
inventory microservices
shipment microservices
Basically, we should think of lambda interactions and give required permissions for execution roles.
goto lambda — execution role — add policy
inventory microservice
DynamoDB: Put
sqs: poller
notification-queue
inventory-queue
shipment-queue
sqs:poller
Create SQS queues
notification-queue, inventory-queue, shipment-queue
standart default created
Create Event Source Mapping Polling Invocation SQS and Lambdas
goto lambda functions
add trigger — sqs
notification->queue, inventory->queue, shipment->queue
As you can see that, we have successfully created lambda functions and sqs queues, in the next part, we are continue to create SNS topic.
Create SNS Topic
Create topic — standart — OrderTopic
create SNS Topic
Create subscriptions SNS — SQS subs
protocol — SQS, inventory-queue, shipment-queue
Create subscription