C.W.K.
Stream
Lesson 07 of 10 · published

Managed Postgres: Neon, Supabase, RDS

~12 min · apps, hosting

Level 0스키마 새싹
0 XP0/86 lessons0/10 achievements
0/120 XP to next level120 XP to go0% complete

프로덕션 default 가 보통 managed 여야

Postgres self-hosting 이 진짜 일: 백업, 모니터링, 버전 업그레이드, 패칭, 복제, failover. Managed 제공자가 그거 다 처리, 비교적 modest premium 으로. 대부분 팀에 맞는 시작점이 managed; 측정된 이유 있을 때만 self-host.

주요 옵션

  • Supabase — managed Postgres + Auth + Storage + Realtime + edge functions. 관대한 free 티어; 의견 있는 플랫폼-style 접근. 솔로와 작은 팀 SaaS 에 좋은 fit.
  • Neon — branching 있는 serverless Postgres (각 git branch 가 자체 DB 가능). 사용한 만큼 지불. Ephemeral preview 환경에 강함.
  • RDS / Aurora (AWS) — 엔터프라이즈 default. 많은 knob, 예측 가능한 가격, 스케일에 강함.
  • AlloyDB (GCP), Azure Flexible Server — 클라우드 native 동등.
  • Railway, Render, Fly.io — 개발자 경험 중심; 인디 프로젝트에 좋음.

비교할 것

Free 티어 (프로토타이핑), 백업 자동화, point-in-time recovery, 지원되는 extension (pgvector? 더 exotic 한 거?), 포함된 connection pooling, scale-up 경로, 지역 가용성, 지원 story.

Code

Managed Postgres 에 연결·bash
# 대부분 제공자가 대시보드에 connection string 줌
psql 'postgresql://app:****@db.zyx.supabase.co:5432/postgres?sslmode=require'

# 많은 게 sslmode=require 요구; 제공자 docs 확인
psql 'postgresql://user:****@ep-x-123.us-east-2.aws.neon.tech/myapp?sslmode=require'
Supabase CLI 핵심·bash
supabase login
supabase link --project-ref abc12345
supabase db push --include-all       # 로컬 마이그레이션을 remote 에 적용
supabase db dump --file local.sql    # remote 에서 logical dump
supabase secrets set FOO=bar          # edge function 위한 env var

External links

Exercise

Supabase 또는 Neon 의 free 티어 가입. psql 로 연결. 작은 스키마 생성, 마이그레이션 실행, 백업. 각 제공자가 다른 거 안 하는 일 하나 적기.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.