当前位置:网站首页>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
边栏推荐
- Rech8.0 learning days 12 rh134
- 失眠一个整晚上
- 甘特图对活动进行分组教程
- Microservice - how to limit and fuse service current
- PHP后门隐藏技巧
- Kubernetes (1): introduction to kubernetes
- Yum [errno 256] no more mirrors to try solution
- 【原創】ARM平臺記憶體和cache對xenomai實時性的影響
- K-vim installation and the ycmd server shut down (restart with ': ycmrestartserver')
- idea 激活到 2089 失效
猜你喜欢
Introduction to Jenkins (2) declarative pipeline
Idea activation to 2089 failure
PHP后门隐藏技巧
Mate 40 series launch with Huawei sports health service to bring healthy digital life
9. Routingmesh service communication between clusters
JS string - string string object method
Getting started with varhart xgantt
傲視Kubernetes(一):Kubernetes簡介
And how to solve the conflict between pop-up menu and pop-up menu
K-vim installation and the ycmd server shut down (restart with ': ycmrestartserver')
随机推荐
2020-11-06:go中,谈一下调度器。
Application and principle of handlermethodargumentresolver
VARCHART XGantt入门教程
谈了多年的数字化转型,为什么还有很多企业依然“口头管理”
【涂鸦物联网足迹】物联网主流通信方式
Is blazor ready to serve the enterprise?
Do you really know how to use search engines?
New features of vue3
How does varhart xgantt represent working days on a calendar
Mate 40系列发布 搭载华为运动健康服务带来健康数字生活
南京标识标牌设计制作,导视VI系统设计
你真的会使用搜索引擎吗?
win7如何快速打cmd并到达所要的目录
把 4个消息队列都拉到一个群里后,他们吵起来了
7. Swarm builds clusters
如何解决谷歌Chrome浏览器空白页的问题
深入浅出大前端框架Angular6实战教程(Angular6、node.js、keystonejs、
gitlab 持续集成开发环境之CI/CD
Python3 operating gitlab
Key points of C language -- index article (let you fully understand indicators) | understand indicators from memory | complete analysis of indicators