Skip to content

feat: Connection Pool 구현 #23

@Hong-Study

Description

@Hong-Study

기존 구현하려던 방식

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

변경된 방식

  • AliveCount를 도입, 카운팅을 통해서 소켓 생성 및 재사용을 함
  • 소켓을 재 사용하지 않고 죽으면 버리고, AliveCount를 줄임
  • 만약 AliveCount가 0가 될 경우, Health Check Timer가 작동되며, EndPoint가 잠시 무력화 상태가 됨.
  • Health Check Timer에서 하나라도 연결 될 경우 다시 EndPoint가 살아남.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions