January 2018
Beginner to intermediate
312 pages
7h 22m
English
As we discussed in Transferring Data Between Bounded Contexts, our complex domain types, with special types for choices and constraints nested together deeply, are not well suited for a serializer to work with. So the trick to pain-free serialization is to convert your domain objects to a type specifically designed for serialization—a Data Transfer Object—and then serialize that DTO instead of the domain type.

For deserialization, we do the same thing in the other direction:

In general, we want the deserialization to ...
Read now
Unlock full access