☁️ Cloud

PaaS

Platform as a Service

Platform as a service. Provides an app development environment. Heroku, Vercel.

📖 Detailed Explanation

PaaS (Platform as a Service) is a service that provides the platform and environment required for application development, execution, and management through the cloud. Developers can focus solely on writing code without managing infrastructure (servers, OS, networking). The core value of PaaS is that deployment is completed with just "git push".

PaaS sits between IaaS (Infrastructure as a Service) and SaaS (Software as a Service). With IaaS, you must manage VMs directly, and with SaaS, you only use finished software. PaaS sits in the middle, providing runtimes, middleware, databases, and more as managed services.

Representative PaaS offerings include Heroku (the first mainstream PaaS), Vercel (specialized for Next.js), Netlify (static sites), Railway, Render, Google App Engine, and AWS Elastic Beanstalk. Each platform is optimized for specific frameworks or languages.

The advantages of PaaS are fast development speed, automatic scaling, and reduced operational burden. The disadvantages are vendor lock-in, difficulty in fine-grained infrastructure control, and high costs at large traffic volumes. It is suitable for early-stage startups and MVP development, and it is common to migrate to IaaS or Kubernetes after growth.

💻 Code Example

# Heroku CLI로 앱 배포

# Heroku CLI 설치 및 로그인
brew install heroku/brew/heroku
heroku login

# 새 앱 생성
heroku create my-app-name

# Git으로 배포
git push heroku main

# 환경 변수 설정
heroku config:set DATABASE_URL=postgres://...
heroku config:set NODE_ENV=production

# 스케일링 (Dyno 수 조정)
heroku ps:scale web=2

# 로그 확인
heroku logs --tail

# Add-on 설치 (PostgreSQL)
heroku addons:create heroku-postgresql:essential-0

# 원클릭 롤백
heroku releases
heroku rollback v10

# Procfile (프로세스 정의)
# web: npm start
# worker: npm run worker
# release: npm run migrate

🗣️ Say It Like This in Practice

💬 In Selecting a Tech Stack
"Deploy the MVP quickly with Railway or Render, and migrate to Kubernetes later when traffic grows. Validating the product comes before slowing down development to build infrastructure early on."
💬 In an Interview
"Let's compare the differences between IaaS, PaaS, and SaaS to pizza. IaaS is buying the ingredients and baking it yourself, PaaS is adding just the toppings to ready-made dough, and SaaS is having a finished pizza delivered. The developer's range of control and convenience differ."
💬 In Cost Discussions
"A Heroku dyno costs $25 per month, while an EC2 instance with the same specs costs about $8 per month. But considering the time spent on CI/CD setup, monitoring, and log management, PaaS is more economical for small teams. A developer's hourly cost is higher than the server cost."

Take a mock interview on this topic → WIA SOOM AI Interview · Start for free

⚠️ Common Mistakes & Cautions

❌
Ignoring Vendor Lock-in

Relying heavily on features that exist only on a specific PaaS (Heroku Addons, Vercel Edge Config, etc.) makes migration difficult. Where possible, use standard technologies (PostgreSQL, Redis, S3-compatible) and abstract platform-dependent code.

❌
Overlooking the Cold Start Problem

Most PaaS platforms switch to sleep mode when there are no requests for a certain period on the free tier. The first request can take up to 30 seconds, which degrades the UX. In production, use a paid plan or keep the app awake with a Health Check.

✅
Criteria for Choosing Correctly

The best PaaS differs depending on the framework. Next.js fits well with Vercel, Rails with Render, and Django with Railway. Start with the free tier and compare performance and DX (developer experience) yourself.

🔗 Related Terms

📚 Learn More