Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Design: Microservices Architecture with Fan-Out Publish/Subscribe Messaging Pattern

Anjali Sharma answered on February 1, 2023 Popularity 3/10 Helpfulness 1/10

Contents


More Related Answers

  • How messaging works in microservices
  • How messaging works in microservices
  • Design: Microservices Architecture with Service Aggregator, Registry/Discovery Pattern
  • Fan-Out Publish/Subscribe Messaging Pattern
  • Which of the following tools can be used for implementing the Publish/Subscribe Pattern in microservices ?
  • If you design e-commerce microservice application, how you apply Publish/Subscribe Messaging Pattern ?
  • Application Integration Patterns for Microservices

  • Design: Microservices Architecture with Fan-Out Publish/Subscribe Messaging Pattern

    0

    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

    https://medium.com/aws-lambda-serverless-developer-guide-with-hands/publish-subscribe-fan-out-pattern-in-serverless-architectures-using-sns-sqs-and-lambda-bccaa3abac9e

    Popularity 3/10 Helpfulness 1/10 Language javascript
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Feb 01 2023
    Anjali Sharma
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.