arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2607.06471cs.SE
收藏

实践中的领域驱动设计:开源生态系统的大规模实证特征

Domain-Driven Design in Practice: A Large-Scale Empirical Characterisation of the Open-Source Ecosystem

Eindhoven University of Technology(埃因霍温理工大学);Wageningen University & Research(瓦赫宁根大学与研究)

Ozan Özkan, Önder Babur, Mark van den Brand

AI总结:

研究对GitHub上的领域驱动设计(DDD)进行大规模实证特征描述。采用MSR方法及语义验证管道,识别出相关仓库。发现DDD采用率在2017年后加速,项目寿命长,不同架构有不同应用情况,还指出存在的问题及差距,呼吁制定标准并提供指导。

摘要:

背景:领域驱动设计(DDD)是管理软件复杂性的主要范式,但研究多为理论性;先前工作发现近39%的DDD研究缺乏严格实证评估,大规模实际应用基本未被检验。目标:首次对GitHub上的DDD情况进行大规模特征描述,为该范式在实践中的实施和维持提供数据驱动的基线。方法:采用带有混合策略(主题和README关键词)的挖掘软件仓库(MSR)方法,识别出11742个候选仓库;为解决标签噪声,构建了使用GPT-4o和三重多数投票策略的新颖语义验证管道,得到2502个经过验证的仓库;与人工标注样本验证显示与人类专家有高度一致性(kappa = 0.77)。结果:2017年转折点后DDD采用率急剧加速,且项目寿命显著长:中位数寿命比典型GitHub项目长超一个数量级,表明是持续的专业级工程而非短期实验;分层和清洁架构占主导,CQRS和事件溯源在分布式、数据密集型系统中反复出现;数据挑战了许多学术工作以Java为中心的假设:C#和TypeScript而非Java引领实际应用。结论:DDD已成熟为跨多种语言和领域采用的稳定专业级实践;但四分之一项目(25.3%)未记录明确业务上下文,揭示了领域意图设计与版本控制中保存方式之间的持续差距;呼吁制定轻量级架构可追溯性标准,并为团队将这些仓库用作参考实现提供指导。

英文摘要:

Context: Domain-Driven Design (DDD) is a leading paradigm for managing software complexity, yet research remains largely theoretical; our prior work found nearly 39% of DDD studies lack rigorous empirical evaluation, leaving practical adoption largely unexamined at scale. Objective: We provide the first large-scale characterisation of the DDD landscape on GitHub, a data-driven baseline for how the paradigm is implemented and sustained in practice. Method: Using a Mining Software Repositories (MSR) approach with a hybrid strategy (topics and README keywords), we identified 11,742 candidate repositories. To address label noise, we built a novel semantic validation pipeline using GPT-4o with a triplicate majority-vote strategy, yielding 2,502 verified repositories. Validation against a manually labelled sample showed substantial agreement with human experts (kappa = 0.77). Results: DDD adoption accelerated sharply after a 2017 inflection point, and the resulting projects are notably long-lived: their median lifespan exceeds the typical GitHub project by over an order of magnitude, indicating sustained, professional-grade engineering rather than short-lived experiments. Layered and Clean Architecture dominate, while CQRS and Event Sourcing recur in distributed, data-intensive systems. Notably, the data challenge the Java-centric assumption of much academic work: C# and TypeScript, not Java, lead practical adoption. Conclusions: DDD has matured into a stable, professional-grade practice adopted across diverse languages and domains. However, a quarter of projects (25.3%) record no explicit business context, revealing a persistent gap between how domain intent is designed and how it is preserved in version control. We call for lightweight architectural traceability standards and offer guidance for teams reusing these repositories as reference implementations.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑