Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What projects are suitable for nodejs

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces "which projects are suitable for nodejs". In daily operation, I believe many people have doubts about which projects are suitable for nodejs. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful for you to answer the doubts about "what projects are suitable for nodejs?" Next, please follow the editor to study!

Nodejs is suitable for doing projects: 1, "BFF O" intensive applications; 2, middle tier; 3, RPC services; 4, basic tools, example compilers, building tools, building scaffolding, etc.; 5, forum community system; 6, BFF applications; 7, Serverless;8, micro services, etc.

This tutorial operating environment: windows7 system, nodejs version 12.19.0, DELL G3 computer.

What does Node.js apply to?

Ipaw O intensive applications

The advantage of Node.js mainly lies in the event loop, non-blocking asynchronous Imax O, only one thread is opened, and I don't create a thread for every request, which results in resource overhead.

ResutFul API

Usually, we can use Node.js as the middle layer, which is responsible for assembling data to provide API interfaces for front-end calls. These data sources may come from third-party interfaces or databases. For example, in the past, we may do this through back-end Java, PHP and other languages, but now we front-end engineers can do it through Node.js, while the back-end can focus more on business development.

Now that ResultFul API is mentioned, by the way, I recommend a Node.js developed by YAPI: https://github.com/YMFE/yapi, an open source API management tool (it's not advertised here, but it's really great to use! I can't help recommending it to everyone! ).

RPC service

The Chinese name of RPC (Remote Procedure Call) is "remote procedure call", which may be strange to you, but in today's micro-service mode, we may service for functions or specific business forms. then the communication between services is a common mode that we all know to achieve through HTTP. Students who understand the network model may know that if we use TCP now, will it be more efficient?

Of course, HTTP belongs to the application layer protocol, and below this is the transport layer, which obviously has an advantage in the form of TCP. The RPC service is the TCP adopted. Now the famous RPC services such as Google's gRPC and Ali's Dubbo.

Basic tools

Can be used as a basic tool, front-end domain compiler, building tools, building scaffolding and so on. The more famous ones such as Webpack and Gulp are very successful.

Forum community

Nodeclub is a community system developed using Node.js and MongoDB. It has an elegant interface, rich features, small and fast, and you can use it to build your own community. The Cnode community is a successful example.

Backend For Frontend

Backend For Frontend, referred to as BFF, serving the back end of the front end, is not a new technology but a logical layering. In this layer, we can integrate some resources. For example, the front end needs to obtain resources from three different places. Then, with this layer, can we do an aggregation and return to the front end after unified processing? at the same time, we do not give changes to the back end system, resulting in changes.

Serverless

This will be a word often heard in the future, ServerLess is a "serverless architecture", it does not need developers to care about operation and maintenance, traffic processing, developers can pay more attention to the business itself.

Function is a service, so you can write a function to implement an API interface to the front end, which obviously reduces the development work a lot. In JavaScript, the function is a first-class citizen. In the ServerLess scenario, Node.js itself is also very lightweight, still has a great advantage.

Microservices (Micro Services)

Micro-service is also a hot word in the past two years. Here are several main features of micro-service: small service, running as independent process, and being able to use different languages. Here, you can choose different language implementations according to the business form. Node.js itself is also very lightweight and fast to implement, and it is very suitable for some I-map-O-intensive scenarios.

What scene to choose what tool, there is no best only more suitable!

At this point, the study of "which projects are suitable for nodejs" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report