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

[5장] 웹 어댑터 구현하기 - 웹 소켓을 통해 실시간 데이터를 사용자 브라우저 보내는 가정 예시 #1

Open
kwanguuuu opened this issue Jan 13, 2022 · 1 comment
Labels
question Further information is requested

Comments

@kwanguuuu
Copy link
Contributor

kwanguuuu commented Jan 13, 2022

p.55 웹 소켓을 통해 실시간 데이터를 사용자의 브라우저로 보낸다고 가정해보자.
...
이 시나리오에서는 반드시 포트가 필요하다.

이해가 잘 안되는 부분이라서..포트가 반드시 있어야 하는 이유랑, 다이어그램 설명을 해주면 좋을것 같습니다!

@kwanguuuu kwanguuuu added the question Further information is requested label Jan 13, 2022
@mychum1
Copy link

mychum1 commented Jan 16, 2022

제 생각에는, 이 경우에 웹 어댑터는 수동적으로 데이터를 받는 입장인데 포트가 없다면 마치 서비스가 컨트롤러를 부르는 것 처럼 되기 때문에
포트를 웹 어댑터에서 구현하면 서비스는 포트 인터페이스를 호출하고 포트를 구현한 컨트롤러가 불러지는 식으로 되서 의존성 역전이 구현된 모습으로 흐름이 이어질 것 같아요
그래서 포트가 반드시 있어야 한다고 표현한 것 같습니다

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants