当前位置:网站首页>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
边栏推荐
猜你喜欢

Gantt chart grouping activities tutorial

南京标志设计,logo设计公司

Web API interface design: swaggerui document / unified response format / unified exception handling / unified authority verification

如何才能快速正确的部署甘特图

9. Routingmesh service communication between clusters

把 4个消息队列都拉到一个群里后,他们吵起来了

“非洲用户的付费意愿并不低”——专访四达时代研发总监张亮

gitlab 持续集成开发环境之CI/CD

站外推广的计划需要考虑哪些呢?

Insomnia all night
随机推荐
RFID fixed assets management system for fire equipment
confd
测试攻城狮必备技能点!一文带你解读DevOps下的测试技术
滴滴的分布式ID生成器(Tinyid),好用的一批
三步轻松理解Kerberos协议
PHP backdoor hiding skills
LEADTOOLS如何检测,读取和写入条形码
Vue: Axios uses this pointer
Two dimensional code location and alarm system of Expressway
傲視Kubernetes(一):Kubernetes簡介
DOM node operation
A kind of super parameter optimization technology hyperopt
Application and principle of handlermethodargumentresolver
Jenkins入门(二)声明式流水线Jenkins Pipeline
.NETCore3.1+Vue.js打造的低代码工作流引擎
[original] the impact of arm platform memory and cache on the real-time performance of xenomai
Implementation of nginx version of microservice architecture
Developing STM32 USB with cubemx
How does varhart xgantt represent working days on a calendar
Getting started with varhart xgantt