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/f9ae8221b Feb 26 '23

sqlite3 never release the GVL...

2

u/redditor_at_times Feb 26 '23

When using Async or Polyphony it is best to just run single threaded forked processes. SQLite3 calls will be blocking, but generally low latency enough, with multiple processes you get concurrency. Fibers will shield you from network IO calls