ecommerce-system-example
ecommerce-system-example copied to clipboard
Implementing Event Driven Architecture and use Domain Driven Design approach. Technology: Go, Kafka, Docker.
Simple Ecommerce System
Project page: https://github.com/users/izharishaksa/projects/6/views/1
Implementing Event Driven Architecture and use Domain Driven Design approach.
Run instructions
- Run
docker-compose up
- Please wait until all services running
- Demonstrate using
ecommerce-system-example.postman_collection.json
Test Case Scenario
- Create product
POST /products
- Register customer
POST /customers
- Create order
POST /orders
, order status isplaced
, eventORDER_PLACED
is sent -
ORDER_PLACED
is consumed byinventory-service
, if inventory is enough or product is exist, eventORDER_CREATED
is sent, otherwiseORDER_REJECTED
. Stock and sold are updated accordingly. -
ORDER_CREATED
is consumed byorder-service
, status and total price is updated -
ORDER_REJECTED
is consumed byorder-service
, status is updated