Project page: https://github.com/users/izharishaksa/projects/6/views/1
Implementing Event Driven Architecture and use Domain Driven Design approach.
- Run
docker-compose up
- Please wait until all services running
- Demonstrate using
ecommerce-system-example.postman_collection.json
- 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 updatedORDER_REJECTED
is consumed byorder-service
, status is updated