서버리스 배포
AWS Lambda는 서버 프로비저닝·관리 없이 코드를 실행하는 서버리스 컴퓨트 서비스다.
구조와 동작 원리
구성 요소와 배치 원칙 (조사 기반 개념 설명 · 연결 순서나 토폴로지는 특정하지 않음)
서버리스 애플리케이션은 Lambda 함수와 API Gateway, S3, DynamoDB, EventBridge, SQS, Step Functions 등 여러 AWS 서비스를 통합해 구성한다.
정적 웹 콘텐츠는 S3 버킷에 배치할 수 있다.
서버 유지보수, 용량 프로비저닝, 확장, 패치 등 기반 인프라 관리 부담을 줄여 애플리케이션 로직에 집중하게 한다.
기대 효과
요청량에 따라 0에서 수만 개 실행까지 자동으로 동시 확장할 수 있다.
트레이드오프
장기 실행 백그라운드 작업에는 추가 서비스 없이는 적합하지 않다.
안정적이고 예측 가능한 워크로드나 장기 실행 백그라운드 작업에는 부적합할 수 있다.
운영 및 적용 가이드
종합 설명 · 원문 인용으로 검증된 항목과 구분됩니다. 실제 적용 전 확인이 필요합니다.
언제 사용하는가
웹·모바일 백엔드, IoT 백엔드, S3 이벤트 기반 이미지 썸네일 생성·비디오 트랜스코딩·로그 파싱처럼 간헐적이거나 버스트성인 이벤트 중심 워크로드에 적합하다.
시나리오
리테일 중견기업이 월 수백만 건의 주문·재고 이벤트를 처리하는 웹·모바일 백엔드를 구축한다. 프로모션 시 트래픽이 급증하고 평시에는 낮으며, 이미지 업로드 시 썸네일 생성과 주문 알림을 비동기로 처리해야 한다. API Gateway·Lambda·DynamoDB·S3·SQS를 조합해 자동 확장과 사용량 기반 과금을 적용하고, 배포는 카나리와 롤백 절차를 포함해 운영한다.
배치 원칙
- API 진입점은 API Gateway에 두고 비즈니스 로직은 Lambda 함수로 분리
- 정적 웹 콘텐츠와 원본·산출물 이미지는 S3에 배치
- 주문·재고 상태 데이터는 DynamoDB나 RDS 등 관리형 저장소에 배치
- 비동기 작업은 SQS·EventBridge·Step Functions로 분리·오케스트레이션
- 실패 이벤트는 DLQ나 실패 목적지에 보관
온프레미스
Lambda 실행 자체보다 하이브리드 관리·조율에 초점을 두고, 데이터 주권·DDIL·네트워크 단절 제약을 고려해 중앙 제어와 현장 실행을 분리한다. 배포·운영은 중앙 파이프라인과 온프레미스 실행 환경의 연결 상태를 함께 검증한다.
클라우드
서버·OS·용량·확장·패치를 관리형 서비스에 위임하고, 코드·IaC·CI/CD·관찰성·최소 권한 보안 구성에 집중한다. 배포는 카나리·블루그린과 명시적 검증·롤백 절차를 포함한다.
Kubernetes
Kubernetes에서는 ACK나 Crossplane으로 Lambda와 AWS 리소스를 CRD 기반으로 선언·관리할 수 있다. 컨테이너 중심 요구가 크면 EKS 운영 모델과 비교해 팀 전문성·운영 오버헤드·배포 속도를 기준으로 선택한다.
장애 대응
대표 장애는 동시성 제한·스로틀, 타임아웃, 비동기 재시도·중복 처리, 다운스트림 장애, 배포 회귀다. 스로틀·타임아웃은 동시성·메모리·타임아웃 조정과 백오프·지터로 완화하고, 비동기 실패는 DLQ·실패 목적지에서 보관·조사·재처리하며, 중복은 멱등성 키로 방지한다. 배포 회귀는 카나리 지표 검증과 롤백으로 대응한다.
14개 관점별 근거
조사 당시 근거 보유 여부입니다. 출처의 정확성과 최신성을 별도로 판단하세요.
정의·개요근거 있음
AWS Lambda는 서버 프로비저닝·관리 없이 코드를 실행하는 서버리스 컴퓨트 서비스다.
AWS Lambda is a serverless compute service. With Lambda, you can run code without provisioning or managing servers.해결하는 문제근거 있음
서버 유지보수, 용량 프로비저닝, 확장, 패치 등 기반 인프라 관리 부담을 줄여 애플리케이션 로직에 집중하게 한다.
Lambda automatically manages the underlying infrastructure – including server maintenance, capacity provisioning, scaling, and patching주요 구성 컴포넌트·리소스근거 있음
서버리스 애플리케이션은 Lambda 함수와 API Gateway, S3, DynamoDB, EventBridge, SQS, Step Functions 등 여러 AWS 서비스를 통합해 구성한다.
Serverless applications usually comprise several AWS services, integrated with custom code run in Lambda functions.대표 유스케이스근거 있음
웹·모바일 백엔드 구축에 대표적으로 사용된다.
Web or mobile backends – Create fully-serverless, mobile applications or websites시나리오 예시근거 있음
S3 이벤트 등으로 이미지 썸네일 생성, 비디오 트랜스코딩, 로그 파싱 같은 실시간 파일 처리를 수행할 수 있다.
Real-Time File Processing: Automatically generate image thumbnails, transcode videos, or parse logs부적합 상황·주의근거 있음
안정적이고 예측 가능한 워크로드나 장기 실행 백그라운드 작업에는 부적합할 수 있다.
Long-running background tasks, serverless isn’t ideal without extra services.온프레미스 관점(개발·배포·운영)근거 있음
온프레미스 분산 인프라를 AWS 서버리스 기술로 중앙 관리·조율하는 하이브리드 방식에 활용할 수 있다.
manages distributed on-premises infrastructure at scale using AWS serverless technologies클라우드 관점(개발·배포·운영)근거 있음
클라우드 제공자가 기반 인프라 관리를 최대한 담당하므로 개발자는 코드 작성에 집중할 수 있다.
We take on as much of the underlying infrastructure management as possible, so developers can focus on writing code.Kubernetes 관점(개발·배포·운영)근거 있음
Kubernetes API를 통해 ACK 또는 Crossplane로 Lambda 함수와 AWS 리소스를 배포·관리할 수 있다.
You can deploy and manage Lambda Event Functions with the Kubernetes API using AWS Controllers for Kubernetes (ACK) or Crossplane.장애 대응 관점근거 있음
비동기 실패 트랜잭션은 DLQ에 보관해 조사·재시도해야 한다.
Use a dead-letter queue mechanism to retain, investigate, and retry failed transactions.장점근거 있음
요청량에 따라 0에서 수만 개 실행까지 자동으로 동시 확장할 수 있다.
Lambda scales infrastructure concurrently and automatically from zero to tens of thousands of executions based on incoming request volume.단점·트레이드오프근거 있음
장기 실행 백그라운드 작업에는 추가 서비스 없이는 적합하지 않다.
Long-running background tasks, serverless isn’t ideal without extra services.대표 기술·도구근거 있음
Lambda와 함께 API Gateway, S3, DynamoDB, EventBridge, SQS, Step Functions 등이 대표적으로 사용된다.
While Lambda can be integrated with most AWS services, the services most commonly used in serverless applications are:추가 참고 문헌 (24)
- What is AWS Lambda? - AWS Lambda ↗
- Designing Lambda applications - AWS Lambda ↗
- Get started with Lambda ↗
- Serverless Architectures with AWS Lambda: Overview and Best Practices ↗
- Serverless Computing with AWS Lambda: Architecture, Use Cases, and Best Practices | AWS Builder Center ↗
- The Serverless Architecture Handbook: How to Publish a Node Js Docker Image to AWS ECR and Deploy the Container to AWS Lambda ↗
- Untitled result ↗
- What is Serverless Computing? - Serverless Computing Explained - AWS ↗
- Untitled result ↗
- Untitled result ↗
- docs/architecture/deployment-architecture/deployment.md ↗
- Introduction to DevOps on AWS - AWS Whitepaper ↗
- Overview of Deployment Options on AWS - AWS Whitepaper ↗
- Hybrid cloud orchestration: Modernizing on-premises infrastructure management with AWS | AWS Architecture Blog ↗
- Deploy Amazon EKS clusters across cloud and on-premises environments - Amazon EKS ↗
- Choosing an AWS compute service - AWS Decision Guides ↗
- AWS Prescriptive Guidance - Resilience analysis framework ↗
- Understanding retry behavior in Lambda Event Functions - AWS Lambda ↗
- AWS Lambda: Resilience under-the-hood | AWS Compute Blog ↗
- Best practices for Lambda Web Functions - AWS Lambda ↗
- Untitled result ↗
- docs/failure_modes.md ↗
- Untitled result ↗
- Building well-architected serverless applications: Building in resiliency – part 1 | AWS Compute Blog ↗