graphql VS Ruby on Rails

Compare graphql vs Ruby on Rails and see what are their differences.

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
graphql Ruby on Rails
21 468
5,343 54,936
- 0.3%
9.8 10.0
6 days ago 5 days ago
Ruby Ruby
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

graphql

Posts with mentions or reviews of graphql. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-10-05.
  • Rails 7.1 Released
    8 projects | news.ycombinator.com | 5 Oct 2023
    My memory is fuzzy, but...

    1. all data flow through the rails app (no pre-signed s3 upload or download links for direct uploading).

    2. no support for CDNs (I think newer rails versions added support)

    3. blobs and attachments were unnecessary abstractions.

    3a. Querying was annoying and easy to add n+1 queries.

    3b. Images are moderated and it was unclear where to put the moderation metadata (on blobs? attachments? create a new table? why so many tables?). Accessing the data was annoying (you need extra joins).

    4. GraphQL gem didn't support it: https://github.com/rmosolgo/graphql-ruby/issues/1777

  • The GraphQL N+1 Problem and SQL Window Functions
    3 projects | dev.to | 7 Oct 2022
    In our Rails application, we use the popular graphql Ruby gem to resolve GraphQL queries. When used naively, it essentially resolves queries as a depth-first tree traversal, which leads to the N+1 problem in GraphQL.
  • Rookie question regarding Active Record and creating an empty array as a class variable
    1 project | /r/ruby | 9 Aug 2022
    If you're comfortable on the react/client side with graphql, I'd highly recommend plugging in https://graphql-ruby.org/
  • Gerenciando Múltiplos Schemas de GraphQL com Ruby on Rails
    2 projects | dev.to | 22 May 2022
  • What Would be Your Ideal Ruby Tech Stack
    3 projects | /r/ruby | 4 May 2022
    We use GraphQL, and Ruby GraphQL doesn't allow you to stream the result, it buffers it before sending back the request and there are no alternative. See my issue https://github.com/rmosolgo/graphql-ruby/issues/3969 -- Sadly there is only one library for GraphQL in Ruby.
  • A very simple GraphQL tutorial in Ruby
    2 projects | dev.to | 3 Mar 2022
    graphql-ruby is a Ruby gem that implements the GraphQL specification and functionalities.
  • GraphQL APIs in Rails
    3 projects | dev.to | 18 Feb 2022
    The next step is to add the GraphQL gem to our Gemfile; you can visit its page, graphql-ruby, for more details; now, open your Gemfile and add this line:
  • Anyone here turned their rails app into an API?
    3 projects | /r/rails | 12 Feb 2022
    If you do go the API route though, strongly consider using GraphQL with the (graphql-ruby)[https://graphql-ruby.org/] gem.
  • How to work with an external front-end developer?
    1 project | /r/rails | 17 Nov 2021
    GraphQL saves you time designing versioned REST endpoints. It self documents. Documentation isn't optional for serious web development so this is a huge win. The rails gems have gotten really good at picking up associations as well since I looked into a couple years ago. https://graphql-ruby.org
  • GraphQL The Rails Way: Part 1 - Exposing your resources for querying
    2 projects | dev.to | 4 Nov 2021
    When it comes to implementing a GraphQL server in Rails, one can use the excellent GraphQL Ruby gem.

Ruby on Rails

Posts with mentions or reviews of Ruby on Rails. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-05-07.
  • Rails Core Classes Method Lookup Changes: A Deep Dive into Include vs Prepend
    2 projects | dev.to | 7 May 2024
    on April 23, 2024, a PR #51640 was merged into main branch of Ruby On Rails. This PR title is Use Module#include rather than prepend for faster method lookup.
  • GitHub Incident with Issues, API Requests and Pull Requests
    1 project | news.ycombinator.com | 5 Apr 2024
    [0] is a my favorite demonstration of it.

    [0]: https://github.com/rails/rails/commit/b83965785db1eec019edf1...

  • Client side Git hooks 101
    2 projects | dev.to | 31 Mar 2024
    Here's a real life example: Imagine a Ruby on Rails app on which a team of developers are working. The code is hosted on GitLab and all the work is coordinated using GitLab issues. In other words: For every commit, there's an associated issue and the issue number acts as a sort of primary key for documentation, time reporting and so forth. This convention has a few advantages, most notably the ability to easily learn more about how, when and by whom features were implemented as well as how this implementation came to be.
  • 16 Best Ruby Frameworks For Web Development [2024]
    6 projects | dev.to | 11 Mar 2024
    Ruby on Rails is regarded as one of the best ruby frameworks. It was the primary language in developing big projects such as Twitter and helped the language boost the community. Often referred to as “Rails,” Ruby on Rails is a web development framework with an MVC control structure and currently running its 6.1 version. The 16-year-old language has dramatically influenced the web development structures and managing databases, web pages, and other components on a web application.
  • More control over enum in Rails 7.1
    1 project | dev.to | 29 Feb 2024
    In Rails 7.1, a new option _instance_methods is introduced, allowing developers to opt-out of the automatic generation of instance methods for enums. When enum is defined with _instance_methods: false, Rails will no longer generate methods like pending?, processed?, etc.
  • Ruby on Rails load testing habits
    5 projects | news.ycombinator.com | 25 Jan 2024
    Rails isn't super opinionated about database writes, its mostly left up to developers to discover that for relational DBs you do not want to be doing a bunch of small writes all at once.

    That said it specifically has tools to address this that started appearing a few years ago https://github.com/rails/rails/pull/35077

    The way my team handles it is to stick Kafka in between whats generating the records (for us, a bunch of web scraping workers) and and a consumer that pulls off the Kafka queue and runs an insert when its internal buffer reaches around 50k rows.

    Rails is also looking to add some more direct background type work with https://github.com/basecamp/solid_queue but this is still very new - most larger Rails shops are going to be running a second system and a gem called Sidekiq that pulls jobs out of Redis.

  • DHH installing Campfire (37s ONCE #1) [video]
    1 project | news.ycombinator.com | 19 Jan 2024
    I'm looking forward to see what extractions from this will land on rails. For example: https://github.com/rails/rails/issues/50454
  • First commits in a Ruby on Rails app
    6 projects | dev.to | 17 Jan 2024
    Here is what strict_loading does (source):
  • Continuous Deployment with GitHub Actions and Kamal
    4 projects | dev.to | 7 Jan 2024
    Kamal is a wonderfully simple way to deploy your applications anywhere. It will also be included by default in Rails 8. Kamal is trivial, but I don’t recommend using it on your development machine.
  • What's Coming in Rails 8
    1 project | news.ycombinator.com | 5 Jan 2024
    Here's the GitHub milestone I've based this article on — https://github.com/rails/rails/milestone/87

What are some alternatives?

When comparing graphql and Ruby on Rails you can also consider the following projects:

ActiveModel::Serializers - ActiveModel::Serializer implementation and Rails hooks

Roda - Routing Tree Web Toolkit

Grape - An opinionated framework for creating REST-like APIs in Ruby.

Hanami - The web, with simplicity.

Fast JSON API - No Longer Maintained - A lightning fast JSON:API serializer for Ruby Objects.

Sinatra - Classy web-development dressed in a DSL (official / canonical repo)

jbuilder - Jbuilder: generate JSON objects with a Builder-style DSL

CodeBehind Framework - CodeBehind library is a modern backend framework. This library is a programming model based on the MVC structure, which provides the possibility of creating dynamic aspx files in .NET Core and has high serverside independence.

json-serializer - Customize JSON ouput through serializer objects

Cuba - Rum based microframework for web development.

rabl - General ruby templating with json, bson, xml, plist and msgpack support

Padrino - Padrino is a full-stack ruby framework built upon Sinatra.