-
Notifications
You must be signed in to change notification settings - Fork 1
♻️ refactor: chatgateway의 관심사 분리, 채팅 비즈니스 로직을 chatservice로 구현 #3
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다! 궁금한 사안 하나 남겨뒀는데 확인 부탁드려요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
확인했습니다!
몇가지 질문사항 남겨두었으니 확인해주시면 감사하겠습니다 🙇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
코멘트 답변해주셔서 감사합니다~ 고생하셨습니다 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
확인했습니다! 고생하셨어요
🔨 테스크
chatgateway의 관심사 분리
기존의 chatgateway에는 여러 책임이 있었습니다.
gateway는 소켓 연결 관리와 메세지 이벤트 핸들링, 2가지의 책임을 지도록 관심사를 분리했습니다.
이렇게 함으로써 기존 코드보다 유지보수와 확장에 이점을 가질 수 있다고 생각했습니다.
나중에 service 레이어도 비대해지면 Redis와 관련된 부분을 모두 추출하여, repository 계층으로 분리할 수 있을 것 같습니다.
📋 작업 내용
emitMidnightMessage같은 메서드는handleDateMessage로 수정,getIp는 클라이언트 이름 설정에만 쓰이기에 private 전환 등...📷 스크린 샷(선택 사항)