r/javascript • • Aug 11 '15

Netflix.com Adopts Universal JavaScript, Drops Java From Rendering Pipeline

http://www.infoq.com/news/2015/08/netflix-universal-javascript
482 Upvotes

115 comments sorted by

View all comments

2

u/bayhack Aug 11 '15

Wait so they just changed their server side code from some java backend to a JavaScript backend?

16

u/trippel Aug 11 '15

Still a Java backend, but Node is what can be considered the front of the backend.

4

u/fooey Aug 11 '15 edited Aug 12 '15

Node's really great at being middleware for aggregating data from multiple sources and feeding that down to the client.

It's like a denormalizing layer for APIs.

I think GraphQL is really going to promote Node for those sorts of uses.

2

u/trippel Aug 12 '15

Indeed, Netflix has been doing this for a while now, Walmart Labs, PayPal, and even the company I'm working have dropped their Java-based services for Node in this area. It's a really excellent separation of concerns and allows us frontend engineers to have better control over the content we're responsible for.

4

u/brintoul Aug 11 '15

mindblown.

11

u/juhmayfay Aug 11 '15

No. They just stopped using java for rendering web pages.

5

u/bayhack Aug 11 '15

oh i see the api's and all are still java, but the templating and etc is going to be done in js. sorry just making sure i have a clear understanding of this

1

u/DarkMarmot Aug 12 '15

no -- the web services from client to server are node.js -- the internal web services from server to server inside netflix are java being called by node.js...

1

u/bayhack Aug 12 '15

Yeah that's what I meant all the back end servers are java nd server to client is node.js

7

u/Booty_Bumping Aug 11 '15

Isomorphic javascript means you're rendering the HTML on the server using javascript, then once the page loads, use the same code to make the page dynamic. Doing this makes it easier for search engines, and increases the page load time.

React combined with browserify is a common way to make isomorphic web apps.

2

u/MrBester Aug 12 '15

No. "Isomorphic" JavaScript is simply JavaScript that doesn't care if it runs on the server or the client. What it is used for is irrelevant.

1

u/bayhack Aug 11 '15

awesome thanks! I get it a bit better now.