Dto

De Banane Atomic
Version datée du 24 septembre 2020 à 14:15 par Nicolas (discussion | contributions) (→‎Definition)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
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.