Thursday, 16 August 2012

Repository Architectural Style

Repository architectural style is data centered style, which allows user interaction for data processing. This style shows two main entities. First one is central data structure which represents the current state of system and second one is independent entity which operates on central data structure. Second entity called clients have full control over logic flow. Means clients can read data from central data structure and write data to central data structure. Different clients may have different interfaces and privileges on central data structure.

Central repository may be our normal database or any kind of data store. Central repository is also known as blackboard and clients are called as knowledge sources. Knowledge source is independent entity of application. These knowledge sources communicate with each other through blackboard only. Here is diagram representing whole structure,




Here each knowledge source will change the data at blackboard which will lead to solution. Each knowledge source will be triggered by the current state of blackboard.

This type of style is mainly used in the applications where complex signaling system is required. We can also use such a style in applications involving shared data access and loosely coupled agents.

In java we can use threading and synchronized block to implement this style.

No comments:

Post a Comment