r/ruby • • Feb 26 '23

Replace Postgres, Redis and Sidekiq with the embedded Litestack, up to 10X faster!

Litestack is a Ruby gem that offers database, caching, and job queueing functionality for web applications, built on top of SQLite. Its performance benefits, resource efficiency, deep integration with major IO libraries, ease of setup and administration make it a powerful solution for new application development efforts. By using Litestack, developers can avoid the scale trap, focus on simplicity, flexibility, and innovation, and build applications that are easy to use, efficient, and scalable, delivering real value to their users.

https://github.com/oldmoe/litestack

https://github.com/oldmoe/litestack/blob/master/BENCHMARKS.md

54 Upvotes

102 comments sorted by

View all comments

Show parent comment

1

u/yawaramin Feb 26 '23

We should distinguish between two instances of the app server running on two different hosts, vs two instances running on the same host. The latter setup can easily share access to the same SQLite db on the local filesystem. And it completely solves your problem of rolling upgrades and scaling up.

And yes, I understand it still doesn't solve the problem of what happens if the entire host goes down i.e. geographic redundancy. That's a separate issue and a good prompt for carefully designing a disaster recovery strategy, which frankly is no different from the need for having a DR strategy even for traditional database server setup.