모놀리식 아키텍처
하나의 코드베이스가 여러 업무 기능을 수행하는 전통적 소프트웨어 개발 모델
구조와 동작 원리
화살표를 단계별로 확인하세요.
단일 배포 단위 내부의 모든 기능이 함께 확장된다. DB는 별도 자원일 수 있다.
기대 효과
개발·테스트·배포가 단순하고 로드밸런서 뒤 복제로 수평 확장하기 쉬움
트레이드오프
작은 변경이 코드베이스의 넓은 영역에 영향을 주어 변경·유지보수 비용이 커짐
애플리케이션 범위와 성능 요구가 커지면 유지보수와 확장이 어려워짐
운영 및 적용 가이드
종합 설명 · 원문 인용으로 검증된 항목과 구분됩니다. 실제 적용 전 확인이 필요합니다.
언제 사용하는가
초기 제품·소규모 팀이 빠른 출시와 단순한 개발·배포를 우선할 때 적합하다. 요구사항이 단순한 중소규모 애플리케이션이나 프로토타입에도 적합하다.
시나리오
지역 소매 체인(직원 50명, 개발팀 8명)이 온라인 주문·재고·회원 기능을 하나의 웹 애플리케이션으로 3개월 내 출시하려 한다. 트래픽은 하루 수천 건 수준이고 기능별 독립 확장 요구가 크지 않다. 단일 코드베이스와 단일 관계형 DB로 개발·테스트·배포를 단순화하고, 로드밸런서 뒤에 동일 인스턴스를 여러 개 두어 수평 확장한다.
배치 원칙
- UI·서버 로직·데이터 접근 계층을 하나의 실행 단위 또는 아티팩트로 패키징
- 주 데이터베이스는 하나의 관계형 DBMS에 테이블로 배치
- 정적 애셋은 애플리케이션 번들 또는 단일 웹 서버 경로에 배치
- 동일 애플리케이션 인스턴스를 로드밸런서 뒤에 복제 배치
- 세션·캐시가 필요하면 외부 공유 저장소를 두되 핵심 데이터는 단일 DB에 집중
온프레미스
단일 실행 파일과 관계형 DB를 서버에 배포하고 로드밸런서 뒤 복제로 확장한다. 운영은 단일 배포 단위의 버전·설정·DB 마이그레이션을 함께 관리하며, 장애 영향 범위가 전체에 미치므로 헬스체크·백업·롤백을 단순하게 유지한다.
클라우드
컨테이너 또는 VM 이미지 하나를 배포 단위로 삼고 관리형 로드밸런서·관리형 RDBMS를 사용한다. 수평 복제와 오토스케일링은 가능하지만 기능별 독립 확장은 어려우므로 인스턴스 전체를 함께 확장한다. 배포는 블루/그린·롤링으로 무중단에 가깝게 운영한다.
Kubernetes
모놀리식을 단일 컨테이너 이미지로 만들어 하나의 Deployment로 배포하고 Service·Ingress로 노출한다. replica 수와 HPA로 전체 인스턴스를 함께 수평 확장하며, 단일 DB는 StatefulSet 또는 외부 관리형 DB로 분리한다. ConfigMap/Secret·liveness/readiness probe·PDB를 적용하되 기능별 격리는 되지 않음을 전제로 한다.
장애 대응
대표 장애는 특정 엔드포인트의 버그·느린 쿼리·다운스트림 지연이 모든 인스턴스의 부하와 지연으로 확산되는 현상이다. 우선 트래픽을 차단·제한하고 최근 배포 롤백, 인스턴스 증설, DB 커넥션·슬로우 쿼리 확인을 수행한다. 일시 오류는 재시도하고 지속 실패는 서킷브레이커·타임아웃으로 빠르게 실패시켜 연쇄 장애를 막으며, 재발 방지를 위해 엔드포인트별 지표와 배포 게이트를 강화한다.
14개 관점별 근거
조사 당시 근거 보유 여부입니다. 출처의 정확성과 최신성을 별도로 판단하세요.
정의·개요근거 있음
하나의 코드베이스가 여러 업무 기능을 수행하는 전통적 소프트웨어 개발 모델
Monolithic architecture is a traditional software development model in which a single codebase executes multiple business functions.해결하는 문제근거 있음
스타트업이 빠른 사업 전개와 초기 자금 절약을 위해 단순한 개발·배포를 택하도록 돕는 문제를 해결
Startup outfits need to make quick business moves, but also need to conserve precious start-up funds.주요 구성 컴포넌트·리소스근거 있음
클라이언트 UI, 서버 측 인터페이스, 데이터베이스로 구성
a client-side interface, a server-side interface, and a database데이터·에셋 배치 원칙근거 있음
보통 하나의 주 데이터베이스를 사용하며 데이터 접근 계층을 애플리케이션에 포함
It usually talks to one main database.대표 유스케이스근거 있음
중소규모 애플리케이션, 프로토타입, 단순 요구사항에 적합
Best suited for small to medium-sized applications, prototypes, or applications with simple requirements.시나리오 예시근거 있음
20명 이하 소규모 팀이 도메인 경계가 불명확한 초기 제품과 배포 단순성을 중시할 때 적합
Team size is small (< 20 engineers)부적합 상황·주의근거 있음
애플리케이션 범위와 성능 요구가 커지면 유지보수와 확장이 어려워짐
as the application’s scope and performance demands increase, a monolith can consequently become difficult to maintain and scale.온프레미스 관점(개발·배포·운영)근거 있음
가장 단순한 형태는 단일 실행 파일을 단일 서버에서 운영
In its simplest form, a monolithic application is a single executable that runs on a single server.클라우드 관점(개발·배포·운영)근거 있음
로드밸런서 뒤에 동일 복제본을 두어 수평 확장 가능
simple to scale horizontally by running copies behind a load balancer.Kubernetes 관점(개발·배포·운영)미확인
확인된 원문 근거가 없습니다. 부적합하다는 의미는 아닙니다.
장애 대응 관점근거 있음
일시 장애는 재시도하고 지속 실패는 서킷브레이커로 차단해 연쇄 장애를 완화
Use the Circuit Breaker pattern to fail fast without making the remote call when an operation is likely to fail.장점근거 있음
개발·테스트·배포가 단순하고 로드밸런서 뒤 복제로 수평 확장하기 쉬움
it is simple to develop, test and deploy, and simple to scale horizontally by running copies behind a load balancer.단점·트레이드오프근거 있음
작은 변경이 코드베이스의 넓은 영역에 영향을 주어 변경·유지보수 비용이 커짐
small changes impact large areas of the code base.대표 기술·도구근거 있음
관계형 데이터베이스 관리 시스템과 단일 실행 단위가 대표적
A database for the enterprise-level app is usually multiple tables organized in a relational database management system.추가 참고 문헌 (24)
- What is Monolithic Architecture? | IBM ↗
- Monolithic Architecture | Compile N Run ↗
- Decomposing monoliths into microservices ↗
- What Is a Monolithic Application? | F5 ↗
- Top 10 Software Architecture Styles You Should Know — bool.dev ↗
- Part 6: Software Architecture & Design Patterns - Wasil Zafar ↗
- How to design monolith architectures with Vaadin ↗
- Monolithic vs Microservices - Difference Between Software Development Architectures- AWS ↗
- From Monoliths to Microservices: Application Modernization With Kubernetes ↗
- References: Kubernetes and cloud projects | Cheveo GmbH ↗
- How to Run Kubernetes Across On-Premises and Public Cloud: Four Hybrid Architecture Models and the Seven Layers to Standardize ↗
- Deploy Containerized Apps with AKS Hybrid and Edge by Using GitOps - Azure Architecture Center | Microsoft Learn ↗
- Reference Architecture: GKE Enterprise hybrid environment - part 2 - Dec '24 - Google Docs ↗
- A Private Cloud "Kubernetes Service" deployable anywhere. | CNCF End User Community ↗
- TechnicalEnablement/AKS-adoption-aligned-to-cloud-adoption-framework.md ↗
- The perfect Kubernetes architecture from edge to cloud ↗
- SRE for single-tiered software applications | Google Cloud Blog ↗
- Improving Resiliency and Stability of a Large-scale Monolithic API Service ↗
- Design for Self-Healing - Azure Architecture Center | Microsoft Learn ↗
- Monolith vs microservices: fault isolation and its cost ↗
- Google SRE - Cascading Failures: Reducing System Outage ↗
- 1 Designing and running microservices ↗
- Architecture strategies for performing failure mode analysis - Microsoft Azure Well-Architected Framework | Microsoft Learn ↗
- The Distributed Monolith: Diagnosis and First Remedies | Microservices Recipes: The Architect’s Field Guide ↗