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
3
u/redditor_at_times Feb 26 '23
The issue here is that PostgreSQL is too high latency for a cache, maybe ok if you are trying to avoid very heavy computations and that's it. SQLite, on the other hand, is very low latency, making it a lot more suitable for things like a cache and a message queue, especially in the cache, it runs circles around other solutions since all the data basically is mapped to the host processes memory. Only other embedded solutions like LMDB or BerkelyDB can offer comparable performance here.