Skip to content

easyloveu/reqres_products

 
 

Repository files navigation

Req/Res 연동

  1. 주문 생성 http localhost:8081/orders productId=1 quantity=3 customerId="sunghan.lee@hanwha.com" customerName="Lee" customerAddr="seoul" image

  2. 배송 확인 http localhost:8082/deliveries image

  3. 부하 툴을 사용하여 주문 생성 siege -c2 -t10S -v --content-type "application/json" 'http://localhost:8081/orders POST {"productId":2, "quantity":1}

<부하 전> image

<부하 후> image

  1. fallback 처리를 하여 유연하게 대처 <fallback 처리 후> image

이벤트 Publish / Subscribe

  1. order 서비스의 이벤트 Publish http localhost:8081/orders productId=1 productName="MSA Book" qty=3

OrderApplication에서 Run 실행 후 kafka Consumer에서 이벤트 확인 image

image

image

CQRS 패턴에 의한 데이터 통합

  1. Kafka 확인 image

  2. 주문상태 배송상태 조회 image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 92.0%
  • Groovy 6.4%
  • Dockerfile 1.6%