docs: Oracle 전환 설계안 + SSE Realtime 스켈레톤 (검토용 DRAFT) - #26
Open
coseung2 wants to merge 1 commit into
Open
Conversation
검토용 초안(미확정). Supabase(Postgres/Storage/Realtime)에서 오라클 A1로 이전하는 범위와 방법 정리. 포함: - docs/migration-to-oracle.md: DB/Storage/SSE 전환 설계, 가격·운영 트레이드오프, 마이그레이션 단계, 남은 결정 질문 - src/lib/realtime/sse-client.ts: EventSource 구독 스켈레톤 (useRealtimeInvalidation와 호환 시그니처) - src/lib/realtime/sse-publish.ts: pg_notify 발행 스켈레톤 (server-only) 기존 Supabase 경로는 보존. useRealtimeInvalidation 실연결은 후속 PR. - 타입체크: tsc --noEmit 통과
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
개요
Supabase(Postgres/Storage/Realtime)에서 오라클 A1로 이전하는 검토용 설계안 + 시작 스켈레톤. 확정 전에 피드백 받으려는 초안입니다.
포함 내용
docs/migration-to-oracle.mdsrc/lib/realtime/sse-client.tsuseRealtimeInvalidation와 호환 시그니처)src/lib/realtime/sse-publish.tspg_notify발행 헬퍼 (Skeleton,server-only)설계 방향
DATABASE_URL만 자체 Postgres(오라클 A1)로 전환. Postgres 17 + 기존 pg_dump/pg_restore 백업 재사용.pg_notify+ SSE 푸시 메인. 폴링은useRealtimeInvalidation의 기존fallbackPollMs로 fallback만 유지.useRealtimeInvalidation(단일 훅) +lib/realtime.ts(*ChannelKey/RealtimeEvent) +realtime-broadcast.ts(sendRealtimeBroadcast)로 transport가 분리돼 있어, 발행·구독 내부만 교체하면 92개 훅/발행 코드는 그대로.검증
npx tsc --noEmit통과useRealtimeInvalidation실제 연결, SSE Route Handler, DB 트리거 마이그레이션은 후속 PR 대상입니다.남은 결정 (확정 전 필요)
참고
infra/oracle/README.md