April 2018
Intermediate to advanced
300 pages
7h 41m
English
Use as little data as possible to communicate to the service. For example, there is a Person API that provides some GET, POST, PUT, and DELETE methods to perform a CRUD operation on that backend database. To delete a person’s record, we can just pass the ID (primary key) of the person as a parameter to the service rather than passing the whole object as a parameter. Moreover, use objects that are less bloated with properties or methods that offer a minimal set of artifacts. The best case is to use POCO (Plain Old CLR object) entities that have minimal dependencies on other objects which contain only those properties that are necessary to be sent across the wire.