Skip to content

V2 Scale-Out: 세션/캐시/주문 분산 환경 재설계 및 README 전면 개선#14

Merged
DOGYUN0903 merged 38 commits into
devfrom
v2/scale-out
Mar 16, 2026
Merged

V2 Scale-Out: 세션/캐시/주문 분산 환경 재설계 및 README 전면 개선#14
DOGYUN0903 merged 38 commits into
devfrom
v2/scale-out

Conversation

@DOGYUN0903
Copy link
Copy Markdown
Owner

Summary

  • 세션: In-Memory → Spring Session + Redis로 외부화, 서버 간 세션 공유
  • 캐시: Caffeine 로컬 캐시 → Redis 공용 캐시로 전환, 서버 간 일관성 확보
  • 주문: 비관적 락 → Redisson 비교 실험 → Redis Lua Script 원자 차감 채택
  • 인프라: NCP Load Balancer + App Server 3대 Scale-Out, 모니터링 서버 분리
  • README: 기술스택 V2 추가, 아키텍처 진화(MVP→V1→V2), 유저 플로우, V1 vs V2 최종 비교 섹션 신설

V1 vs V2 핵심 결과 (300명 시나리오)

지표 V1 V2 변화
전체 TPS ~12.3 94.3/sec 7.7배 증가
딜 상세 Avg 5,447ms 272ms 95% 감소
HikariCP Active 0 Timeout 0 (3대) 완전 해소

DOGYUN0903 and others added 30 commits March 10, 2026 12:38
- deploy.yml: 모니터링 서버 + App 서버 3대 병렬 배포 (proxy 경유)
- docker-compose.prod.yml: App 전용으로 변경 (모니터링 분리)
- monitoring/: Prometheus + Grafana 전용 docker-compose 추가
- prometheus 설정을 monitoring 프로젝트로 이관

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Grafana 대시보드에서 application 라벨 필터링이 동작하도록
management.metrics.tags.application 설정 추가

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
DOGYUN0903 and others added 8 commits March 14, 2026 01:37
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- 기술스택에 V2 기술 추가 (Spring Session, Redis, NCP LB)
- 시스템 아키텍처 진화 섹션 (MVP → V1 → V2)
- 유저 플로우 다이어그램 추가
- 구현 도메인에 Deal 추가, ERD Enum에 DealStatus/DealOrderStatus 추가
- V2 테스트 환경 상세화
- V1 vs V2 최종 비교 별도 섹션 신설

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
flash-deal Ready Ready Preview, Comment Mar 16, 2026 5:43am

@DOGYUN0903 DOGYUN0903 merged commit f5b66a0 into dev Mar 16, 2026
4 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant