当前位置:网站首页>The architecture mode is excerpted from "happy when you smell defects" (this book can be downloaded for free)
The architecture mode is excerpted from "happy when you smell defects" (this book can be downloaded for free)
2022-07-22 02:08:00 【51CTO】
There are many architectural patterns , Just three examples .
- Layered architecture
The classic three-tier architecture is the best scenario , Database management software ( Add or delete check change ), Most enterprise software is of this kind . The classic three-tier architecture consists of a top-down user interface layer 、 Business logic layer and data access layer .《 Domain-driven design 》 The layered architecture in : User interface layer 、 application layer ( Provide the caller with a complete business use case )、 Domain layer 、 Infrastructure layer .
Stratification is based on : One , The top level is more business and user oriented , The bottom layer is more general and hardware oriented . Two , In the face of change . 3、 ... and , At the same level, at the same level of abstraction .
Be careful : If most of the functions of a certain layer are simply calling the functions of the lower layer , This layer should be cancelled .
- Event bus architecture
Three participants : Event bus 、 Publisher 、 subscriber , Publishers can only send messages to the event bus , Event bus can only send messages to subscribers . Messages are also called events . This architecture is very suitable for distributed systems , Heterogeneous systems also have no impact . A module can be both a publisher and a subscriber .
The difference between time bus module and message queue module : The former collects 、 Forward a message , You don't need to know how many subscribers there are ; The latter processes messages directly or forwards them to submodules . Message queuing has the advantage over message queuing : asynchronous 、 Peak shaving . Advantages of messages over direct function calls : decoupling .
- Blackboard mode
Blackboard mode by 3 There are three main components : blackboard : Structured global memory containing objects from solution space . Knowledge source : Specialized modules and their own representations . Control components : choice 、 Configuration and execution modules . Use scenarios : speech recognition 、 Vehicle identification and tracking 、 Protein structure recognition 、 Sonar signal interpretation, etc . This kind of problem has the following characteristics : It can be decomposed into multiple subproblems , But each subproblem belongs to a different field of expertise . To solve the subproblem , You need to use different representations and paradigms , There is often no established strategy .
边栏推荐
- Judgment of empty string in Oracle
- Hcip day 8 notes
- ByteDance confirmation will be self-developed chip: for internal use only; Musk: I have uploaded my brain to the cloud; Go language product head leaves | geek headlines
- LeetCode 146:LRU 缓存
- clip:learning transferable visual models from natural language supervision
- C getting started series (XXVI) -- assemblies and namespaces
- import torch_geometric.nn报错/lib64/libm.so.6: version `GLIBC_2.27‘ not found
- Codeforces Round #809 (Div. 2) - C, D1
- M carry out DS-CDMA modeling in Simulink, and then call Simulink model through MATLAB to simulate the bit error rate
- Minor spanning tree
猜你喜欢
VALDO2021——血管病变检测挑战赛之血管间隙分割(一)
Matlab simulation analysis of spectrum switching mechanism of cognitive radio based on relay assistance
SkyWalking服务端的搭建、微服务接入SkyWalking
07.01 哈夫曼树
Pix2Seq:谷歌大脑提出 CV 任务统一接口!
OSPF comprehensive experiment
Tencent techo hub landed in Fuzhou 723 for the first time in 2022 to discuss industrial digitalization with developers!
3625. 幂次方
安全之路 —— 单管道反向连接后门解析
Local storage software system of local area network for data acquisition of electric meters in Enterprises
随机推荐
Feign详解,日志配置+契约设置+超时时间+自定义拦截器
Multiple ways of sorting tablewidgets
童年的回忆小游戏来了——贪吃蛇,快来自己动手写一个属于自己的小游戏吧
Hcip day 9 notes
Communication excerpt from "happy when you smell defects" (this book can be downloaded for free)
表达式求值(栈)
mac M1安装的mysql,开启binlog
YouTube “标签产品” 试点项目上线
07.02 Huffman code
工作笔记——使用Jest时遇到的一些问题
This article enables you to master 22 neural network training skills
MySQL中delete、Truncate、drop的区别
M using Verilog to develop GMSK modulator based on FPGA under ISE platform
玫瑰
午休专列&问题思考:由时:分:秒构成字符串转换为秒的问题思考
浏览器本地存储webStroage
抓住晨会驱动【目标管理】
基于三维GIS的场数据模型研究与实践
08.归并排序和快速排序
开发期质量 节选自《闻缺陷则喜》(此书可免费下载)