Tactics and Design Patterns

Architectural Tactics and Patterns

An architect usually chooses an architectural pattern or a collection of patterns.

However, each pattern implements several tactics, and these tactics may address different quality attributes.

The implementation of a pattern also involves decisions about which tactics to use and how to apply them.

Therefore, understanding a pattern requires understanding the tactics embedded in it.

Active Object Design Pattern

The Active Object design pattern separates method execution from method invocation.

It helps improve concurrency and simplifies access to objects that have their own thread of control.

Goal

The pattern aims to improve performance through the Introduce Concurrency tactic.

However, the pattern can also use tactics related to other quality attributes, such as modifiability and testability.

Elements of the Active Object Pattern

It identifies six elements.

ElementResponsibility
ProxyProvides an interface to clients through publicly accessible methods.
InterfaceDefines the method requests available on the active object.
Activation ListStores pending requests from clients.
SchedulerDetermines which request should execute next.
ServantDefines the behavior and state of the active object.
FutureAllows the client to receive the result later through a callback or variable.

How It Works

  1. A client submits a request through the proxy.
  2. The request is placed in the activation list.
  3. The scheduler selects a request for execution.
  4. The servant executes the requested behavior.
  5. The future allows the client to obtain the result.

This design separates the act of requesting an operation from the execution of that operation.

Other Tactics Used by the Pattern

The Active Object pattern may also use the following tactics.

TacticQuality Attribute
Information HidingModifiability
IntermediaryModifiability
Scheduling PolicyPerformance

An implementation may also maintain a log of requests.

Such a log may support:

  • Recovery
  • Maintaining an audit trail
  • Testability

Therefore, the same design pattern can contribute to several quality attributes.

Analyzing Tactics in Patterns

Analysis Process

The analysis process involves understanding all the tactics embedded in an existing pattern implementation.

Design Process

The design process involves selecting an appropriate combination of tactics to achieve the system’s desired goals.

Key Points

  • A design pattern implements a collection of tactics.
  • Different tactics may support different quality attributes.
  • The implementation of a pattern involves additional design decisions.
  • Architects must understand these decisions when evaluating a pattern.
  • The selected combination of tactics should support the system’s required quality attributes.
Written by October 22, 2026 3 min read
Was this helpful?