The Hidden Cost of Backward Compatibility: When Deprecation Turns into Technical Debt - An Experience Report

Anders Sundelin, J. Gonzalez-Huerta, K. Wnuk
{"title":"The Hidden Cost of Backward Compatibility: When Deprecation Turns into Technical Debt - An Experience Report","authors":"Anders Sundelin, J. Gonzalez-Huerta, K. Wnuk","doi":"10.1145/3387906.3388629","DOIUrl":null,"url":null,"abstract":"Context: The micro-services architectural pattern advocates for the partitioning of functionality into loosely coupled services, which should be backward compatible, to enable independent upgrades. Deprecation is commonly used as a tool to manage multiple versions of methods or services. However, deprecation carries a cost in that tests might be duplicated and might rely on services that have become deprecated over time.Objective: Using the terms of the Technical Debt metaphor, we explore the consequences of deprecation, and how it has affected the test base during seven years.Method: We take an exploratory approach, reporting on experiences found before and after servicing parts of the incurred Technical Debt. We mine code repositories and validate our findings with experienced developers.Results: We found that the growth of deprecation debt varied a lot. Some services experienced substantial growth, but most did not. Unit tests, where deprecation is visible in the developers’ tools, were much less affected than integration tests, which lack such visualization mechanisms. While servicing debt of 121 out of 285 deprecated services, we discovered that up to 29% of the spent effort could be attributed to accrued interest. However, this is an upper bound; there could be less impact, depending on whether scripting could be used to service the debt or not.Conclusion: This paper illustrates that integration tests can be viewed as a debt from the perspective of deprecated services. While the pattern was that deprecated services (debt principal) experienced no or little accrued interest, some, highly used, services experienced a lot, particularly during stressful times. Java-based tests, where deprecation is visible in the IDE, did not experience a similar pattern of increasing debt. We postulate that deprecation debt should be kept visible, either using developer tools or statistical reports.","PeriodicalId":345508,"journal":{"name":"2020 IEEE/ACM International Conference on Technical Debt (TechDebt)","volume":"3 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2020-05-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"5","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2020 IEEE/ACM International Conference on Technical Debt (TechDebt)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3387906.3388629","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 5

Abstract

Context: The micro-services architectural pattern advocates for the partitioning of functionality into loosely coupled services, which should be backward compatible, to enable independent upgrades. Deprecation is commonly used as a tool to manage multiple versions of methods or services. However, deprecation carries a cost in that tests might be duplicated and might rely on services that have become deprecated over time.Objective: Using the terms of the Technical Debt metaphor, we explore the consequences of deprecation, and how it has affected the test base during seven years.Method: We take an exploratory approach, reporting on experiences found before and after servicing parts of the incurred Technical Debt. We mine code repositories and validate our findings with experienced developers.Results: We found that the growth of deprecation debt varied a lot. Some services experienced substantial growth, but most did not. Unit tests, where deprecation is visible in the developers’ tools, were much less affected than integration tests, which lack such visualization mechanisms. While servicing debt of 121 out of 285 deprecated services, we discovered that up to 29% of the spent effort could be attributed to accrued interest. However, this is an upper bound; there could be less impact, depending on whether scripting could be used to service the debt or not.Conclusion: This paper illustrates that integration tests can be viewed as a debt from the perspective of deprecated services. While the pattern was that deprecated services (debt principal) experienced no or little accrued interest, some, highly used, services experienced a lot, particularly during stressful times. Java-based tests, where deprecation is visible in the IDE, did not experience a similar pattern of increasing debt. We postulate that deprecation debt should be kept visible, either using developer tools or statistical reports.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
向后兼容性的隐性成本:当弃用变成技术债务时——一份经验报告
上下文:微服务体系结构模式提倡将功能划分为松散耦合的服务,这些服务应该是向后兼容的,以支持独立升级。弃用通常用作管理方法或服务的多个版本的工具。然而,弃用是有代价的,因为测试可能被重复,并且可能依赖于随着时间的推移而被弃用的服务。目标:使用技术债务比喻的术语,我们探索弃用的后果,以及它在七年中如何影响测试基础。方法:我们采用一种探索性的方法,报告在服务部分产生的技术债务之前和之后发现的经验。我们挖掘代码库,并与经验丰富的开发人员一起验证我们的发现。结果:我们发现折旧债务的增长变化很大。一些服务经历了大幅增长,但大多数服务没有。单元测试(在开发人员的工具中可以看到弃用)受到的影响要比集成测试小得多,集成测试缺乏这种可视化机制。在偿还285项已弃用服务中的121项债务时,我们发现高达29%的花费可能归因于应计利息。然而,这是一个上界;可能会有较小的影响,这取决于脚本是否可以用于偿还债务。结论:本文说明,从弃用服务的角度来看,集成测试可以被视为债务。虽然模式是已弃用的服务(债务本金)没有或只有很少的应计利息,但一些高度使用的服务却有很多利息,特别是在紧张时期。基于java的测试(在IDE中可以看到弃用)没有经历类似的增加债务的模式。我们假设折旧债务应该保持可见,无论是使用开发人员工具还是使用统计报告。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
The Prevalence of the Technical Debt Concept in Serbian IT Industry: Results of a National-Wide Survey Trade-offs in Managing Risk and Technical Debt in Industrial Research Labs: An Experience Report Software Archinaut: A Tool to Understand Architecture, Identify Technical Debt Hotspots and Manage Evolution : Tool Presentation Paper What are the Practices used by Software Practitioners on Technical Debt Payment? Results From an International Family of Surveys Carrot and Stick approaches when managing Technical Debt
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1