Skip to content

Best Practice: Flat File vs Database #1053

Closed Answered by elrido
Mushoz asked this question in Q&A
Discussion options

You must be logged in to vote

Given that we now include a migration script, to switch between backends, should you outgrow them, you are now less locked into one of the solutions. My advice would be along these lines:

  • If you want to host the instance on a budget, on a small VM or an older model of single board computer at home, consider the Filesystem storage, as it has the least dependencies and will run with little resources. The privatebin.net demo instance uses it and runs on a 512 MiB of RAM VM. It certainly lends itself more to single instance setups, though could be scaled out, with the use of NFS or similar networked filesystems.
  • If you want a redundant setup or be able to scale out horizontally in the future…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rugk
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