The way Node.js handles many Netflix user interfaces

Changing the user interface to Node.js, Netflix can streamline development, cut construction time, and increase UI customization for each user.

“Node is really an attractive choice for us, because it fits well with the skills of UI engineers,” said Kim Trott, director of Human Interface Development. use at Netflix. Trott will give a speech about Netflix using Node in the NodeSummit Interactive conference next week in Portland, Oregon.

Traditionally, Netflix uses Java technology for its business, but “when we move from traditional Data Center to Cloud system, we have also switched to more service-based architecture” Trott to speak. The company is in the process of dismantling what used to be a monolithic Java service to a smaller set of services. Java still plays a major role in handling Netflix's backend, but everything the user sees will come from Node.js

Node.js is a server-side JavaScript language, allowing developers to program both Front-end and Back-end for their Web applications. Node.js is built in an event-driven architecture, which is a particularly suitable platform to expand with microservices.

To build a professional website on Node.js, consult Node.js course to build high-speed web site and Arrowjs.io Core – CMS

User interface design (UI design) at Netflix requires very strict. The company's services are available for a variety of devices, from Web to Mobile, to dedicated Console machines. Front-end engineers "had to write a lot of Java code to build on the website, but at the same time they also had to write a lot of client-side JavaScript code," Trott said. With Node.js, they can do all their work in JavaScript. Netflix UI team uses the Node platform for Video services.

Node also significantly improves construction time. Java applications can take up to 40 minutes to boot. "The development team could not move faster than they wanted."

Học lập trình web online bằng công nghệ Nodejs
Node.js architecture is used at Netflix

The future of Netflix and Node

In the future, Netflix will also use Node for its data access layer, in addition to building the current user interface. The Netflix client part writes scripts with an API instead of having to write for hundreds of services. When deploying scripts in the API service layer, the client draws from a collection of storage classes, such as subscriber information, metadata data about movies, subtitle information, and more. Currently, API scripts are deployed directly to a single API service, limiting the ability to scale or isolate issues that arise.

Thus, Netflix is ​​currently developing a way to write scripts as separate Node applications. If a script fails, it will only hinder or kill its own service, not the entire system. These Node applications will run on Docker containers alongside Amazon Web Service's Elastic Container Service (ECS), a Netflix-selected infrastructure service provider. This allows containers to run locally and debug local, rather than debugging with the monolithic API server at local.

Học lập trình web trực tuyến bằng công nghệ Nodejs
Javascript Client & Server Side architecture at Netflix with Node.JS

Node has proven usable, and our company is expanding its use in other layers of the system, Trott said.

Netflix is ​​increasing their use of Node a step further with Codex, which is a set of capabilities to provide specific features to specific customers, depending on customer settings with devices. using.

For example, if a Netflix customer owns an Xbox, in Codex, developers can customize a JavaScript package that will target that Netflix subscriber and their specific entertainment setup. Codex will be of particular interest to companies working with cross-platform Web services. It can also assist in A / B testing testing.

Netfix is ​​planning to release Codex next year as an open source project, Trott said.

ITZone via Techmaster

Share the news now