Live data from Hacker News

An Introduction to LiteStack for Ruby on Rails

blog.appsignal.com

31–39 of 39 posts

Re: An Introduction to LiteStack for Ruby on Rails

#31
post #14

Oh dang I love this. I also wish someone would take something like this and go full Phoenix with it.

Phoenix already doesn't need Redis for asynchronous jobs and caching. I'm using Phoenix on SQLite on a project right now, and it's been working pretty flawlessly. It's as easy as `mix phx.new MyProject --database sqlite3`.

Re: An Introduction to LiteStack for Ruby on Rails

#35

VM with 1GB ram and some swap file can easily run rail app, Postgres and redis. With that you don’t have to limit yourself to not able to scale later. I never used sqlite, can it be used by multiple process simultaneously? Eg rails server and rails console

When you open your database connection in WAL journal mode, you can have multiple concurrent readers. This is the new default for all Rails applications. WAL mode doesn’t allow concurrent writers, but you are often talking about milliseconds to wait for the busy connection to resolve, and SQLite retries for you invisibly.

Re: An Introduction to LiteStack for Ruby on Rails

#36

What would be the deployment strategy here? Would it have to be manual deployments? Since the infrastructure for other approaches usually assumes that there isn’t any critical data on a single instance. The .sqlite file would have to be persisted somehow?

Yes, the .sqlite file needs to be persisted across deployments. It is fairly common for the /storage directory to be persisted across deployments. The Kamal deployment tool will use this directory. The Hatchbox.io service likewise uses a persisted /storage directory.

This doesn’t mean that you have to have manual deployments tho. You simply need a file system and some persisted storage, which you should already have as most deployment setups don’t want to nuke and pave every static asset on every deployment.

Re: An Introduction to LiteStack for Ruby on Rails

#37
post #9

The article is actually a great introduction to interfacing a Rails app to Replicate AI!

I agree. I didn't learn anything about using LiteStack in a Rails App, but I did enjoy the article and learned of a few new gems and services. The article is the first part of a series and so hopefully in the next part they get into the integration of LiteStack with the app.

They will
Post reply on HN