System architecture design patterns - level architecture 1

  Three-tier architecture: presentation layer for the user to shut down the interactive interface. Intermediate business logic layer: responsible for key business processing and data transfer. Data access layer to achieve database access.

       Using the MVC design pattern presentation layer. You can have the following advantages: 1, allowing a variety of extensions of the user interface, view and model are not necessarily linked. 2, easy to expand. 3, powerful user interface. The business processing and display separation, increased application scalability, robustness, flexibility.

       Use XML designing the presentation layer, uniform appearance of the Web Form and Windows Form. Maintenance support convenient B / S, while the appearance of the interface supporting the C / S; for a variety of different forms, XML mark data only maintain a convenient model we drive frame; the XML standard form as described in the GUI, for different forms, only need to provide different converter can be, the strategy pattern can be extended.

The presentation layer design idea UIP, UIC is the original presentation layer; UIP is mainly used to coordinate the various parts of the user interface. The flow of user interaction conceptual separated from the implement or equipment involved in the transaction to maintain the interior of the associated state.

The middle layer architecture: service interface (Service Interface) design. Business component design. Workflow (BPM) design. Business entity design. The business logic framework.

Service interface definition: a service interface serviceinterface is a software entity, it is implemented to process mapping and transformation appearance facade component and services; 2, communicate with the service, and to enforce the process flow and principles of communication; 3, service interface exposes methods these methods can be individually invoked or invoked in a specific order. Role: to provide business process point of call; to achieve a buffer, mapping, and simple format and schema conversion. Does not implement business logic through the Service Interface application business logic and communication protocols, data conversion service contracts and SLA fulfillment apart. For message security control; segment within the system to achieve, is to implement internal changes, no need to change the service interface; requires authentication pass into the news. Implementation: service interface allows between users and providers to exchange information, when all the details are responsible for communication: network protocols, data formats, security, service level agreements.

Business Components - implement business rules and components perform operations to achieve business functions, is packaged for specific business logic and internal business processes; responsible for initiating the transaction, the transaction is the root of the initiator, support services and compensation trade; by encapsulates the presence of higher levels of service can obtain operations and business logic.

Workflow definition: a set of tasks having correlate various events connected to different functions. There workflow start and end, and they are repeatable. It is composed of a plurality of business processes; business process involves multiple work processes, and has a certain order; define and coordinate long-running business processes, support for long transactions.

Business entities: logic of the application may be considered in the design of a variety of data formats; Providing an intermediate layer is formed by a business entity; the actual display data storage segments, to ensure the independence of business entities, to improve the reusability .

 

Reproduced in: https: //www.cnblogs.com/chrran/p/11082268.html

Guess you like

Origin blog.csdn.net/weixin_33824363/article/details/93623067