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 is the meaning of architecture in web development

2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

Most people do not understand the knowledge points of this article "what is the meaning of architecture in web development?", so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "what is the meaning of architecture in web development" article.

Meaning of Architectur

Xiao Shi recently joined a fresh e-commerce company. The first task of the company now is to make the e-commerce system so that users can buy the company's fresh products through PC and App.

Key words: system, the so-called system can be simply understood as what we usually call applications, of course, the system can contain multiple small systems, here for the sake of simplicity, let's assume that only such a single application is developed. contains the basic function of the user to place an order to purchase.

Through the analysis of other e-commerce systems, Xiao Shi knows that at least user registration login module, user information module, commodity module, order module system can operate.

The function of the system has been determined, what language should be chosen for development? What kind of development method do you choose? After discussing with you, we think that the primary goal at this stage is to make the system quickly, so we decided to use PHP to develop, and decided to use Yii2 framework, database using MySQL,WebService using Nginx.

Key words: framework, in order to quickly complete the development of the system, we will use some specifications that have been confirmed by industry practice, such as the use of YII2 framework, that is, the use of industry MVC specifications. Therefore, it can be considered that the so-called framework is to determine some industry norms, to some extent, to form constraints or regulations that everyone can understand.

From the beginning to the present, we have not written a line of code, but we have been designing and discussing what functions are needed and what structure is used in the design. The structure here mainly includes two aspects: the logical structure and the physical structure. The so-called logical structure refers to what kind of process the system runs and what functions are needed to support it. The so-called physics is the form in which the system will be deployed and run after the coding has completed all the logic.

So what exactly is architecture? My understanding of the architecture: the logical and physical design of the system at the beginning of the system. It is a sketch of the system, which can be compared to a design in the field of architecture. This picture needs to be determined:

Division of functional modules for business needs (architectural design needs to divide regional functions)

Technology selection, what frame, what storage, what cache (the construction field should also confirm the frame structure or frame-shear structure)

Architecture is evolutionary.

Version 0.1 of an architecture is by no means perfect, and there is no perfect architecture in the world. Like the short story above, we use the simplest architecture, such as the following (physical point of view):

We write all the functions in one code, all the data is stored in one library, all the code is deployed on the same Nginx, and maybe even our Nginx and MySQL are deployed on the same machine.

The company's business has developed, the number of people has increased, and the system has become more complex. At this time, the original architecture can not meet the rapid development of business, and can not make multi-person development enjoyable. Because dozens of people are coding in the same code, they all have big heads. File conflicts, functional dependencies, bug troubleshooting, and testing capabilities cannot be happily resolved. At this point, the architecture has to be redesigned according to the new situation.

We split the code function, split the previous modules into independent systems, design MySQL as master and slave, use Nginx as load, and so on.

So why not split it up in the first place? Because at the beginning, the manpower is understaffed, the split is too fine, the development cycle is slow, and the business does not need to be divided in such detail.

The above is the content of this article on "what is the meaning of architecture in web development". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please follow the industry information channel.

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

Internet Technology

Wechat

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

12
Report