mirror of
https://github.com/hwanny1128/HGZero.git
synced 2025-12-06 09:06:24 +00:00
전체 5개 마이크로서비스의 내부 처리 흐름을 상세히 설계 [추가된 파일] - Meeting Service: 6개 시나리오 (검증완료, 실시간수정동기화, 최종회의록확정, 충돌해결, 템플릿선택, 회의록목록조회) - STT Service: 2개 시나리오 (음성녹음인식, 텍스트변환) - User Service: 2개 시나리오 (사용자인증, 대시보드조회) - Notification Service: 1개 시나리오 (알림발송) [주요 설계 내용] - Clean Architecture 적용 (Controller → Service → Domain → Repository) - Cache-Aside 패턴 (Redis 기반 성능 최적화) - Event-Driven Architecture (Azure Event Hub) - Real-time Collaboration (WebSocket + OT 알고리즘) - RAG 기능 (맥락 기반 AI) [검증 결과] - PlantUML 문법 검증: 모든 파일 통과 ✅ - 유저스토리 매칭: 100% 일치 ✅ - 아키텍처 패턴 준수: 완료 ✅ [병렬 처리] - 서브 에이전트 3개로 병렬 작업 수행 - Meeting Service, AI Service, STT/User/Notification 동시 설계 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
86 lines
1.9 KiB
Plaintext
86 lines
1.9 KiB
Plaintext
@startuml
|
|
!theme mono
|
|
|
|
title 실시간 수정 동기화 내부 시퀀스
|
|
|
|
participant "WebSocket<<E>>" as WebSocket
|
|
participant "CollaborationController" as Controller
|
|
participant "CollaborationService" as Service
|
|
participant "TranscriptService" as TranscriptService
|
|
participant "OperationalTransform" as OT
|
|
database "Redis Cache<<E>>" as Cache
|
|
queue "Event Hub<<E>>" as EventHub
|
|
|
|
WebSocket -> Controller: onMessage(editOperation)
|
|
activate Controller
|
|
|
|
Controller -> Service: processEdit(meetingId, operation, userId)
|
|
activate Service
|
|
|
|
Service -> Cache: get(meeting:{id}:session)
|
|
activate Cache
|
|
note right of Cache
|
|
활성 세션 정보:
|
|
- 참여 사용자 목록
|
|
- 현재 문서 버전
|
|
- 락 정보
|
|
end note
|
|
Cache --> Service: sessionData
|
|
deactivate Cache
|
|
|
|
Service -> OT: transform(operation, concurrentOps)
|
|
activate OT
|
|
note right of OT
|
|
Operational Transform:
|
|
- 동시 편집 충돌 해결
|
|
- 작업 순서 정렬
|
|
- 일관성 보장
|
|
end note
|
|
OT --> Service: transformedOp
|
|
deactivate OT
|
|
|
|
Service -> TranscriptService: applyOperation(meetingId, transformedOp)
|
|
activate TranscriptService
|
|
|
|
TranscriptService -> TranscriptService: updateContent()
|
|
note right of TranscriptService
|
|
내용 업데이트:
|
|
- 버전 증가
|
|
- 변경 사항 적용
|
|
- 임시 저장
|
|
end note
|
|
|
|
TranscriptService --> Service: updatedVersion
|
|
deactivate TranscriptService
|
|
|
|
Service -> Cache: set(meeting:{id}:version, versionData)
|
|
activate Cache
|
|
note right of Cache
|
|
버전 정보 업데이트
|
|
최신 상태 유지
|
|
end note
|
|
Cache --> Service: OK
|
|
deactivate Cache
|
|
|
|
Service ->> EventHub: publish(EditOperationEvent)
|
|
activate EventHub
|
|
note right of EventHub
|
|
다른 참여자에게 전파:
|
|
- WebSocket 브로드캐스트
|
|
- 실시간 동기화
|
|
end note
|
|
deactivate EventHub
|
|
|
|
Service --> Controller: SyncResponse
|
|
deactivate Service
|
|
|
|
Controller --> WebSocket: broadcast(editOperation)
|
|
deactivate Controller
|
|
|
|
note over WebSocket
|
|
다른 클라이언트에게
|
|
실시간 전송
|
|
end note
|
|
|
|
@enduml
|