mirror of
https://github.com/hwanny1128/HGZero.git
synced 2025-12-06 16:06:23 +00:00
- 총 21개 PlantUML 파일 생성 (Meeting 10개, AI 6개, STT 2개, Notification 3개) - 서브 에이전트를 활용한 병렬 설계로 효율성 극대화 - 모든 시나리오는 유저스토리 및 외부 시퀀스와 1:1 매칭 - Controller → Service → Repository 계층 구조 명확히 표현 - Redis Cache, Azure Event Hubs 등 인프라 컴포넌트 표시 - 동기(→)/비동기(-->) 구분 명확 - 외부 참여자 <<E>> 표시 적용 - PlantUML 문법 검사 및 오류 수정 완료 (13개 파일 수정) - par/and 블록 문법 오류 수정 - return 형식 적용으로 참여자 없는 화살표 오류 해결 설계 특징: - 캐시 전략: Cache-Aside 패턴, TTL 관리, 즉시 무효화 - 비동기 처리: Azure Event Hubs 기반 이벤트 구독 - 실시간 협업: WebSocket 기반 동기화, 변경 델타 전송 - 데이터 일관성: 버전 관리, 양방향 연결, 트랜잭션 처리 추가 파일: - claude/sequence-inner-design.md: 내부시퀀스설계 가이드 - tools/check-plantuml.ps1: PlantUML 문법 검사 스크립트 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
149 lines
4.0 KiB
Plaintext
149 lines
4.0 KiB
Plaintext
@startuml meeting-회의시작
|
|
!theme mono
|
|
|
|
title Meeting Service - 회의시작 내부 시퀀스
|
|
|
|
participant "MeetingController" as Controller
|
|
participant "MeetingService" as Service
|
|
participant "SessionService" as SessionService
|
|
participant "MeetingRepository" as MeetingRepo
|
|
participant "SessionRepository" as SessionRepo
|
|
database "Meeting DB<<E>>" as DB
|
|
database "Redis Cache<<E>>" as Cache
|
|
queue "Azure Event Hubs<<E>>" as EventHub
|
|
|
|
[-> Controller: POST /meetings/{meetingId}/start
|
|
activate Controller
|
|
|
|
note over Controller
|
|
경로 변수: meetingId
|
|
사용자 정보: userId, userName, email
|
|
end note
|
|
|
|
Controller -> Controller: meetingId 유효성 검증
|
|
|
|
Controller -> Service: startMeeting(meetingId, userId)
|
|
activate Service
|
|
|
|
' 회의 정보 조회
|
|
Service -> Cache: GET meeting:info:{meetingId}
|
|
activate Cache
|
|
Cache --> Service: 캐시 조회 결과
|
|
deactivate Cache
|
|
|
|
alt Cache Miss
|
|
Service -> MeetingRepo: findById(meetingId)
|
|
activate MeetingRepo
|
|
MeetingRepo -> DB: SELECT * FROM meetings\nWHERE id = ?
|
|
activate DB
|
|
DB --> MeetingRepo: 회의 정보
|
|
deactivate DB
|
|
MeetingRepo --> Service: Meeting
|
|
deactivate MeetingRepo
|
|
|
|
Service -> Cache: SET meeting:info:{meetingId}
|
|
activate Cache
|
|
Cache --> Service: 캐싱 완료
|
|
deactivate Cache
|
|
end
|
|
|
|
note over Service
|
|
비즈니스 규칙 검증:
|
|
- 회의가 존재하는지 확인
|
|
- 회의 시작 권한 확인 (생성자만)
|
|
- 회의 상태 확인 (SCHEDULED만 시작 가능)
|
|
- 회의 시작 시간 10분 전부터 가능
|
|
end note
|
|
|
|
Service -> Service: 권한 검증\n(생성자 또는 참석자)
|
|
|
|
Service -> Service: 회의 상태 확인
|
|
|
|
alt 회의가 이미 진행 중
|
|
Service --> Controller: 409 Conflict\n이미 진행 중인 회의
|
|
return 409 Conflict
|
|
else 시작 가능
|
|
Service -> Service: 회의 세션 생성
|
|
|
|
' 세션 저장
|
|
Service -> SessionRepo: createSession(meetingId, userId)
|
|
activate SessionRepo
|
|
|
|
note over SessionRepo
|
|
세션 정보:
|
|
- sessionId (UUID)
|
|
- meetingId
|
|
- startedBy (userId)
|
|
- startedAt (현재시각)
|
|
- status: ACTIVE
|
|
end note
|
|
|
|
SessionRepo -> DB: INSERT INTO meeting_sessions\n(id, meetingId, startedBy, startedAt, status)
|
|
activate DB
|
|
DB --> SessionRepo: 세션 생성 완료
|
|
deactivate DB
|
|
SessionRepo --> Service: Session
|
|
deactivate SessionRepo
|
|
|
|
' 회의 상태 업데이트
|
|
Service -> MeetingRepo: updateStatus(meetingId, "IN_PROGRESS")
|
|
activate MeetingRepo
|
|
MeetingRepo -> DB: UPDATE meetings\nSET status = 'IN_PROGRESS',\n actualStartTime = NOW()\nWHERE id = ?
|
|
activate DB
|
|
DB --> MeetingRepo: 업데이트 완료
|
|
deactivate DB
|
|
MeetingRepo --> Service: 업데이트 성공
|
|
deactivate MeetingRepo
|
|
|
|
' 캐시 무효화
|
|
Service -> Cache: DELETE meeting:info:{meetingId}
|
|
activate Cache
|
|
Cache --> Service: 삭제 완료
|
|
deactivate Cache
|
|
|
|
' 회의록 초안 생성 (빈 회의록)
|
|
Service -> Service: 회의록 초안 생성
|
|
|
|
Service -> MeetingRepo: createMinutesDraft(meetingId, sessionId)
|
|
activate MeetingRepo
|
|
MeetingRepo -> DB: INSERT INTO minutes\n(id, meetingId, sessionId, status, createdAt)\nVALUES (?, ?, ?, 'DRAFT', NOW())
|
|
activate DB
|
|
DB --> MeetingRepo: 회의록 생성 완료
|
|
deactivate DB
|
|
MeetingRepo --> Service: Minutes
|
|
deactivate MeetingRepo
|
|
|
|
note over Service
|
|
비동기 이벤트 발행:
|
|
- STT 서비스에 녹음 시작 요청
|
|
- 참석자에게 회의 시작 알림
|
|
- 실시간 협업 WebSocket 준비
|
|
end note
|
|
|
|
' 이벤트 발행
|
|
Service -> EventHub: publish(MeetingStarted)\n{\n meetingId, sessionId,\n startedAt, participants\n}
|
|
activate EventHub
|
|
EventHub --> Service: 발행 완료
|
|
deactivate EventHub
|
|
|
|
Service --> Controller: SessionResponse
|
|
deactivate Service
|
|
|
|
note over Controller
|
|
응답 데이터:
|
|
{
|
|
"sessionId": "uuid",
|
|
"meetingId": "uuid",
|
|
"status": "IN_PROGRESS",
|
|
"startedAt": "2025-01-23T14:00:00",
|
|
"minutesId": "uuid"
|
|
}
|
|
end note
|
|
|
|
return 201 Created\nSessionResponse
|
|
end
|
|
|
|
deactivate Controller
|
|
|
|
@enduml
|