The ember data also sucked ass, but people's counter argument was it wasn't essential.
Ember object's are fucking huge! The code is intermixed with html code versus Angular where's you write "directive" and just have tag property and html tag and javascript code refer to the special html tag or property.
At the time Ember is slow as hell compare to angular and it was much late to the game than Angular. So the documentation was sparse and and every RC release had broken changes. Yeoman tooling wasn't really there and we had to use an alternative, Brunch which was buggy and mostly in Coffeescript.
Anyway, project ended and I was left and never wanted to do front end again.
Perhaps they fixed it, but I'm pretty damn sure the objects are still big, still have mixing javascript and html code, and probably still slower than angular
edit:
Oh ember library is freaking huge compare the angular. DI in angular is amazing for testing. Ember had a chrome plugin debugging tools which was nice but the Angular baranga or whatever was better.
It's amazingly useful and it takes up very little space. We just set it and forget about it and it works without any trouble. We mostly cache sessions. I hear the code is beautiful.
dude look into it. its essentially a data structure server. its a great/smarter alternative to memcached if you are using a dedicated server for the instance (it doesn't support clustering, yet). you get all these neat data structures that have tons of practical applications (sorted sets for super fast ranking of data, lists, set intersections for uniq'ing different sets, set unions for combining multiple sets, hashes, etc...) whereas memcached just hosts key values.
so say you have reddit. you can fetch the front page of reddit from a relational database, stick it in redis as a sorted set (with its values being references to the hashes of each post, and also since its a sorted set, it will naturally be sorted by whatever score you give each set member, e.g. sorted by the amount of upvotes, created date (new), or whatever ), then serve that to every user for the next 5-10 minutes (since were using sorted sets and have optimistic locking, updating the score when someone votes is very quick, not to mention serving that set to 1000's of people is super quick). then after the time window closes and you need to essentially 'sync' the redis set with the relational database (every 5-10 minutes). rinse and repeat.
idk if that was clear or not, but essentially you grab stuff from the db, perform high volume serving/updating in redis, then persist it back to the relational database.
you went from hitting your database 1000+ of times a minute for that content, to ideally once or twice every 5 minutes.
5
u/smartj Apr 23 '14
The OP should try Ember if he really wants to induce a stroke.