# SQLedge - Edge에서 Postgres를 SQLite로 복제해주는 도구

> Clean Markdown view of GeekNews topic #10469. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=10469](https://news.hada.io/topic?id=10469)
- GeekNews Markdown: [https://news.hada.io/topic/10469.md](https://news.hada.io/topic/10469.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2023-08-22T10:02:02+09:00
- Updated: 2023-08-22T10:02:02+09:00
- Original source: [github.com/zknill](https://github.com/zknill/sqledge)
- Points: 13
- Comments: 0

## Topic Body

- Postgres 논리적 복제를 이용해서 변경 내역을 SQLite로 스트리밍  
- Postgres Wire Proxy를 내장하여 Postgres에 접속하듯이 실행   
  - 읽기는 로컬 SQLite에서 실행하고, 쓰기는 복제하고 있는 업스트림 Postgres로 포워딩   
  - 이를 통해서 앱을 Edge에서 로컬로 빠르게 실행 가능하게 하고, eventually consistent 한 데이터 접근을 구현   
- 현재는 별도 SQL 변환 작업은 하지 않으므로 SQLite에 적용가능한 구문만 이용해야 함(간단한 SELECT 같은 것. Postgres 전용 함수 및 문법들은 불가)

## Comments



_No public comments on this page._
