Shared-Data Pattern

In the shared-data pattern, multiple components access data through a common data store. No single component is entirely responsible for the data or data store. This pattern is particularly useful when multiple components require a large amount of data. With shared-data systems, data and the data source is the primary medium of interaction. Compare this to event-based systems in which components communicate via procedure calls or message passing. See the table.

Category

Component & Connector

Elements

Data store—holds the data shared among accessors. Choice of the data store and the constraints placed on it determine the quality attributes achieved with the pattern.

Data accessor component—components that use the data in some ...

Get Design It! now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.