Architecture selection of Nodejs and Java

Abstract:  Foreword: More and more colleagues around me are talking about Nodejs, about its asynchronous IO, event callback, and unified front-end and back-end languages. Friends who started a business also chose Nodejs for their first entrepreneurial project, hoping to use one language. Save costs and quickly complete requirements development. When I chatted with my colleagues in other project groups , I was laughed at by them about the selection of Java .

Foreword:

 

More and more colleagues around me are talking about Nodejs, about its asynchronous IO, event callback, and unified front-end and back-end language. The first entrepreneurial project of a friend who started a business also chose Nodejs, hoping to use one language to save costs and complete it quickly. Requirements development. When I chatted with my colleagues in other project groups, I was laughed at by them about the selection of Java. Moreover, it is found that more and more front-end colleagues can easily start the development of back-end functions through Nodejs, which makes them feel the pressure as a back-end development engineer.

Taking the opportunity of the new project to systematically understand the knowledge system of Nodejs, this article summarizes the Nodejs technology that I have learned, and compares it with the related technologies of Java, which is provided for other architects considering the selection of two languages. Decision-making basis for selection. In order to avoid controversy, this paper avoids the recommendation of language selection, nor does it make predictions about future development trends.

 

Linguistic background analysis:

 

A simple comparison of the two languages ​​shows that a doctor is better at things with technical depth, and the technology of the computer major is not necessarily the contribution of the computer major:

Nodejs

 

Java

 

Ryan Dahl, a non-mathematician,
started to study website development in 2006, became a high-performance web server expert after 2 years, and founded Node 3 years later.

 

Started developing Node in February 2009, and delivered a speech on Node.js at the end of the year

 

Developed in 2010 sponsored by the startup Joyent

 

In 2013, the update was slow, the activity was reduced, and it was entangled in the development of stable kernel and new features

 

In August 2014, several important core contributors initiated the organization (the predecessor of io.js), and since then, the rapid development, radical new functions, high-speed version iteration, and quick response to feedback and resolution of problems, in May 2015, both the Node.js project and the io.js project were Will join the Node.js Foundation, io.js will be merged as it continues to develop, and the next version of Nodejs will go directly to 2.0 across 1.0

 

James Gosling, PhD in computer science from Carnegie Mellon University, wrote the multiprocessor version of the Unix operating system and was the founder of JAVA.

 


On May 23, 1995, the Java language was born

 

In January 1996, the first JDK-JDK1.0 was born

 

In September 1997, JavaDeveloperConnection community members exceeded 100,000

 

In February 1998, JDK1.1 was downloaded more than 2,000,000 times

 

2009-04-20Oracle acquired Sun for $7.4 billion. Obtain the copyright of Java;

 


On March 19, 2014, Oracle Corporation released the official version of Java 8.0.

 


From 2000 to today, the programming language rankings have been ranked first and second

 

 

Language and SDK analysis:

 

Nodejs's choice of javascript syntax leads to its basic characteristics of flexible, process-oriented, single-process single-threaded execution. However, proud of the flexibility of its language, some object-oriented features can also be implemented through logic code, but hindered by the development speed of ECMAScript, the overall transformation of Nodejs to enterprise-level application syntax is still temporarily slow. The asynchronous IO event callback featured by Nodejs makes it more suitable for server programming, and its single-process and single-threaded characteristics make development easier. The active languages ​​of Kawasaki and the community are in rapid development, and the SDK continues to develop steadily and enrich.

In contrast, Java is object-oriented and has all the characteristics of object-oriented. After 20 years of development, it has become more powerful and stable. Compared with Nodejs, Java is a technical giant who has done a lot of work in various fields. However, because of this, the cost of learning Java is a lot higher than that of Nodejs. Every small technical aspect can be found in a thick book. Come. New technology for asynchronous IO event callbacks Java also provides support in its new SDK to keep up with the times

​​​​​​​

Original link

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326564321&siteId=291194637