The blackboard mode is a common architecture model. Different Data Processing logics in applications affect each other and collaborate to complete data analysis and processing. As if multiple different experts exchange ideas on the same blackboard, each expert can obtain information written by other experts on the blackboard, you can also use your own analysis to update information on the blackboard, thus affecting other experts.
Common implementation modes in practical applications include:
A Exploitation Database
Using the database as a blackboard, different applications share information in the database and can update data information. This is also the most common implementation method.
Features:
1. It facilitates information query, filtering, and statistics. In this regard, relational databases provide powerful support for SQL 92.
2. It cannot be used in environments with high real-time requirements. This implementation works in the PULL mode, and high-frequency database access can cause serious system performance problems.
B. Use the publish-subscribe Mode
This implementation usually uses message queue as the blackboard. The queue works in topic mode, and experts act as the subscribers of the queue. At the same time, messages can be sent to the queue and the messages will be sent to all subscribers. The above process enables information exchange between experts.
Features:
1 can be effectively applied to systems with high real-time requirements. This implementation works in the "Push mode.
2. It is difficult to achieve Statistical Analysis of Information. Unlike the implementation method 1 that can be supported by SQL, these tasks must be completed by developers themselves.
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.