서비스 기반 아키텍처
소수의 굵은 입자 서비스를 비즈니스 역량에 맞춰 구성하는 분산 아키텍처.
구조와 동작 원리
구성 요소와 배치 원칙 (조사 기반 개념 설명 · 연결 순서나 토폴로지는 특정하지 않음)
고객·주문·카탈로그·결제·리포팅 같은 도메인별 굵은 서비스가 핵심 컴포넌트.
서비스는 분리 배포하되 보통 하나의 공유 DB를 두어 로컬 ACID 트랜잭션을 활용.
모놀리스가 커져 마이크로서비스 전면 전환은 과한 상황에서 첫 분산 단계로 적합.
기대 효과
모듈성·가용성·배포 용이성·단순성 등 품질 속성을 지원.
트레이드오프
공유 DB는 ACID 트랜잭션을 쉽게 하지만 데이터 소유권·결합도 트레이드오프가 있음.
단순한 모놀리스로 충분한 경우 SBA는 과할 수 있음.
운영 및 적용 가이드
종합 설명 · 원문 인용으로 검증된 항목과 구분됩니다. 실제 적용 전 확인이 필요합니다.
언제 사용하는가
모놀리스가 커져 도메인 경계가 드러났지만 마이크로서비스 플랫폼 전면 도입은 과한 중견·대기업 업무 시스템에 적합하다.
시나리오
예: 연 매출 3천억 규모 유통사의 주문·결제·카탈로그·회원 시스템이 단일 모놀리스로 운영 중이다. 주문 업무는 트랜잭션 일관성이 중요하고 배포 주기는 월 1회이며, 특정 도메인만 독립 배포해 장애 격리와 변경 속도를 높이고 싶다. 4~8개 굵은 도메인 서비스와 공유 DB(또는 초기에는 공유 DB, 이후 점진 분리)로 전환하고 API 게이트웨이를 둔다.
배치 원칙
- 비즈니스 역량별로 4~12개의 굵은 도메인 서비스를 배치
- 각 서비스는 자체 코드·배포 파이프라인·API 계약을 갖고 UI는 별도 배포
- 초기에는 공유 DB를 두되 스키마/소유권 경계를 명확히 하고 도메인별 분리 가능성을 남김
- 서비스 앞에는 API 게이트웨이/리버스 프록시와 로드밸런서를 배치
- 서비스 간 동기 호출은 최소화하고 이벤트/비동기 메시징은 꼭 필요한 경계에만 둔다.
온프레미스
온프레미스에서는 서비스별 배포 단위와 공유 DB·게이트웨이·로드밸런서를 표준화하고, 코드형 인프라와 자동화된 배포/롤백, 중앙 로깅·모니터링·백업/복구 리허설을 운영 포인트로 둔다.
클라우드
클라우드에서는 관리형 DB·로드밸런서·API 게이트웨이·관측성 서비스를 활용하되 서비스별 오토스케일과 독립 배포, 환경별 구성 분리, 비용·네트워크 지연 모니터링을 고려한다.
Kubernetes
Kubernetes에서는 도메인 서비스별 Deployment/Service와 HPA, Ingress/Gateway API, ConfigMap/Secret, 네임스페이스 분리, GitOps 기반 배포와 롤백, 분산 트레이싱·로그 수집을 표준화한다.
장애 대응
대표 장애는 공유 DB 병목/락, 서비스 간 동기 호출 지연의 전파, 게이트웨이·로드밸런서 오류, 잘못된 배포다. 탐지→영향 범위 격리(서킷브레이커·타임아웃·재시도 제한·트래픽 차단)→롤백/복구→로그·트레이스 기반 원인 분석→재발 방지 순으로 대응한다.
14개 관점별 근거
조사 당시 근거 보유 여부입니다. 출처의 정확성과 최신성을 별도로 판단하세요.
정의·개요근거 있음
소수의 굵은 입자 서비스를 비즈니스 역량에 맞춰 구성하는 분산 아키텍처.
Service-based architecture organizes a system around a small number of coarse-grained services aligned to business capabilities.해결하는 문제근거 있음
모놀리스가 커져 마이크로서비스 전면 전환은 과한 상황에서 첫 분산 단계로 적합.
It is a hybrid between a modular monolith and microservices, and it is often the right first move when a monolith outgrows itself.주요 구성 컴포넌트·리소스근거 있음
고객·주문·카탈로그·결제·리포팅 같은 도메인별 굵은 서비스가 핵심 컴포넌트.
In the service-based style, the system is decomposed into services such as Customer, Order, Catalog, Billing, or Reporting.데이터·에셋 배치 원칙근거 있음
서비스는 분리 배포하되 보통 하나의 공유 DB를 두어 로컬 ACID 트랜잭션을 활용.
usually keeps one shared database, so that each service can still use ordinary ACID transactions대표 유스케이스근거 있음
모놀리스가 한계에 이르렀지만 완전한 마이크로서비스 플랫폼은 과한 비즈니스 애플리케이션.
It’s a pragmatic step when a monolith has grown seams and a complete microservices platform would be overkill.시나리오 예시근거 있음
음식 배달 플랫폼에서 고객 앱·식당 태블릿·배달원 앱·운영 포털 등 4개 UI를 둔 사례.
At the top are four user interfaces: the customer app, the restaurant tablet, the courier app and an operations portal.부적합 상황·주의근거 있음
단순한 모놀리스로 충분한 경우 SBA는 과할 수 있음.
In such cases, a simpler monolithic architecture might be more suitable.온프레미스 관점(개발·배포·운영)미확인
확인된 원문 근거가 없습니다. 부적합하다는 의미는 아닙니다.
클라우드 관점(개발·배포·운영)미확인
확인된 원문 근거가 없습니다. 부적합하다는 의미는 아닙니다.
Kubernetes 관점(개발·배포·운영)미확인
확인된 원문 근거가 없습니다. 부적합하다는 의미는 아닙니다.
장애 대응 관점근거 있음
분산 시스템은 장애가 불가피하므로 탐지·우아한 실패·로깅/모니터링을 설계해야 함.
Failures are inevitable in a distributed system. Hardware can fail. The network can have transient failures.장점근거 있음
모듈성·가용성·배포 용이성·단순성 등 품질 속성을 지원.
It providesgood support for delivering quality attributes of modularity, availability, deployability, and simplicity단점·트레이드오프근거 있음
공유 DB는 ACID 트랜잭션을 쉽게 하지만 데이터 소유권·결합도 트레이드오프가 있음.
usually keeps one shared database, so that each service can still use ordinary ACID transactions대표 기술·도구근거 있음
선택적 API 계층, 리버스 프록시/게이트웨이를 둘 수 있음.
They call an optional API layer, a reverse proxy or gateway추가 참고 문헌 (24)
- 14. Service-Based Architecture Style - Fundamentals of Software Architecture, 2nd Edition [Book] ↗
- Service-based architecture: the middle ground between monoliths and microservices ↗
- Service-Based | Software Architecture Guild ↗
- Service-Based Architecture ↗
- Lesson 20.6 — Service-based architecture | System Design From First Principles ↗
- Service-Based Architecture as an Alternative to Microservice Architecture ↗
- Service-based architecture and service-oriented architecture ↗
- Service-Based Architecture - by Jakub Slys - slys.dev ↗
- Manage and Deploy Kubernetes in Azure Arc - Azure Architecture Center | Microsoft Learn ↗
- A Private Cloud "Kubernetes Service" deployable anywhere. | CNCF End User Community ↗
- Architecture Best Practices for Azure Kubernetes Service (AKS) - Microsoft Azure Well-Architected Framework | Microsoft Learn ↗
- Reference Architecture: GKE Enterprise hybrid environment - part 2 - Dec '24 - Google Docs ↗
- Deployment Tailored to Your ↗
- A modern and sovereign Private Cloud «Kubernetes Service» for Swiss-based enterprises | CNCF End User Community ↗
- How to Run Kubernetes Across On-Premises and Public Cloud: Four Hybrid Architecture Models and the Seven Layers to Standardize ↗
- Reference architecture: Anthos hybrid environment (part 2) - implementation details ↗
- Production-Ready Microservices ↗
- Design for Self-Healing - Azure Architecture Center | Microsoft Learn ↗
- Interservice communication in microservices - Azure Architecture Center | Microsoft Learn ↗
- Resilient Microservices: A Systematic Review of Recovery Patterns, Strategies, and Evaluation Frameworks ↗
- Managing Failure Modes in Microservice Architectures - InfoQ ↗
- Google SRE - Cascading Failures: Reducing System Outage ↗
- Techniques for Handling Failure Scenarios in Microservice Architectures ↗
- Recommendations for handling transient faults - Microsoft Azure Well-Architected Framework | Microsoft Learn ↗