본문으로 건너뛰기

아키텍처 개요

Multi-Region Shopping Mall은 AWS 기반의 글로벌 규모 이커머스 플랫폼입니다. us-east-1 (Primary)과 us-west-2 (Secondary) 두 리전에 걸쳐 Active-Active 구성으로 운영되며, Write-Primary/Read-Local 패턴을 통해 강력한 일관성과 낮은 지연시간을 동시에 달성합니다.

설계 목표

목표타겟달성 방법
가용성99.99% uptime멀티리전 Active-Active, 자동 페일오버
읽기 지연시간sub-100msRead-Local 패턴, ElastiCache, CloudFront CDN
쓰기 일관성Strong consistencyWrite-Primary 패턴, Aurora Global DB
확장성10x spike handlingEKS + Karpenter 자동 스케일링, MSK 파티셔닝
복구RPO <1s, RTO <10m글로벌 데이터 복제, 자동화된 DR 절차

글로벌 트래픽 플로우

리전별 배포 아키텍처

서비스 도메인 구성

20개의 마이크로서비스는 5개의 도메인으로 분류됩니다.

서비스별 기술 스택

도메인서비스언어/프레임워크주요 데이터 스토어
CoreAPI GatewayGo/GinElastiCache (세션)
Product CatalogPython/FastAPIDocumentDB, OpenSearch
SearchGo/GinOpenSearch
CartGo/GinElastiCache
OrderJava/SpringAurora PostgreSQL
PaymentJava/SpringAurora PostgreSQL
InventoryGo/GinAurora PostgreSQL, ElastiCache
UserUser AccountJava/SpringAurora PostgreSQL
User ProfilePython/FastAPIDocumentDB
WishlistPython/FastAPIDocumentDB
ReviewPython/FastAPIDocumentDB, OpenSearch
FulfillmentShippingPython/FastAPIAurora PostgreSQL
WarehouseJava/SpringAurora PostgreSQL
ReturnsJava/SpringAurora PostgreSQL
BusinessPricingJava/SpringAurora PostgreSQL, ElastiCache
RecommendationPython/FastAPIDocumentDB, ElastiCache
NotificationPython/FastAPIDocumentDB, MSK
SellerJava/SpringAurora PostgreSQL, DocumentDB
PlatformEvent BusGo/GinMSK Kafka
AnalyticsPython/FastAPIOpenSearch, Aurora PostgreSQL

핵심 아키텍처 패턴

1. Write-Primary / Read-Local

2. Event-Driven Architecture

3. CQRS (Command Query Responsibility Segregation)

인프라 리소스 요약

리소스us-east-1us-west-2역할
VPC10.0.0.0/1610.1.0.0/16네트워크 격리
Subnets9 (3 tier x 3 AZ)9 (3 tier x 3 AZ)계층별 분리
EKS NodesKarpenter 관리Karpenter 관리워크로드 실행
AuroraPrimary WriterRead Replica관계형 데이터
DocumentDBPrimarySecondary문서 데이터
ElastiCachePrimaryReplica캐시/세션
MSK3 brokers3 brokers이벤트 스트리밍
OpenSearch3 nodes3 nodes검색/로깅

다음 단계