Feat(#271): 질문 id와 solved 요청을 받으면, 해당 질문에 ACK 요청을 보낸다. #273
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
작업 개요
close #271 발표자에게 질문 해결 응답을 받으면, 해당 질문을 완료 처리한다.
작업 사항
redis streams의 consumer group을 사용해서, 질문이 해결되면 pending list에 존재하는 해당 질문을 ACK 요청해서, 추후 발표자 재 접속 시 해결된 질문을 제외하고 재전송 할 수 있도록 설정한다.
#253 PR에서 구현했던 updateQuestionStatus() 함수를 사용하여 진행했습니다.
고민한 점들
발표자가 질문 해결하면, 클라이언트에게 위와 같은 형태로 메시지를 받도록 구성했습니다.