Code Monkey home page Code Monkey logo

Comments (7)

andypike avatar andypike commented on July 17, 2024 1

Out of curiosity, do you know how this compares with jsonapi-rb (http://jsonapi-rb.org)? We've started migrating from AMS to jsonapi-rb due to the performance improvements it gives. I'd be interested in how this compares also.

Thanks!

from fast_jsonapi.

pplant avatar pplant commented on July 17, 2024 1

@grossadamm first of all thanks for your replay. To be clear I'm not trying to troll you guys nor I'm a defender of AMS preaching it to be the silver bullet. On the contrary I think AWS is a major bottleneck in many APIs thats why I'm interested to understand what exactly makes fast_jsonapi more performant than AMS.

Apart from the possiblity in AMS to set different adapters which apparently have a variable impact on the performance of the serializiation what makes fast_jsonapi still ~10x-15x faster?

from fast_jsonapi.

grossadamm avatar grossadamm commented on July 17, 2024

It is entirely possible that AMS may be faster at serializing other formats, but we are focused on serializing to the jsonapi spec. It is also entirely possible that you don't want or need the jsonapi spec and that AMS is the better choice for you. That's ok :).

This gem does not attempt to compete with AMS on the ability to output into multiple different formats or on the amount of customizability.

Does that help explain the benchmarks better?

from fast_jsonapi.

grossadamm avatar grossadamm commented on July 17, 2024

@andypike I think that's definitely worth comparing and benchmarking against!

@pplant No offense taken at all :). In fact, it's these kind of discussions that I personally believe add the most value to the community. Asking why is incredibly important and could even lead to a better solution. To that end, I'm going to actually ask @shishirmk or @sriniwasgr to step in as they did most of the deep digging into why AMS was slower than what we wanted.

from fast_jsonapi.

grossadamm avatar grossadamm commented on July 17, 2024

We are putting together a longer writeup, but in a nutshell, the gains were mostly found by focusing just on JSON API and homogenous lists.

from fast_jsonapi.

sriniwasgr-zz avatar sriniwasgr-zz commented on July 17, 2024

@pplant Here is the link to the performance doc. Hopefully it helps in answering your question.

from fast_jsonapi.

pplant avatar pplant commented on July 17, 2024

Thanks! Awesome write up. Think we can close this issue unless somebody else has further questions.

from fast_jsonapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.