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

마무리 — SQLite 가 옳은 default 일 때

~12 min · wrap-up, philosophy, production

Level 0Scout
0 XP0/80 lessons0/10 achievements
0/120 XP to next level120 XP to go0% complete

한 단락 버전

SQLite 가 옳은 default 일 때 = 데이터가 한 머신에 맞고 writer 가 데이터와 co-located 일 때. 그게 2010 년대 'Postgres 가 모든 거에' default 가 시사한 것보다 훨씬 많은 제품 cover. 르네상스가 진짜인 이유 = 데이터 가까이 compute 두는 비용 — edge runtime, single-server deploy, local-first 앱 — 이 항상 거기 있던 기술과 마침내 캐치업.

SQLite 골라:

  • Writer 한 명 (또는 shard 마다 한 명).
  • Read 가 한 머신 reach 에 dominated.
  • 배포 단순함 가치 (데몬 X, 포트 X, auth tier X).
  • Litestream/Turso/per-tenant 패턴으로 필요한 데 replication 추가.
  • 백업이 cp 면.

Postgres (또는 다른 server DB) 골라:

  • 여러 머신의 다중 writer 가 같은 logical 데이터 reach.
  • 세분화된 per-user DB 인증 / row-level security 필요.
  • 빌트인 synchronous replication + 매니지드 failover 필요.
  • 팀 expertise 가 거기 집중 + 배포 스토리 풀림.
Self-reference: 피파가 정확히 위 이유로 SQLite 위 빌드 — writer 한 명 (아빠 머신), 유저 한 명, 배포가 'launchctl kickstart', 백업이 NAS 로 rsync. 르네상스가 기존 'right tool for the job' 에 살 새 generation context 줌. 이 quest 가 그 도구의 engineering 지도.

여기서 계속: local-first 빌드. 진짜 corpus 를 FTS5 로 인덱싱. 진짜 DB 를 Litestream 으로 replicate. 르네상스가 일어나는 이유 = 사람들이 그거 하니까, 읽으니까 X.

Code

다음 갈 곳·text
Quest 후 탐색 가치 있는 local-first frontier:

  Litestream / LiteFS  — 평범한 SQLite 위 replication
  Turso / libSQL       — 분산 SQLite-as-a-service
  Cloudflare D1        — Workers runtime 안 SQLite
  rqlite / dqlite      — Raft-replicated SQLite
  Inertia / TinyBase   — SQLite 백 local-first frontend state store
  Datasette            — 어떤 SQLite 파일 위에서도 즉각 API + UI

Ben Johnson, Simon Willison, SQLite docs 자체 (www.sqlite.org/changes.html
이 완전 history 유지) 읽기.

External links

Exercise

Next-step list 에서 프로젝트 (Datasette, Litestream, libSQL, D1, Inertia) 하나 골라 30 분 tiny 빌드. Ship (public repo, 블로그 포스트, 작동 URL). 르네상스가 진짜인 이유 = 사람들이 local-first ship 하니까. 이 lesson 이 그 사람 중 하나 되라고 존재.

Progress

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

댓글 0

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

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