Component-plus-Strategy architecture

Component-plus-Strategy architecture and Component + Strategy (C+S) architecture is a software architectural pattern.

It combines the Component UML element configured via Strategy software design pattern objects.

It was conceived as a generalization of the hexagonal architecture / ports & adapters architecture. You can read this post about the P&A architecture.

History

The Component-plus-Strategy was proposed by Alastair Cockburn in 2022.

This architecture is seldom referenced in bibliography different from Cockburn’s.

Context

C+S is based on two existing concepts:

  • UML’s component
  • Strategy software design pattern

UML’s component

In the context of Unified Modeling Language (UML), a component represents a modular part of a system that contains or realizes multiple UML classifiers (i.e., UML objects types such as classes or interfaces), where the classifier work together internally. The component exposes functionality only through its interfaces (provided and required), hiding internal classifiers from the outside world.

Core properties of a component is that it is self-contained and substitutable.

You can read this post about UML.

Strategy software design pattern

You can read this post about Strategy software design pattern.

Description

A system designed with C+S architecture can be viewed as a UML component that connect to other external components through its inputs / provided interfaces and outputs / required interfaces.

The external components access or are accessed the system using the Strategy software design pattern, which allows different implementations for each external component, allowing external component replacement.

Bibliography

Related entries

Instance of:

Related:

Leave a Reply

Your email address will not be published. Required fields are marked *