In this seventh part of my technical debt categories series, I’ll be covering infrastructure debt. We’re now over half of the categories, but I’ll approach this category like all others. I’ll cover what infrastructure debt is, where it comes from, and how and why to solve (or at least reduce) it.
What Is Infrastructure Debt?
Again, let’s first look at how the paper (Towards an Ontology of Terms on Technical Debt) this series is based on defines Infrastructure Debt:
[…] infrastructure issues that, if present in the software organization, can delay or hinder some development activities.
Any software development team needs some amount of infrastructure:
- laptops or desktops to write their code on
- servers to deploy to
- databases to store data
The paper points to a course I didn’t find any resources on, but I wonder if suboptimal office space and office hardware could be considered infrastructure debt. While it’s not part of the overall software development effort, it definitely impacts how well developers can deliver quality software.
For this discussion, I would not consider “non-software-related hardware” to be part of the infrastructure we’re considering in this type of technical debt. Although companies that treat their employees badly (for example by letting them develop software in a badly lit basement) should not be surprised that their software lacks in quality as well. This is something that will resurface in part in the part on people debt.
So, back to infrastructure debt. Basically, infrastructure debt is when the software team has to work with pieces of infrastructure that our out-dated, unsupported, buggy, slow and vulnerable.
Causes Of Infrastructure Debt
As we’ve seen with other types of technical debt previously, infrastructure debt can be a deliberate decision. And sometimes for good measure.
I remember working on an application that suffered a severe performance issue after updating to the next version of the .NET Framework. We wanted some of the features in the newer version, but the performance penalty was not worth it. First we needed to fix the performance issue and only then could we upgrade. For the time being, we incurred some deliberate and prudent infrastructure debt.
This is a technical reason. Other considerations can be:
- cost (there is currently no budget to upgrade the servers)
- oversight (a lack of knowledge about the problem or about the piece of infrastructure, sometimes even not knowing it is there!)
- lack of professionalism (not thinking things like security and performance are important or provide value)
Solving Infrastructure Debt
Solving infrastructure debt can be simple, but it is often non-trivial. Upgrading from .NET 7 to .NET 8 should be fairly straightforward. Moving from a highly customized TeamCity build script to GitHub Actions will require some more planning, coordination and effort.
I believe it’s a professional engineering team’s responsibility to keep track of the state of their systems and update where appropriate and possible. For things they can do themselves and don’t take a big amount of time, they should do this as part of their due diligence. Management shouldn’t be involved in these technicalities.
Where management does come into the picture, is when costs are involved, both monetary and time-wise. If a change will take three weeks or come with new licensing fees, they need to be involved. It’s then management’s responsibility to take these matters seriously.
Big changes will require careful planning and analysis. This can be approached as a project with its own budget, series of tasks, dedicated meetings, etc. It’s important to regularly check the progress and see if the approach needs to change.
It’s also important not to take on too many of these infrastructural projects. Overstretching the team’s capacity will only lead to lower morale and a higher chance of errors.
A way to make this easier in the future is to outsource your infrastructure maintenance. This can be a local company, but it might as well be the cloud. The advantage of the cloud is that other engineers (and dare I say, more skilled in most cases) will ensure servers are patched, firewalls are configured, etc. And when you need to perform manual steps to upgrade certain cloud resources, chances are that the provider has created more than decent documentation on how to do it.
The Business Case For Reducing Infrastructure Debt
Infrastructure are the systems on which our systems run. If they are neglected, we will face security, performance, stability and morale issues.
It’s a well-known fact that outdated or unpatched systems pose security risks. Hacking attempts are increasing every year, and hackers are professionalizing constantly.
Suboptimal infrastructure solutions may also be missing out from significant performance and stability improvements that vendors have implemented.
Finally, as I recently heard someone saying: a technical debt problem eventually becomes a HR problem. If you’re forcing your engineering teams to use and build on old, buggy or generally bad infrastructure that they feel is holding them back from excelling, they will become demotivated and possibly leave (or worse, stay but stop caring).