# LiteFS - SQLite DB를 클러스터에 복제하는 FUSE기반 파일 시스템

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

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=7058](https://news.hada.io/topic?id=7058)
- GeekNews Markdown: [https://news.hada.io/topic/7058.md](https://news.hada.io/topic/7058.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2022-07-28T09:31:57+09:00
- Updated: 2022-07-28T09:31:57+09:00
- Original source: [github.com/superfly](https://github.com/superfly/litefs)
- Points: 5
- Comments: 2

## Topic Body

- 패스쓰루 파일 시스템처럼 동작해서 SQLite DB의 쓰기 동작을 인터셉트해서 처리하여, 여러대의 머신으로 구성된 클러스터에 복제  
- FUSE 3 + Leader Election(Consul 세션) + HTTP Server (노드간 변경 수신용 API 서버)  
- 현재는 Linux에서만 동작   
- LTX(Liteserver Transaction File) 포맷으로 SQLite의 트랜잭션 데이터를 감지해내고, 트랜잭션 단위로 저장 및 복제  
→  WAL방식과는 다르게 replication에 적합하게 최적화된 포맷

## Comments



### Comment 11526

- Author: galadbran
- Created: 2022-07-28T09:50:33+09:00
- Points: 1

단순해서 간단히 쓰기 좋네? 어 일이 점점 커지네? 그럼  기능을 추가해야지  
약간 이런 흐름일까요? ^^;   
일이 커지면 어느 시점에선가 다른 디비로 갈아타야할 것 같기도 한데…

### Comment 11525

- Author: xguru
- Created: 2022-07-28T09:34:35+09:00
- Points: 2

SQLite를 좀 더 큰 영역에서 활용하기 위한 시도들이 많이 나오는 것 같아요   
  
- [Litestream - SQLite 스트리밍 복제 도구](https://news.hada.io/topic?id=6438)  
- [저는 서버사이드 SQLite에 올인합니다 ](https://news.hada.io/topic?id=6557)  
- [rqlite - SQLite 기반의 가벼운 분산 데이터베이스](https://news.hada.io/topic?id=3636)  
- [Dqlite – High-Availability SQLite](https://news.hada.io/topic?id=441)
