当前位置:网站首页>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
边栏推荐
- cubemx做stm32 USB开发
- JS array the usage of array is all here (array method reconstruction, array traversal, array de duplication, array judgment and conversion)
- New features of vue3
- VARCHART XGantt入门教程
- .NETCore3.1+Vue.js打造的低代码工作流引擎
- REM: the solution of PC and mobile
- 微服務 - 如何進行服務限流和熔斷
- 11.Service更新
- 2020-11-06: go, let's talk about the scheduler.
- Git SSH bad permissions
猜你喜欢
8. Swarm creates maintenance and horizontal extension service
After pulling four message queues into a group, they quarreled
使用RabbitMQ实现分布式事务
And how to solve the conflict between pop-up menu and pop-up menu
Dynamsoft barcode reader v7.5!
如何解决谷歌Chrome浏览器空白页的问题
Exclusive interview with Yue Caibo
南京标识标牌设计制作,导视VI系统设计
2018中国云厂商TOP5:阿里云、腾讯云、AWS、电信、联通 ...
[note] error while loading pyv8 binary: exit code 1 solution
随机推荐
DOM node operation
.NETCore3.1+ Vue.js Low code workflow engine
7.Swarm搭建集群
python3操作gitlab
Yum [errno 256] no more mirrors to try solution
如何使用甘特图图层和筛选器
9. Routingmesh service communication between clusters
深入浅出大前端框架Angular6实战教程(Angular6、node.js、keystonejs、
Plug in bilibilibili new version 0.5.5
频收罚单的浦发银行:增收不增利,曾遭骗贷数亿元,内控缺位?
测试攻城狮必备技能点!一文带你解读DevOps下的测试技术
滴滴的分布式ID生成器(Tinyid),好用的一批
谈了多年的数字化转型,为什么还有很多企业依然“口头管理”
20 XR projects roadshows, nearly 20 capital institutions attended! We sincerely invite you to attend the 2020 qcomm XR eco Partner Conference
C# 枚举权限 |和||,&和&&的区别
HMS core push service helps e-commerce app to carry out refined operation
Mac新手必备小技巧
ajax 载入html后不能执行其中的js解决方法
10000! Ideal car recalls all defective cars: 97 accidents have occurred and losses will be expanded
南京标识标牌设计制作,导视VI系统设计