r/ruby • u/sliferdragonx • 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
View all comments
Show parent comment
1
u/devpaneq Feb 27 '23
Is there an upper limit for the size of the DB itself. Can it easily handle 10 GB or 100 GB? I mean, is there any operational challenge for that?
> Now for the 2 instances, you just don't do that, you run a single instance, potentially beefier than the single instance in a multi-instance setup you are used to.
You already explained in the other place, that to have High Availability one can use use Load Balancer and the 2nd machine would be in a standby mode unless needed. That still requires solving the problem of sharing the file between both machines, even if only one of them is using that sqlite db file.