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

feat: Connection Pool 구현 #23

Open
Hong-Study opened this issue Feb 18, 2024 · 0 comments
Open

feat: Connection Pool 구현 #23

Hong-Study opened this issue Feb 18, 2024 · 0 comments

Comments

@Hong-Study
Copy link
Collaborator

기존 구현하려던 방식

  • 소켓 재사용을 통해 구현하려고 하였음.
socket.disconnect(reusesocket: true);

변경된 방식

  • AliveCount를 도입, 카운팅을 통해서 소켓 생성 및 재사용을 함
  • 소켓을 재 사용하지 않고 죽으면 버리고, AliveCount를 줄임
  • 만약 AliveCount가 0가 될 경우, Health Check Timer가 작동되며, EndPoint가 잠시 무력화 상태가 됨.
  • Health Check Timer에서 하나라도 연결 될 경우 다시 EndPoint가 살아남.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant