当前位置:网站首页>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
边栏推荐
- Git SSH bad permissions
- JS string - string string object method
- vue踩坑:axios使用this指针
- Knowledge competition of garbage classification
- A kind of super parameter optimization technology hyperopt
- Classroom exercises
- 10000! Ideal car recalls all defective cars: 97 accidents have occurred and losses will be expanded
- 嘉宾介绍|2020 PostgreSQL亚洲大会中文分论坛:潘娟
- Andque.
- About Devops seven misunderstandings, 99% of people have been hit!
猜你喜欢

你真的会使用搜索引擎吗?

How to optimize the decoding performance of dynamsoft barcode reader

Application layer software development Godfather teaches you how to refactor, senior programmers must professional skills

New features of vue3

How does varhart xgantt represent working days on a calendar

Talk about sharing before paying

The JS solution cannot be executed after Ajax loads HTML

Kubernetes (1): introduction to kubernetes

About Devops seven misunderstandings, 99% of people have been hit!

RFID fixed assets management system for fire equipment
随机推荐
ImageMagick - add watermark
图像处理工具包ImagXpress使用教程,如何查看事件
Benefits and functions of auto maintenance app development
pc端与移动端适配解决方案之rem
Two dimensional code location and alarm system of Expressway
DOM节点操作
JS array the usage of array is all here (array method reconstruction, array traversal, array de duplication, array judgment and conversion)
【原創】ARM平臺記憶體和cache對xenomai實時性的影響
7. Swarm builds clusters
Come on in! Take a few minutes to see how reentrantreadwritelock works!
【涂鸦物联网足迹】物联网主流通信方式
11.Service更新
11. Service update
【笔记】Error while loading PyV8 binary: exit code 1解决方法
confd
PHP安全:变量的前世今生
PHP backdoor hiding skills
20 XR projects roadshows, nearly 20 capital institutions attended! We sincerely invite you to attend the 2020 qcomm XR eco Partner Conference
PHP security: the past and present of variables
2018中国云厂商TOP5:阿里云、腾讯云、AWS、电信、联通 ...