Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ 가맹점 서버 구현 ] RabbitMQ 적용 #17

Open
IMWoo94 opened this issue Feb 14, 2024 · 1 comment
Open

[ 가맹점 서버 구현 ] RabbitMQ 적용 #17

IMWoo94 opened this issue Feb 14, 2024 · 1 comment

Comments

@IMWoo94
Copy link
Owner

IMWoo94 commented Feb 14, 2024

#14

배달 플랫폼 가맹점 서버 구현

비동기 처리 방식을 위한 Meesage Queue 적용

image

RabbitMQ 적용

  • Direct Exchange 방식으로 "delivery.exchange" 생성
  • "delivery.queue" 와 "delivery.exchange" 바인딩 처리 하고, delivery.key 로 setting
image

API Server Producer

  • 주문 등록 시 응답 이전에 RabbitMQ 의 "delivery.exchange" Exchange 에 데이터 전송 구현

Store-admin Server Consumer

  • API Server 측에서 주문 접수 시 Message 를 전달하고 이를 Conumer 측에서 전달 받도록 구현
  • @RabbitListener 를 통해 Queue 지정
@IMWoo94
Copy link
Owner Author

IMWoo94 commented Feb 25, 2024

완료

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant