当前位置:网站首页>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
边栏推荐
- HMS Core推送服务,助力电商App开展精细化运营
- [graffiti footprints of Internet of things] mainstream communication mode of Internet of things
- 20 XR projects roadshows, nearly 20 capital institutions attended! We sincerely invite you to attend the 2020 qcomm XR eco Partner Conference
- Application and principle of handlermethodargumentresolver
- 嘉宾专访|2020 PostgreSQL亚洲大会阿里云数据库专场:王旭
- 课堂练习
- python3操作gitlab
- python3操作Jenkins模块api
- Chinese sub forum of | 2020 PostgreSQL Asia Conference: Pan Juan
- Yum [errno 256] no more mirrors to try solution
猜你喜欢
Git submission specification
The advantages and functions of psychological counseling app
插件Bilibili新版0.5.5
20 XR projects roadshows, nearly 20 capital institutions attended! We sincerely invite you to attend the 2020 qcomm XR eco Partner Conference
k-vim安装及The ycmd server SHUT DOWN (restart with ':YcmRestartServer')这种错误的解决方法
How does LeadTools detect, read and write barcodes
The first choice for lightweight GPU applications is the NVIDIA vgpu instance launched by Jingdong Zhilian cloud
python3操作gitlab
ajax 载入html后不能执行其中的js解决方法
cubemx做stm32 USB开发
随机推荐
In 2020, how can wechat seal numbers be quickly lifted?
yum [Errno 256] No more mirrors to try 解决方法
11. Service update
三步轻松理解Kerberos协议
OpenCV計算機視覺學習(10)——影象變換(傅立葉變換,高通濾波,低通濾波)
深入浅出大前端框架Angular6实战教程(Angular6、node.js、keystonejs、
C語言重點——指標篇(一文讓你完全搞懂指標)| 從記憶體理解指標 | 指標完全解析
How to use Gantt chart layers and filters
条形码识别器Dynamsoft Barcode Reader v7.5全新上线!
Experiment one
Introduction to Jenkins (2) declarative pipeline
JS array the usage of array is all here (array method reconstruction, array traversal, array de duplication, array judgment and conversion)
Mobile pixel adaptation scheme
C enumerates the differences between permissions |, and |
Image processing toolkit imagexpresshow to view events
[graffiti footprints of Internet of things] mainstream communication mode of Internet of things
JS string - string string object method
Nanjing logo design and production, guide VI system design
插件Bilibili新版0.5.5
关于DevOps的七大误解,99%的人都曾中过招!