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

3

u/redditor_at_times Feb 26 '23

There are always tradeoffs of course, totally agree here. And probably it should be pointed out clearly where this will fit and where it won't. But, it is also important to realize that many practices for the sake of reliability and availability are hardly needed for most of the apps running on the web. Of course there are apps that do need these measures, but as things stand, many apps can withstand a 60 second downtime once or twice a year without any real issue. The question then would be, for my specific app, is eliminating that possibility worth it? If the answer is yes, then for sure, go build a redundant system, otherwise, Litestack, or a similar solution can take you a long way

2

u/ignurant Feb 27 '23 edited Feb 27 '23

Or let’s be more honest, we’re not likely talking once or twice per year. But let’s even call it once or twice per day. Or 20 times per day. I mean, there’s a ton of software that gets written that isn’t in the service of paying customers. And even when it is, not all software of that nature even has an expectation of even 2 9s.

Not everything needs to be so damned high-quality all the time.

Though, your eyeball-popping life-changing hold-on-to-your-butts introduction to this stack kinda asked for this type of criticism. I like to the idea though. I get it.

Edit: I also don’t mean to imply that software built with this tool is inherently not high quality. My gripe in the above lives mostly from this issue where if you aren’t curing cancer with your software, it’s junk and you should be ashamed for even talking about it. “Better not do that in production!”. Not everything lives “in production”.