Skip to content

LiteFS + Caching #859

Answered by kentcdodds
heauton asked this question in Q&A
Sep 24, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

The proxy is only necessary to solve consistency problem: https://github.com/fly-apps/litefs-js

The cache is a bit different since we actually often update the cache on GET requests and we don't want to make the user have to go to the primary on those requests (it defeats the purpose of replicas) which is why we act as our own proxy with updatePrimaryCacheValue. So yes, you're correct, if you're not using litefs for your primary database you can delete the proxy config. Make sure you update your PORT in your Dockerfile to be 8080 since the litefs proxy server won't be listening on 8080 anymore.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@heauton
Comment options

Answer selected by heauton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants