Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

[WEAV-000] 채팅 메시지 코루틴 리팩터링 #247

Merged
merged 9 commits into from
Apr 19, 2024
Merged

Conversation

waterfogSW
Copy link
Member

@waterfogSW waterfogSW commented Apr 18, 2024

  • 채팅 메시지 엔티티 메시지 큐에 넣고 저장하는 부분을 비동기적으로 병렬로 처리 가능하도록 리팩터링 했어요
graph TD
    A[SendChatMessageService] -->|publish| B(ChatMessageRedisProducer)
    B -->|이벤트 발행| C{Redis}
    C -->|이벤트 수신| D(ChatMessageRedisConsumer)
    D -->|publishEvent| E(ApplicationEventPublisher)
    E -->|handleChatMessage| F[ChatMessageHandler]
    F -->|convertAndSend| G(SimpMessageSendingOperations)
    G -->|브로드캐스트| H((User))
    A -->|save| I(ChatMessageRepository)
Loading

@waterfogSW waterfogSW added the refactor Refactoring code label Apr 18, 2024
@waterfogSW waterfogSW self-assigned this Apr 18, 2024
@waterfogSW waterfogSW closed this Apr 18, 2024
@waterfogSW waterfogSW reopened this Apr 18, 2024
@waterfogSW waterfogSW changed the title [WEAV-000] 채팅 메시지 브로드 캐스팅 코루틴 리팩터링 [WEAV-000] 채팅 메시지 코루틴 리팩터링 Apr 18, 2024
Copy link

sonarcloud bot commented Apr 19, 2024

@waterfogSW waterfogSW enabled auto-merge (squash) April 19, 2024 04:09

fun count(): Int = bucket.size

fun clear() = bucket.clear()
Copy link
Collaborator

Choose a reason for hiding this comment

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

p4) 리팩토링 의견 요거 저희 추상화해버릴까요? spy repo는 다 필요해보여서 ㅋㅋ 혹은 test용으로 beforeTest / afterTest 같은 메서드 만들어서 콜해도 되구?

@waterfogSW waterfogSW merged commit d301ed3 into main Apr 19, 2024
3 checks passed
@waterfogSW waterfogSW deleted the feat/WEAV-000 branch April 19, 2024 07:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
refactor Refactoring code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants