implementing-microservices / event-sourcing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

event-sourcing

Problem definitions inspired by: https://docs.microsoft.com/en-us/azure/architecture/patterns/event-sourcing

Microservices:

Shopping Cart Microservice

  1. Jobs-To-Be Done
  2. Actions

Emits following events:

  1. an item added to a user cart
    • user_id
    • cart_id
    • product_id
    • price
    • count
    • productOptions
  2. an item removed from a user cart
  3. shipping information updated
  4. shipping information removed
  5. payment information added
  6. payment information removed

Listens to following events:

  1. ms-payment.payment-processed

Payment Processing Microservice (ms-payment)

Emits following events:

  1. Payment Processed. Data elements:
    • cart_id
  2. Payment Failed
    • cart_id

Past Orders Microservice

Listens to events from Shopping Cart to create query-able, materialized view. Returns reverse-chronologically ordered list of orders

About

License:Other