Dto

De Banane Atomic
Aller à la navigationAller à la recherche

Definition

Data Transfer Object is an object that carries data between processes.
They are used:

  • to aggregate data to reduce the number of calls between client and server
  • to delete unnecessary data to reduce data load

DTOs are simple objects that should not contain any business logic but may contain serialization and deserialization mechanisms for transferring data over the wire.