We’re almost there! The 11th category of technical debt I’ll be covering is service debt. If you’ve missed the previous posts, check out the overview of technical debt categories.
What Is Service Debt?
The authors of the paper Towards an Ontology of Terms on Technical Debt don’t really explain service debt in much detail.
So I went to the original source. In that study, “CloudMTD: Using Real Options to Manage Technical Debt in Cloud-Based Service Selection”, authors Esra Alzaghoul and Rami Bahsoon investigate technical debt in the context of cloud solutions and substituting one service for another.
Such substitution can be required for business reasons, for example when a service doesn’t fulfill new requirements. If that is still to vague, consider the scenario where a company hosts its web service on a traditional web hosting company’s infrastructure. At a certain point in time, the company may require a higher standard of SLA which the web hosting company can’t provide. In that case, they may want to move to an enterprise-grade cloud provider.
Another cause for service substitution may be in the technical space. For example, a team might still be using log files and want to use OpenTelemetry in order to gain more insights in the performance of their application.
Causes Of Service Debt
Whatever the reason, substituting one piece of an system for another can lead to technical debt. The authors give some examples:
- the new service may be under-utilized, where the maintenance cost outweighs the benefits of using this service
- maybe the new service fits the bill in the short term but won’t do in the long term (for example if it doesn’t scale well)
- the SLA of the new service may not be sufficient
Whatever the specific case, replacing one service with another is usually done to reduce technical debt, but it can introduce its own piece of new technical debt. This can be something the organization accepts, but like all technical debt, it’s best to be aware of the debt and manage it.
A Critical Note
Usually, I continue the posts in this series with an explanation on how and why to solve this category of technical debt. However, I’m not convinced this is a separate category.
To be clear, the paper Alzaghoul and Bahsoon published is interesting and valuable. But to me, they’re talking about a specific case of architecture debt and/or infrastructure debt.
In short, it is a piece in your infrastructure or architecture your application relies on. This piece may have been introduced to get a solution quickly, because the team didn’t know about any better options, or because it was the best solution at the time.
Whatever the case, that specific component is or has become a piece of technical debt which needs to be paid back. There are several options that present themselves and replacement is just one of them. It might be feasible to rework/refactor the component.
The authors specifically study the replacement option and how an organization can make a good choice out of the different options for the new services. They propose to take into account the technical debt and potential future value of each possible replacement.
Again, I think this paper makes valid points. But for me, this is a form of architecture or infrastructure debt.