graph TB
%% KT AI 기반 소상공인 이벤트 자동 생성 서비스 - 논리 아키텍처 (간소화 버전)
%% Service Layer
subgraph "Service Layer"
UserSvc["User Service
• 회원가입/로그인
• 프로필 관리
• 사업자번호 검증"]
EventSvc["Event Service
• 이벤트 CRUD
• 플로우 오케스트레이션
• 상태 관리"]
AISvc["AI Service
• 트렌드 분석
• 3가지 이벤트 추천
• 비동기 Job 처리"]
ContentSvc["Content Service
• SNS 이미지 생성
• 3가지 스타일
• 비동기 Job 처리"]
DistSvc["Distribution Service
• 다중 채널 배포
• Circuit Breaker
• 배포 모니터링"]
PartSvc["Participation Service
• 이벤트 참여
• 참여자 관리
• 당첨자 추첨"]
AnalSvc["Analytics Service
• 실시간 대시보드
• 채널별 성과
• ROI 분석"]
end
%% Message Queue
Queue["Message Queue
• AI 작업 큐
• 이미지 생성 큐
• 배포 작업 큐"]
%% External System
External["외부시스템
• 국세청 API
• AI API
• 이미지 생성 API
• 배포 채널 APIs"]
%% Service to Queue
EventSvc -.->|AI 추천 요청| Queue
EventSvc -.->|이미지 생성 요청| Queue
Queue -.->|비동기 작업 처리| AISvc
Queue -.->|비동기 작업 처리| ContentSvc
%% Service to Service
EventSvc -->|배포 시작| DistSvc
PartSvc -->|이벤트 정보 조회| EventSvc
AnalSvc -->|이벤트 정보| EventSvc
AnalSvc -->|참여자 데이터| PartSvc
AnalSvc -->|배포 통계| DistSvc
%% Service to External
UserSvc -->|사업자번호 검증| External
AISvc -->|트렌드 분석/추천| External
ContentSvc -->|이미지 생성| External
DistSvc -->|다중 채널 배포| External
AnalSvc -->|채널별 통계| External
%% Styling
classDef service fill:#4ECDC4,stroke:#14B8A6,stroke-width:2px
classDef queue fill:#FB923C,stroke:#EA580C,stroke-width:2px
classDef external fill:#E5E7EB,stroke:#9CA3AF,stroke-width:2px
class UserSvc,EventSvc,AISvc,ContentSvc,DistSvc,PartSvc,AnalSvc service
class Queue queue
class External external