Skip to content

Rails: Pros and Cons

Rails has been in production for two decades, which means the arguments about it have largely settled. What follows is the version you can defend in an interview: what the framework genuinely buys you, what it genuinely costs, and where the common claims are simply wrong.

“Rails is optimised for one thing: getting a CRUD-shaped product to market with a small team, and keeping it changeable for years. Convention over configuration removes decisions; the integrated stack means one language and one deploy for routing, views, jobs, mail and WebSockets; Active Record makes the common 90% of database work a one-liner. The costs are real: the framework is opinionated, so fighting it is expensive; Active Record makes it easy to issue N+1 queries without noticing; upgrades are a periodic, non-trivial project; and Ruby’s throughput per process is lower than Go or Java, so you scale with processes and caching rather than raw speed. That last point is a capacity-planning fact, not a scalability limit — Shopify, GitHub and Basecamp run Rails at very large scale.”

  • Time to first feature. A scaffolded CRUD flow is minutes, not days. That matters enormously for validating a product.
  • One language, one codebase. Models, views, jobs, mailers, WebSockets and tests are all Ruby. No serialisation boundary, no duplicated types, no separate deploy for the front end.
  • A settled idiom. Any Rails developer can navigate any Rails app: app/models, app/controllers, config/routes.rb, db/schema.rb. Onboarding cost is low.
  • The gem ecosystem. Authentication, payments, admin, search, file processing — mature libraries with years of production use.
  • Convention as guardrail. A junior developer’s code tends to look like the rest of the codebase, because the framework pushes them there.
  • Batteries that are actually maintained. CSRF, XSS escaping, signed cookies, credentials, Active Storage, Action Cable, a test harness — all in the box, all documented.
Cost What it looks like in practice
Opinionated structure Fighting the framework (custom autoload paths, non-REST controllers) is slower than following it
ORM leakage N+1s, missing indexes, and queries you did not know you wrote
Callback coupling post.save triggering eleven side effects across five models
Upgrade cost Rails 5 → 7 is a project, not a chore; gem compatibility is the long pole
Runtime speed Lower requests/second per core than compiled frameworks; you scale out
Front-end churn Sprockets → Webpacker → importmaps → jsbundling; Turbo after UJS after rails-ujs
Hiring pool Smaller than Node, Python or Java in most markets

None of these is fatal. All of them are things a senior engineer should be able to name and price.

“Rails does not scale” is the most common wrong answer in a Rails interview. What is true:

  • A single Rails process handles fewer requests per second than a single Go or Java process. You need more processes, which means more memory.
  • Ruby’s GVL means CPU-bound work does not use multiple cores in one process. You run multiple workers (Puma) and move CPU-heavy work to jobs.
  • Long-running requests hold a worker. Slow third-party calls must be moved to jobs or given timeouts.

What is not true:

  • That the framework prevents horizontal scaling. Rails apps are stateless given a shared database and cache; you run N containers behind a load balancer.
  • That ActiveRecord cannot handle large tables. Indexes and query plans are the database’s, not the ORM’s.
  • That monoliths cannot grow. Shopify runs a large Rails monolith; GitHub runs Rails behind heavy caching and a lot of engineering.

The honest framing: Rails costs you CPU efficiency and buys you development efficiency. If your bottleneck is requests per dollar at massive scale, that trade may be wrong. If your bottleneck is shipping features, it is usually right.

  • CRUD-heavy products: marketplaces, SaaS dashboards, internal tools, admin backends.
  • Small teams that need full-stack velocity: one or two developers shipping end to end.
  • Products whose shape will change. Rails’ conventions make refactoring cheap.
  • Server-rendered UI with modest interactivity — Hotwire covers most “we need a SPA” cases.
  • Teams already fluent in Ruby.
  • Hard real-time or CPU-bound workloads — trading engines, video transcoding, simulation. Use a service in another language.
  • Extreme throughput at low latency — where per-request overhead dominates.
  • A team with no Ruby experience and a hard deadline. Rails is learnable, but not in a week under pressure.
  • A domain that fits the framework badly — heavy event sourcing, complex multi-tenant data isolation, or a data model where Active Record’s one-table-one-class mapping is a constant fight.
  • Environments with no tolerance for frequent upgrades — long-term-support expectations are not Rails’ strength.
Rails Django Laravel Node + framework
Convention strength Very high High High Low (varies)
ORM Active Record Active Record-ish Eloquent Varies (Prisma, TypeORM)
Real-time built in Yes (Action Cable) Channels (ASGI) Broadcasting Yes, native
Runtime speed Moderate Moderate Moderate Good
Ecosystem maturity Very high Very high High Very high

The differences that matter in practice are hiring, team familiarity and how well the framework’s defaults match the domain — not benchmark numbers.

  1. What would make you choose Rails over Django or Laravel for a new project?
  2. How would you scale a Rails app that is CPU-bound?
  3. What is the migration path off a Rails monolith, and when is it worth it?
  4. Which Rails features would you disable for a JSON API?
  5. How do you keep a Rails app upgradeable over five years?
  • “Rails cannot scale.” Wrong, and it signals inexperience. Say what actually costs you instead.
  • “Rails is fast to build, therefore it is a prototype framework.” Shopify and GitHub disagree.
  • Listing pros and cons without a decision. An interview answer that never chooses is not an answer.
  • Ignoring operational cost. Rails is cheap to develop and not free to run; say so.
  • Treating the framework war as technical. It is mostly a hiring and team-familiarity question.