Query
Query
1
DTO (Data Transfer Object) but not version 4, they can request to receive the
version 2 format of that DTO. Others can request the version 4 format of that
DTO.
When using versioning like this the goal is to deprecate older versions over
time as opposed to causing a “shock” by making changes that break consumers.
Obviously there are limits to this. Asking for version 3 of something when
the system is currently at version 23 is a bit extreme. There should be a well-
thought-out strategy in terms of how to deprecate things over time. There’s no
one-size-fits-all answer to this question. It depends much on the organization
including team structures, industry, total number of integration points, and level
of general incompetence.
A good strategy to look at in most organizations would be a deprecation strategy
somewhere between 30 and 180 days. If others cannot handle moving forward
within six months there are larger issues going on which likely need to be
addressed. Maintaining DTOs longer than six months can become quite arduous
over time.
Where precisely this line sits is highly organization specific, but six months is a
good high end. Over time, try to move this period of time down, three months
is a much more reasonable goal to be hitting. There is a substantial amount of
overhead which can come into play based upon this period of time being long.