ActiveModelSerializers is becoming a hazard. What do you use for your backend API?


#1

I’m concerned about the lack of any progress or unification on the AMS project, and the fact that there’s maybe three different versions each with their own tradeoffs and caveats. For example, Caching is an ugly problem to solve with later versions, but earlier version don’t cache sideloaded relationships.

What are you using instead of AMS?


#2

I use Ember-Pouch connected to CouchDB. You can try the Iris Couch backend for free and/or run your own Apache CouchDB.


#3

Although I agree that the lack of progress seems a little worrying AMS 0.8 has been working like a charm for me. I love using it and there’s not a lot that I’m missing currently so I just continue to use it.


#4

JBuilder. It can be a bit verbose, but I like the full transparency. Deadly easy to partialize and cache.


#5

I use rabl or rabl-rails. It’s little bit faster than jBuilder.


#6

I can’t stand rabl’s DSL. :slight_smile: Most of jbuilder’s slowness comes from partial rendering, I find. Wrap those in a cache statement and it blazes.


#7

https://github.com/apotonick/roar looks pretty interesting too!


#8

I’m using https://github.com/ismasan/oat. It’s lacking some features but it’s been fairly easy to augment. I added support for schema inheritance, blocking circular references, and polymorphism fairly easily. Using JSON-API (with https://github.com/kurko/ember-json-api) has several advantages as well.