当前位置:网站首页>Business Facade 与 Business Rule
Business Facade 与 Business Rule
2020-11-07 18:55:00 【Airship】
Business Facade 和 Business Rule 都是 Business Logic 的细分层,它们共同协作完成特定的商业逻辑处理。
但Business Facade是Business Rule的前一个层次,负责接收Web Service或都Web UI的请求,并验证请求的正确性,参数格式是否合法,一切验证结束后,再将请求交给Business Rule层,主要完成对Business Rule的调用前的一些校验,在接收到Business Rule层的处理结果之后,根据不同的请求客户端将结果格式化成请求客户端想要的格式。
同时,一些常用的简单的判断处理也可以交给Business Facade层处理,而不用在Business Rule层上实现,从而实现更清晰的结构化。各司其则,有利于架构的扩展及维护。另外,如果是小型的项目,可以将其合并为一个层次。
我干脆这样来理解:Business Facade 与客户端有关,Business Rule 与客户端无关。
版权声明
本文为[Airship]所创,转载请带上原文链接,感谢
https://my.oschina.net/airship/blog/4707671
边栏推荐
- CI / CD of gitlab continuous integrated development environment
- Design pattern of facade and mediator
- Application of UHF RFID medical blood management system
- Blazor 準備好為企業服務了嗎?
- 条形码识别性能低,如何优化Dynamsoft Barcode Reader解码性能
- And how to solve the conflict between pop-up menu and pop-up menu
- In simple terms, the large front-end framework angular6 practical course (angular6 node.js 、keystonejs、
- gitlab 持续集成开发环境之CI/CD
- 8.Swarm创建维护和水平扩展Service
- JVM class loading mechanism
猜你喜欢
Win7 AppCrash (solution)
K-vim installation and the ycmd server shut down (restart with ': ycmrestartserver')
滴滴的分布式ID生成器(Tinyid),好用的一批
VARCHART XGantt入门教程
条形码识别器Dynamsoft Barcode Reader v7.5全新上线!
谈了多年的数字化转型,为什么还有很多企业依然“口头管理”
HMS core push service helps e-commerce app to carry out refined operation
Web API interface design: swaggerui document / unified response format / unified exception handling / unified authority verification
PHP后门隐藏技巧
Exclusive interview with alicloud database of | 2020 PostgreSQL Asia Conference: Wang Xu
随机推荐
confd
如何才能快速正确的部署甘特图
如何解决谷歌Chrome浏览器空白页的问题
Andque.
python3操作Jenkins模块api
20 XR projects roadshows, nearly 20 capital institutions attended! We sincerely invite you to attend the 2020 qcomm XR eco Partner Conference
How to solve the problem of blank page in Google Chrome browser
How does varhart xgantt represent working days on a calendar
The first choice for lightweight GPU applications is the NVIDIA vgpu instance launched by Jingdong Zhilian cloud
How does LeadTools detect, read and write barcodes
VARCHART XGantt如何在日历上表示工作日
Insomnia all night
About Devops seven misunderstandings, 99% of people have been hit!
快進來!花幾分鐘看一下 ReentrantReadWriteLock 的原理!
Jenkins pipline stage setting timeout
Let you have a deep understanding of gitlab CI / CD principle and process
Blazor 準備好為企業服務了嗎?
抽絲剝繭——門面和調停者設計模式
Didi's distributed ID generator (tinyid), easy to use
9.集群之间服务通信 RoutingMesh