Isomorphic Javascript: Angular.js is not the answer
I had an epiphany this year about the future of web application.
I didn’t know how to call it then, but other people were smart enough to name it: Isomorphic JavaScript.
Building web apps still consists of two parts today: server side and client side. Not long ago we’ve written the server side code with Java/Ruby/.NET and the client side with JavaScript.
Node.js opened the door for server side JavaScript and allowed us to reuse the exact same code on both platforms. There are a few isomorphic platforms out there, but the quest is still open and none of them are great and complete.
As I see it, an isomorphic web app needs to complete this pipeline to serve a page:
Route requests -> Fetch information -> Parse information -> Render page -> Wire JavaScript
This pipeline needs to be completed both on the server side and the client side for an app to allow maximum experience for the user.
I’m gonna write more in the future about this pipeline and the way I think it should be solved, but one thing is important to note:
Angular.js apps requires the DOM to render
If the rendering step is to be done with Angular.js on the server side, it will be slow and consume a lot of memory for each request.
Angular.js isn’t abstracting the DOM to make it isomorphic.
Backbone.js / Ember.js / React?
I don’t know who will win. All of the above have pros and cons. React seems like it could be a good fit for isomorphic apps, but who knows, maybe we need a whole new framework.
Have you had any experience building an isomorphic web app?
Tal Bereznitskey