Cloud Native
Cloud Native
Application design optimized for cloud environments. Includes containers, microservices, and DevOps.
Cloud Native
Application design optimized for cloud environments. Includes containers, microservices, and DevOps.
Cloud Native is an application architecture and development methodology designed to take full advantage of the benefits of cloud computing environments. The CNCF (Cloud Native Computing Foundation) defines it as "loosely coupled systems that are resilient, manageable, and observable, using containers, service meshes, microservices, immutable infrastructure, and declarative APIs."
Cloud Native has 4 core principles. First, containerization packages applications so they are portable. Second, microservices split functionality into small, independently deployable services. Third, with dynamic orchestration, tools such as Kubernetes automatically scale and self-heal containers. Fourth, DevOps and CI/CD integrate and automate development and operations.
The 12 Factor App principles are a practical guide for Cloud Native design. They recommend codebase version control, externalizing configuration into environment variables, stateless processes, exposing services through port binding, fast startup and graceful shutdown, and parity between development and production environments.
The business value of moving to Cloud Native is clear. Companies such as Netflix and Spotify deploy hundreds of times a day, and recover automatically within seconds when a failure occurs. Automatic scaling according to traffic also makes them cost-efficient. However, this must be accompanied by the complexity of distributed systems, building a monitoring/logging framework, and changes in team culture.
# Cloud Native 애플리케이션 Dockerfile
# 멀티스테이지 빌드로 이미지 크기 최소화
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
FROM node:20-alpine AS runner
WORKDIR /app
# 비root 사용자로 실행 (보안)
RUN addgroup -g 1001 -S nodejs
RUN adduser -S nextjs -u 1001
# 빌드 결과물만 복사 (최소 이미지)
COPY --from=builder /app/node_modules ./node_modules
COPY --chown=nextjs:nodejs . .
USER nextjs
# Health Check 엔드포인트
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost:3000/health || exit 1
# 환경변수로 설정 주입 (12 Factor)
ENV NODE_ENV=production
ENV PORT=3000
EXPOSE 3000
# Graceful Shutdown 지원
CMD ["node", "server.js"]
"Moving from a monolith to Cloud Native makes independent deployment per service possible. Updating only the order service doesn't require redeploying everything, and when traffic spikes, we only need to scale out that service. However, we must first consider service-to-service communication, distributed transactions, and the monitoring framework."
"I have experience designing a system with a Cloud Native architecture. Following the 12 Factor App principles, I implemented configuration as environment variables, logs to stdout, and processes as stateless. In Kubernetes, I implemented self-healing with Liveness/Readiness Probes and set up autoscaling with HPA based on 70% CPU."
"Right now we're violating the stateless principle by storing sessions in local files, so sessions are lost when we scale out. We need to switch to an external session store like Redis and make the container images immutable so we can operate in a truly Cloud Native way."
Take a mock interview on this topic → WIA SOOM AI Interview · Start for free
Simply packaging with Docker does not make something Cloud Native. "Lift and Shift," which puts a monolithic app into a container as is, only increases complexity. Stateless, 12 Factor, and microservices principles must be applied together.
Microservices create new problems such as network failures, distributed transactions, data consistency, and service discovery. If you migrate without an Observability (logging, metrics, tracing) framework, it becomes impossible to identify the cause of failures.
Migrate gradually. Use the Strangler Fig pattern to separate out some functions of the monolith first, and build up your team's DevOps skills and Kubernetes experience first. Building a monitoring stack such as Prometheus, Grafana, and Jaeger first is essential.