Reflections on the puremvc

Software framework

What framework to solve the problem? This problem can not be generalized feeling, on my current project encountered in practical terms it is mainly to solve the following problem

  Multiplexing

  Parallel development

       Cross-platform

Project Background: In video surveillance, C / S & B / S mode of PC client software

Objective: To develop a common set of components, at C / SB / S architecture can be multiplexed member, and flexible service implementation module combination.

The main consideration of the applicability of the framework analyzes puremvc

1. puremvc a lightweight, simple introduction.

2. The terms of decoupling realized well, can be a good parallel development.

3. Providing messages exchanged between components of the communication bus may be a combination of a plurality of flexible business components.

4. The assembly may be a good dynamic additions and deletions.

1) puremvc may cause a lot of code redundancy, strengthening the presence and command of the mediator, the small business component must create a proxy and command even meidiator.

2) a large amount of data, transmitted in the long link continuously monitor this, and the user interface to update software applications, it is difficult to mandate the proxy is not broken millisecond units.

  Obtain and decode the data stream to achieve the display from the server, it should be as a logical domain data as a whole (proxy) or business logic (command) it?

  Especially more dependent members of the bottom member (e.g., playing video decoder library), the underlying component, the YUV data processing and display have been blend together, invisible outside.

  Should think the overall component of the overall monitoring of this case is a proxy, share the mediator's role? Because the software components within the scope of the present, UI programming control view is transmitted to other base library.

       mediator of a widget can only accept business operation of the mouse, the window theme update video content data becomes invisible.

 

Guess you like

Origin www.cnblogs.com/maoliangwu/p/11220994.html