[Rails] How We Reduced API Response Rendering Time by 30%

This page summarizes the projects mentioned and recommended in the original post on dev.to

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. daily

    daily.dev is a professional network for developers to learn, collaborate, and grow together 👩🏽‍💻 👨‍💻

    By chance, while browsing a site called daily.dev, I searched for Jbuilder alternatives and found an article about a gem called props_template. This gem will be the focus today.

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. jbuilder

    Jbuilder: generate JSON objects with a Builder-style DSL

    Jbuilder is a domain-specific language (DSL) integrated into Ruby on Rails for generating JSON responses. It allows you to intuitively build JSON responses as if you’re writing a view. However, performance issues can arise when handling large amounts of data.

  4. rack-mini-profiler

    Profiler for your development and production Ruby rack apps.

    I used the rack-mini-profiler gem to measure performance in our development environment. I prepared hundreds of thousands of data entries in the development environment and gathered samples from 10 requests.

  5. Jb

    A simple and fast JSON API template engine for Ruby on Rails

    Next, I investigated template engines. The first one I explored was a gem called jb, maintained by Ruby/Rails committer Matsuda-san. I replaced Jbuilder with it but didn’t see significant improvements.

  6. alba

    Alba is a JSON serializer for Ruby, JRuby and TruffleRuby.

    Other candidates included the following gems such as alba, active_model_serializers, and jsonapi-serializer. Considering team-wide adoption and maintenance, we preferred gems with syntax similar to Jbuilder if possible.

  7. ActiveModel::Serializers

    ActiveModel::Serializer implementation and Rails hooks

    Other candidates included the following gems such as alba, active_model_serializers, and jsonapi-serializer. Considering team-wide adoption and maintenance, we preferred gems with syntax similar to Jbuilder if possible.

  8. jsonapi-serializer

    A fast JSON:API serializer for Ruby (fork of Netflix/fast_jsonapi)

    Other candidates included the following gems such as alba, active_model_serializers, and jsonapi-serializer. Considering team-wide adoption and maintenance, we preferred gems with syntax similar to Jbuilder if possible.

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. props_template

    A very fast json builder for Rails

    Basic Information about props_template is a library that allows lightweight and fast JSON generation, with syntax similar to Jbuilder. It's developed by Thoughtbot, which is familiar with factory_bot.

  11. factory_bot

    A library for setting up Ruby objects as test data.

    Basic Information about props_template is a library that allows lightweight and fast JSON generation, with syntax similar to Jbuilder. It's developed by Thoughtbot, which is familiar with factory_bot.

  12. committee-rails

    rails and committee are good friends

    Our API specifications were managed with Open API, so we integrated it into committee-rails to conduct schema tests in our request specs. Since the Open API documentation formed the basis of our tests, we took time to review the payload schemas thoroughly.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Efficient JSON Serialization with Blueprinter for Ruby on Rails

    1 project | /r/rails | 28 May 2023
  • ActiveModel::Serializer and You

    3 projects | dev.to | 23 Sep 2022
  • What are you using for API JSON serialization in 2022?

    5 projects | /r/ruby | 20 Aug 2022
  • Hunting down spooky JSON module redefinition via Oj

    3 projects | dev.to | 26 Apr 2022
  • What is the best way to retrieve all instances of a model, along with it's associations, in an index action when using React (or not Rails Views)?

    2 projects | /r/rails | 5 Apr 2022

Did you know that Ruby is
the 12th most popular programming language
based on number of references?