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

[채팅] redis pub/sub을 활용한 채팅 #93

Merged
merged 7 commits into from
May 25, 2024
Merged

Conversation

acceptor-gyu
Copy link
Contributor

작업 대상

  • 채팅 package

📄 작업 내용

  • 채팅 요청, 수락
  • 채팅방 목록 조회
  • 채팅 메시지 송수신
  • 채팅 메시지 목록 조회

🙋🏻 주의 사항

  • client가 iOS인 경우 테스트를 하기가 힘들어 추후 변경 가능

@acceptor-gyu acceptor-gyu requested a review from Minjae-An May 22, 2024 07:53
@acceptor-gyu acceptor-gyu self-assigned this May 22, 2024
@acceptor-gyu acceptor-gyu added the ✨ feat 새로운 기능 추가 label May 22, 2024
@acceptor-gyu acceptor-gyu linked an issue May 23, 2024 that may be closed by this pull request
private final ObjectMapper objectMapper;

/**
* redis pub/sub 메시지 처리 listender 설정
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* redis pub/sub 메시지 처리 listender 설정
* redis pub/sub 메시지 처리 listener 설정

오타 수정 부탁드립니다.

@@ -39,6 +47,44 @@ public class ChatService {
private final NotificationQuery notificationQuey;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
private final NotificationQuery notificationQuey;
private final NotificationQuery notificationQuery;

이전 PR에서 제대로 리뷰 되지 못한 것 같네요. 죄송합니다. 오타 수정 부탁드립니다.

Comment on lines 14 to 20
public ChatMessageResponse(long userId, String userName, String content, LocalDateTime sentAt) {

this.userId = userId;
this.userName = userName;
this.content = content;
this.sentAt = sentAt;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AllArgsConstructor로 간단히 표현할 수 있을 듯 한데, 직접 생성자를 작성하신 이유가 있을까요?

new ChatMessage(chatRoom, sender, receiver, request.getContent(), request.getSentAt()));
}

public List<ChatMessageResponse> getChatMessages(long userId, long roomId) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ChatServicegetChatMessages()acceptRequestedChat()의 경우 명시적인 트랜잭션 선언이 안 되어있는데 그 이유가 궁금합니다.

@Yeonba Yeonba deleted a comment from Minjae-An May 24, 2024
@acceptor-gyu acceptor-gyu requested a review from Minjae-An May 24, 2024 08:20
Copy link
Contributor

@Minjae-An Minjae-An left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

기본적인 부분들을 다 반영된 것 같아, approve 해놓겠습니다.
추후에 더 개선할 점을 같이 논의해보면 좋을 것 같습니다. 고생하셨습니다.

@acceptor-gyu acceptor-gyu merged commit eb01738 into dev May 25, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ feat 새로운 기능 추가
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BE] 채팅 기능을 위한 소켓, Redis 설정 추가
2 participants