Modern Ruby Serializers
vasilakisfil.social
vasilakisfil.social
Personally, I don't like fast_jsonapi because it's impossible to retrofit an app that already exists to it. The standard is so specific (and, in my opinion overkill unless you're Netflix) that it's just not the right fit for a lot of APIs.
For my next project, I used `blueprinter`, which seems to be pretty fast in its own right (there was no discernible difference from what I could tell).
Overall I i'd like to give fast_jsonapi another try, but only once I see serialization is my bottleneck
Companies love to talk about how they support FOSS during recruiting, but they can't even be bothered to formally update the repository with a deprecation notice when they decide it's no longer in their interest to support a project. And in this case, a lot of people rely on this package.
I don't necessarily think that companies should be expected to maintain OS packages they write forever, but respecting the community by openly communicating their plans for the project instead of making end users figure it out should be the bare minimum for acceptable stewardship.
Just abandoning this project without a heads up is some bush league BS by Netflix.
But in my experience with the fast_jsonapi, It's the only one I've used in Rails where the serializer is faster than the database calls consistently and occasionally sub millisecond.
It's a fancy name for turning internal program data into a stream of bytes (thus the "serial" for "sequential") you can send to another program/computer or save to disk.