DTO

Data Transfer Object

Fowler 2002

Problems

  • Remote procedure calls are time-consuming.

  • Network performance: latency and throughput.

  • Remote procedures return at most one parameter.

Solution

  • Create a class that contains all parameters of a remote procedure call.

Structure

dto structure

Consequences

  • The number of remote calls is reduced.

  • Performance.

  • Testability improvement.

Consequences

  • Raise of the number of classes

  • Type conversions (additional processing is needed).

  • Additional code.

Back to main presentation