News for hackers. Stuff that matters.
Re:Web apps built with Ruby on Rails by npalli on Friday January 10, 2025 @11:27AM (#42657091)
This site won't load for me, that in itself strongly suggests it was built on Ruby on Rails.
Re:Web apps built with Ruby on Rails by evantbyrne on Friday January 10, 2025 @11:33AM (#42657152)
Websites crashing under unusually high load typically has more to do with a lack of caching or undersized db than choice of backend.
Re:Web apps built with Ruby on Rails by yesdocs on Friday January 10, 2025 @11:35AM (#42657165)
This has been my experience as well. Rails can do a lot, but it also allows you to develop junk. Most sites built in Ruby end up in the latter category, especially if built by a team that doesn’t use basic software architecture patterns.
Re:Web apps built with Ruby on Rails by Alifatisk on Friday January 10, 2025 @11:44AM (#42657255)
HNs hug of death does not apply to Rails only
Re:Web apps built with Ruby on Rails by xyzzy4747 on Friday January 10, 2025 @11:56AM (#42657397)
Well actually, if they had used Next.js deployed via Vercel or something similar, it would have been statically cached on a CDN and prevents issues like this. But because they want to use older technology that's more difficult to cache and proxy, this happens.
Re:Web apps built with Ruby on Rails by clivestaples on Friday January 10, 2025 @01:35PM (#42658529)
Can you point us to your Vercel apps and what kind of traffic you're dealing with?
Re:Web apps built with Ruby on Rails by matthewmacleod on Friday January 10, 2025 @01:55PM (#42658761)
God, this reminds me of the worst sort of discussions I’ve had with people who don’t understand the technologies they are working with. I’m sorry for being so negative, but “older technology that's more difficult to cache and proxy” is just nonsense.
Re:Web apps built with Ruby on Rails by clivestaples on Friday January 10, 2025 @03:07PM (#42659558)
It's nonsense and worse: hype. I recently went through a bunch of Vercel apps and compared them to some of my favorite Rails/Django apps. The best performing Vercel apps were on par at best.
Re:Web apps built with Ruby on Rails by kyrylo on Friday January 10, 2025 @11:51AM (#42657338)
I rescaled my VPS. Let me know if you still experience issues.
Re:Web apps built with Ruby on Rails by ndriscoll on Friday January 10, 2025 @11:53AM (#42657367)
Out of curiosity, what kind of request/second are you seeing and what was your before/after VPS cores? Is it built with rails?
Re:Web apps built with Ruby on Rails by kyrylo on Friday January 10, 2025 @12:29PM (#42657745)
I don’t measure req/sec here, but at one point, I had 2.8k visitors in an hour. Before rescaling, it was running on Hetzner’s CPX11—2 vCPU cores shared with a few other Rails apps. (I didn’t expect it to go viral at all)
Re:Web apps built with Ruby on Rails by kyrylo on Friday January 10, 2025 @12:30PM (#42657754)
I forgot to mention that yes, it's built with Rails. https://weuserails.com/ruby-on-rails-websites/we-use-rails