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 ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access