2.7. Transfer Object

The Transfer Object pattern provides the best techniques and strategies to exchange data across tiers (that is, across system boundaries) to reduce the network overhead by minimizing the number of calls to get data from another tier. The Transfer Object pattern uses an object to carry data across tiers.

UML representation


Benefits

The following lists the benefits of using the Transfer Object pattern:
  • Reduces network traffic
  • Reduces code duplication

When to Use

You should use the Transfer Object pattern when:
  • You need to send objects between tiers.
Comments