当前位置:网站首页>Introduction to class library, framework, module, component and other concepts
Introduction to class library, framework, module, component and other concepts
2022-06-21 22:21:00 【Rain and wind at night】
stay Introduction to software architecture One article , Define the essence of software architecture as elements (element) And the relationship between these elements (relation). here , Summarize the common elements in the software architecture , Facilitate unified communication . These elements include, but are not limited to, class libraries 、 frame 、 modular 、 Components 、 service 、 Platform, etc .
Class library (Library)
A class library is a collection of reusable functions or tools , Applications call them , So as to achieve the purpose of reusing functions . Simply speaking , Class library is a two-way package in daily development ( Internal public package )、 Tripartite package ( Third party public package ). say concretely , Such as front-end development of various basic script libraries 、Java All kinds of... That the project depends on jar package , It's all class libraries .
Class libraries differ according to their language or platform environment , It can be compiled binary execution code (xxx.exe) Intermediate code ( Such as jar package ) form , It can also be source code (JavaScript Class library in , Common in interpreting execution languages ). The calling relationship of class libraries is generally introduced into the target application in the development stage , The runtime executes the actual call .
Such as Java In development , The public hosting platforms of the third-party library include Maven Repository、 Alibaba cloud etc. .
frame (Framework)
A framework is based on a set of class libraries or tools , An open application skeleton composed according to certain rules in a specific field , such as Spring Framework、Angular、React etc. . The framework has the following characteristics :
(1) Supportability + Extensibility : The framework does not solve specific business function problems , Developers can add various specific business functions on the basis of the framework 、 Custom features , So as to form a specific business application system .
(2) Polymerization + Binding : The frame is a polymer formed by various technical points according to certain rules . The adoption of a certain framework means the technical selection of the framework . Identify a specific framework among the many possible technical alternatives , Other follow-up work will start from this , You also need to follow these rules , So the framework itself affects every aspect of the R & D process .
The scaffold
On a concrete framework , Add some basic or reusable functions , At this point, you get a structure between the framework and the application , It is generally called scaffold (Scaffold). Scaffolding can be used to quickly implement similar projects .
modular (Module)
A module is a division of a business or system according to a specific dimension , It can also be seen as a form of aggregation of various functions according to a certain classification . Like a website , On the one hand, it can be divided into registration modules in terms of business 、 Unregister module 、 Login module 、 Exit module, etc . On the other hand , It can also be said that the user module aggregates user registration 、 User authentication and other business functions . such , In the process of designing and developing applications , It can be organized according to modules . Modules are generally the decoupling partition of the system on a larger granularity , Second only to the system or subsystem level .
Components (Component)
A component is a set of reusable business functions , Contains some objects and their behavior . Components can be directly part of a business system , The granularity is generally smaller than that of the module , It is also a form of aggregation of functions , For example, log component 、 Permission components, etc . Depending on the form of the component , Differences in behavior and use , Components also have some extended concepts .
artifacts (Composite)
Component is a complex component form formed by the combination of multiple components with hierarchical composition relationship . Such as a front-end reusable page component , On the left is a combination TreeView Components , On the right is a combination GridView Components etc. .
parts (Widget)
The main components are UI Interface construction , Such as the weather widget of the operating system 、 Calendar widget, etc .
plug-in unit (Plugin)
When the system is running, it can be plug and play 、 Components that are disabled or uninstalled at any time , Generally, it has a definite life cycle and will not affect the main business . Such as IDEA All kinds of plug-ins 、Eclipse Plug-ins, etc. .
service (Service)
Structured information standards promotion organization (Organization for the Advancement of Structured Information Standards) Define a service as :
A mechanism that allows access to one or more functions , The access needs to use the specified interface , And consistent with the constraints and policies specified in the service description .
A service is a collection of functions that provide external business processing capabilities , Services need to use explicit interface methods ( Such as FTP、HTTPS etc. ), The service description should include constraints and policies ( Like parameters 、 Return value 、 Communication protocol 、 Data format, etc ). Microservice architecture The microservice in is consistent with the service concept here .
platform (Platform)
Generally speaking , A platform is an ecosystem in a field or direction , Is the master of many solutions , Provided a lot of services 、 Interface 、 standard 、 standard 、 function 、 Tools etc. . Such as J2EE platform , Including various technical capabilities for enterprise application development .
Reference resources
High availability scalable microservice architecture Cheng Chao Liang Guizhao Qin Jinwei Fang Zhibin younglab Waiting
边栏推荐
- Sampler collection
- Chess and card games
- Shanghai Xiangwei electromechanical Co., Ltd., a state-owned enterprise, has reached strategic cooperation with China and foreign countries and donated 200million yuan
- How to uninstall a package installed with the CONDA command
- Dragon lizard community established cloud native SIG and introduced three core technologies
- Leetcode question brushing: SF Technology Smart logistics Campus Technology Challenge
- GDB debugging practice (10) multi thread debugging
- [deeply understand tcapulusdb technology] table management of document acceptance
- 如何卸载用conda命令安装的包
- 精彩回顾丨一图了解华为云专场干货
猜你喜欢
![[deeply understand tcapulusdb technology] one click installation of tmonitor background](/img/33/7d390732d6e441a4311189b6e49474.png)
[deeply understand tcapulusdb technology] one click installation of tmonitor background

InstaDeep Ltd:Arthur Flajolet | 单机上基于群体的快速强化学习

弗吉尼亚大学:Ingy ElSayed-Aly | 多智能体强化学习中的基于逻辑的奖励形成

棋牌类游戏

IP guard printing control to prevent information disclosure of printing channels

【深入理解TcaplusDB技术】TcaplusDB业务数据备份

Enterprise data leakage prevention solution sharing

IP-guard打印管控,防止打印渠道信息泄露

PAML|计算dN/dS值的生信软件

B2B mall website helps enterprises speed up distribution and build an efficient and intelligent B2B online distribution platform
随机推荐
高项-立项管理
精彩回顾丨一图了解华为云专场干货
技术分享 | MySQL:caching_sha2_password 快速问答
洛谷P5440 【XR-2】奇迹 题解
力扣:零钱兑换
使用StreamAPI 断言组合,结合本地缓存做模糊查询(比mysql效率提升近1000倍)
Enterprise data leakage prevention solution sharing
Common abbreviations and terms of mitochondrial genome
PAML|计算dN/dS值的生信软件
C#的DataGridView中字体大小
弗吉尼亚大学:Ingy ElSayed-Aly | 多智能体强化学习中的基于逻辑的奖励形成
线粒体基因组常见缩写与术语
自制C#编译器
Fu · new life, chain · future! The conference on enabling innovation and development of urban chain technology industry was held grandly
Shell脚本简单语法
Utilisation de la combinaison d'assertions de l'API Stream et de la mise en cache locale pour les requêtes floues (près de 1000 fois plus efficace que MySQL)
InstaDeep Ltd:Arthur Flajolet | 单机上基于群体的快速强化学习
Pal2nal| how to run pal2nal from the command line
File i/o
棋牌类游戏