当前位置:网站首页>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
边栏推荐
- Analysis of the original code of [QT] qthread
- Web API interface design: swaggerui document / unified response format / unified exception handling / unified authority verification
- confd
- Solution to st link USB communication error in stlink Download
- Yum [errno 256] no more mirrors to try solution
- 2018中国云厂商TOP5:阿里云、腾讯云、AWS、电信、联通 ...
- PHP backdoor hiding skills
- idea 激活到 2089 失效
- 8.Swarm创建维护和水平扩展Service
- 如何解决谷歌Chrome浏览器空白页的问题
猜你喜欢
yum [Errno 256] No more mirrors to try 解决方法
垃圾分类知识竞赛
ImageMagick - 添加水印
【涂鸦物联网足迹】物联网主流通信方式
站外推广的计划需要考虑哪些呢?
CI / CD of gitlab continuous integrated development environment
FreeSWITCH视频会议“标准”解决方案
Win7 how to quickly type CMD and get to the required directory
After pulling four message queues into a group, they quarreled
2020-11-06:go中,谈一下调度器。
随机推荐
Kubernetes (1): introduction to kubernetes
Shanghai Pudong Development Bank, which frequently receives penalty tickets, has been cheated by hundreds of millions of yuan in loans, and lacks of internal control?
Andque.
VARCHART XGantt如何在日历上表示工作日
2020-11-06:go中,谈一下调度器。
嘉宾专访|2020 PostgreSQL亚洲大会阿里云数据库专场:王旭
Mate 40 series launch with Huawei sports health service to bring healthy digital life
How does LeadTools detect, read and write barcodes
Design pattern of facade and mediator
Experiment one
FreeSWITCH视频会议“标准”解决方案
K-vim installation and the ycmd server shut down (restart with ': ycmrestartserver')
快進來!花幾分鐘看一下 ReentrantReadWriteLock 的原理!
9. Routingmesh service communication between clusters
嘉宾介绍|2020 PostgreSQL亚洲大会中文分论坛:潘娟
PHP安全:变量的前世今生
Gantt chart grouping activities tutorial
20 XR projects roadshows, nearly 20 capital institutions attended! We sincerely invite you to attend the 2020 qcomm XR eco Partner Conference
滴滴的分布式ID生成器(Tinyid),好用的一批
课堂练习