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

[Refactor] Chat 메시지 기능 리팩토링 #84

Closed
10 tasks done
deveunhwa opened this issue Dec 2, 2024 · 0 comments
Closed
10 tasks done

[Refactor] Chat 메시지 기능 리팩토링 #84

deveunhwa opened this issue Dec 2, 2024 · 0 comments
Assignees
Labels
🔧 Refactor 코드 리팩토링 ✅ Test 테스트 관련

Comments

@deveunhwa
Copy link
Collaborator

deveunhwa commented Dec 2, 2024

⛏️ 리팩토링 할 기능

Chat 메시지 기능 리팩토링 및 테스트


🪜 변경 전 상황과 변경 이유

Chat 메시지 기능 테스트 시 에러 발생하였고, 추가적으로 구현 해야 할 코드와 리팩토링이 필요함을 인지,


✨ 변경 후 예상

  • 메시지 기능 문제 없이 동작

📝 작업 상세 내용

  • CORS 설정
  • 메시지 코드 리팩토링
  • 메시지 기능 테스트
  • WebSocket + STOMP
    • 실시간 메시지 전송을 위한 WebSocket 엔드포인트 구성
    • STOMP를 통한 pub/sub 구조 구현
    • 메시지 읽음 처리도 실시간으로 반영
  • Redis 활용
    • 세션 관리: 사용자의 온라인/오프라인 상태 관리
    • 최근 메시지 캐싱: 채팅방 목록에서 최근 메시지 빠르게 조회
    • Pub/Sub: 실시간 메시지 전달을 위한 메시지 브로커 역할
  • MongoDB 활용
    • 채팅 메시지 영구 저장
    • 메시지 조회 시 페이징 처리
    • 읽음 처리 상태 관리
  • 실시간성 향상
  • 확장성 확보
  • 성능 최적화
  • 유지보수 용이성 증가

@deveunhwa deveunhwa added ✅ Test 테스트 관련 🔧 Refactor 코드 리팩토링 labels Dec 2, 2024
@deveunhwa deveunhwa self-assigned this Dec 2, 2024
@deveunhwa deveunhwa changed the title [Refactor] Chat 메시지 기능 리팩토링 및 테스트 [Refactor] Chat 메시지 기능 리팩토링 Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔧 Refactor 코드 리팩토링 ✅ Test 테스트 관련
Projects
None yet
Development

No branches or pull requests

1 participant