Middle Layer Architecture Design

Source: Internet
Author: User

[I feel that the design of the Middle-layer architecture is actually to layer the business logic layer in the middle, which may be three layers. In this way, different functions are only assembled by different components for reuse]

I. business logic component idea: all or part of the business process is automated. In this process, documents, information, or tasks are transferred according to certain process rules, achieve coordination among members of the Organization to achieve the overall business objectives.

[Interface-oriented programming, controllers do not need to be coupled with specific business logic components]

2. The main problem solved by the workflow is that documents, information, or tasks are automatically transmitted among multiple participants according to a predefined rule, so as to achieve an expected business goal, or promote the implementation of this goal.

[Business methods are classified according to certain characteristics. when processing a business, it calls an assembly business method. The idea of a workflow is that the assembly process and sequence can be changed in different processes]

Advantages of workflow: separates application logic from process logic. without modifying specific functions, you can modify the process model to change the system functions to complete integrated management of production and operation processes or the entire process, it can effectively organize people, information and application tools, and exert the maximum efficiency of the system.

3. Business logic layer entity

Entity class [Easy to operate with type Data]

XML [strong standard support and interoperability]

Dataset [serializable and binable]

 

Iv. business logic layer framework

Domain Model-service-control

Domain Model: The business object at the domain layer. It only contains business-related attributes.

Service: an application that is an integral part of business process implementation.ProgramDifferent functional units

Control: links between services

[The MVC idea is used in layers. Control calls the functions implemented in the service according to the domain model, and changes the control according to the called service]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.