파사드
하위 시스템 인터페이스 집합에 단일 고수준 인터페이스를 제공해 사용을 쉽게 하는 패턴
구조와 동작 원리
구성 요소와 배치 원칙 (조사 기반 개념 설명 · 연결 순서나 토폴로지는 특정하지 않음)
Facade 클래스와 subsystem 객체들로 구성; facade가 호출 대상·인자·순서를 알고 고수준 메서드를 제공
근거 미확인
복잡한 subsystem을 직접 쓰지 않고 단순 인터페이스로 접근하게 하여 클라이언트 부담을 줄임
기대 효과
subsystem 간 통신·의존 최소화로 복잡도 감소
트레이드오프
단순 전달 facade는 proxy with extra steps; 간접 계층만 증가
메서드명만 같고 단순 위임하는 facade는 부적합; 호출자가 여전히 순서·에러·내부 타입을 알아야 하면 이점 없음
운영 및 적용 가이드
종합 설명 · 원문 인용으로 검증된 항목과 구분됩니다. 실제 적용 전 확인이 필요합니다.
언제 사용하는가
여러 외부 API·데이터 소스나 복잡한 하위 시스템을 단일 고수준 인터페이스로 묶어 클라이언트가 내부 호출 순서와 세부 구현을 몰라도 되게 할 때 사용한다. 레거시 전환, BFF/API Gateway, 클라우드 SDK 공통 래퍼, 내부 개발자 플랫폼에도 적용한다.
시나리오
중견 유통사가 30개 매장과 온라인 주문을 처리하는 백엔드를 레거시 모놀리스에서 마이크로서비스로 전환한다. 고객 앱은 API Gateway/ALB 파사드 한 곳만 호출하고, 파사드는 주문·재고·결제·배송 서비스 호출 순서와 타임아웃·재시도를 캡슐화한다. 신규 서비스로의 점진 라우팅과 롤백은 파사드 설정으로 수행하며, 각 서비스는 필요 시 직접 호출도 허용한다.
배치 원칙
- 클라이언트와 하위 시스템 사이에 파사드 계층을 둔다
- 파사드는 공개 DTO/API만 노출하고 내부 도메인 타입과 호출 순서를 숨긴다
- 외부 연동별 어댑터를 파사드 뒤에 배치한다
- API Gateway/BFF/Ingress 같은 진입점에 배치해 라우팅·인증·재시도를 공통화한다
- 하위 서비스는 자체 데이터와 비즈니스 규칙을 소유하고 파사드는 데이터 저장을 갖지 않는다
온프레미스
온프레미스에서는 API Gateway/리버스 프록시나 BFF를 파사드로 두고 내부 서비스 디스커버리·타임아웃·재시도·서킷브레이커를 중앙 설정한다. 파사드와 하위 시스템을 독립 버전으로 배포하고, 파사드 변경이 전체 장애로 번지지 않도록 무중단 배포와 관측성을 확보한다.
클라우드
클라우드에서는 ALB/API Gateway/서비스 메시 ingress를 단일 진입 파사드로 쓰고, SDK client facade에 라우팅·재시도·페일오버·관측성을 공통 적용한다. 관리형 서비스별 제약은 파사드 뒤 어댑터에 격리하고 오토스케일·다중 AZ·백업/복구 정책을 파사드와 하위 서비스에 맞춘다.
Kubernetes
Kubernetes에서는 Ingress/Gateway API나 BFF를 파사드로 두고 CNI·cert-manager·secret store·관측 스택 같은 플랫폼 세부는 개발자에게 숨긴다. 파사드와 하위 워크로드는 Helm/Kustomize/ArgoCD 등 GitOps로 배포하며 네트워크 정책·리소스 쿼터·HPA/PDB를 파사드 앞뒤에 함께 설계한다.
장애 대응
대표 장애는 하위 의존성 타임아웃·오류 전파, 재시도 폭주, 파사드 자체 병목, 잘못된 라우팅/버전 배포다. 파사드에 타임아웃·재시도 백오프·서킷브레이커·페일오버를 두고 경로별 지연/오류율/포화도 텔레메트리로 원인을 분리한 뒤 트래픽 차단·롤백·의존성 우회 순으로 대응한다.
14개 관점별 근거
조사 당시 근거 보유 여부입니다. 출처의 정확성과 최신성을 별도로 판단하세요.
정의·개요근거 있음
하위 시스템 인터페이스 집합에 단일 고수준 인터페이스를 제공해 사용을 쉽게 하는 패턴
Facade defines a higher-level interface that makes the subsystem easier to use.해결하는 문제근거 있음
복잡한 subsystem을 직접 쓰지 않고 단순 인터페이스로 접근하게 하여 클라이언트 부담을 줄임
you want a simple interface to a complex subsystem주요 구성 컴포넌트·리소스근거 있음
Facade 클래스와 subsystem 객체들로 구성; facade가 호출 대상·인자·순서를 알고 고수준 메서드를 제공
The facade, a class that offers a few high-level methods and knows which subsystem objects to call데이터·에셋 배치 원칙미확인
확인된 원문 근거가 없습니다. 부적합하다는 의미는 아닙니다.
대표 유스케이스근거 있음
웹 애플리케이션이 여러 데이터 소스/API를 하나의 단순 인터페이스로 조회
Suppose your web application needs to communicate with various data sources through web API’s.시나리오 예시근거 있음
레거시 LB 트래픽을 ALB(EKS Ingress) 파사드로 전환해 라우팅
All client traffic is repointed from the legacy load balancer to an AWS Application Load Balancer (ALB)부적합 상황·주의근거 있음
메서드명만 같고 단순 위임하는 facade는 부적합; 호출자가 여전히 순서·에러·내부 타입을 알아야 하면 이점 없음
The most common bad facade is a class with the same method names as the subsystem, each one delegating to the original.온프레미스 관점(개발·배포·운영)미확인
확인된 원문 근거가 없습니다. 부적합하다는 의미는 아닙니다.
클라우드 관점(개발·배포·운영)근거 있음
클라우드 SDK 호출을 client facade로 감싸 라우팅·재시도·페일오버를 공통화
Implement a client facade pattern wrapping BedrockRuntimeClient to enforce routing, retries, and failoverKubernetes 관점(개발·배포·운영)근거 있음
Kubernetes 플랫폼 facade가 CNI·cert-manager·secret 백엔드 세부를 숨김
Your developers don’t need to know which CNI the cluster runs.장애 대응 관점근거 있음
facade에 resilience·observability를 동일 적용; 경로별 지연/오류율로 장애 관측
The second discipline is to give the facade the same resilience and observability장점근거 있음
subsystem 간 통신·의존 최소화로 복잡도 감소
A common design goal is to minimize the communication and dependencies between subsystems.단점·트레이드오프근거 있음
단순 전달 facade는 proxy with extra steps; 간접 계층만 증가
If the answer is yes for most methods, the facade is a proxy with extra steps.대표 기술·도구근거 있음
API Gateway/ALB·Ingress, 클라우드 SDK client facade 등
AWS Application Load Balancer (ALB) acting as an Ingress into the EKS cluster추가 참고 문헌 (24)
- Facade ↗
- Chapter 6 The Facade Pattern - Design Patterns Explained: A New Perspective on Object-Oriented Design, Second Edition [Book] ↗
- The Facade Pattern - Integral.io ↗
- Structural Patterns ↗
- The Facade Pattern - fjp.github.io ↗
- Chapter 6: Design Patterns – Software Engineering: A Modern Approach ↗
- Facade Pattern | Compile N Run ↗
- Patterns For Large-Scale JavaScript Application Architecture ↗
- The Facade Is the Product · Alex Parra ↗
- KubeAid CLI - Architecture | KubeAid ↗
- Multi-Cloud Kubernetes Without Three Toolchains | Ops-Box ↗
- How to Run Kubernetes Across On-Premises and Public Cloud: Four Hybrid Architecture Models and the Seven Layers to Standardize ↗
- Module 10.4: Hybrid Cloud Architecture (On-Prem to Cloud) | KubeDojo ↗
- This article describes common patterns for creating production-level, heterogeneous deployments using Kubernetes (https://kuber ↗
- Zero-Downtime Monolith Migration to AWS EKS | Focus20 Labs ↗
- Reference Architecture: GKE Enterprise hybrid environment - part 2 - Dec '24 - Google Docs ↗
- Lesson 22.16 — Facade | System Design From First Principles ↗
- Adapter and facade patterns | designbeyondcode ↗
- SL#159 - Facade: Hiding a Messy Subsystem, and the Three Ways the Hiding Goes Wrong ↗
- Replace It While It Is Still Running. | Microservices Recipes: The Architect’s Field Guide ↗
- Resilience Patterns · Principles | gsantana.dev ↗
- Building self-recovering systems against technology and business risk with Amazon Bedrock production resilience | The AWS News Feed ↗
- 2.20 Error handling and resilience patterns — Software Engineering Guide ↗
- Anti-corruption layer pattern - AWS Prescriptive Guidance ↗