arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.26244cs.SEcs.AI
收藏

自动化领域驱动设计:提示框架的经验

Automating Domain-Driven Design: Experience with a Prompting Framework

Chair of Software Engineering Technical University of Munich Heilbronn, Germany;Engineering Team FTAPI Software GmbH Munich, Germany

Tobias Eisenreich, Husein Jusic, Stefan Wagner

AI总结:

本文提出一个提示框架,通过结构化大语言模型交互自动化领域驱动设计的核心活动,通过案例研究验证其在真实需求下的有效性,发现后期步骤易积累误差,LLM能增强但无法替代架构专业知识。

摘要:

领域驱动设计(DDD)是一种强大的架构复杂软件系统的设计技术。本文介绍了一个提示框架,通过结构化的大语言模型(LLM)交互自动化核心DDD活动。我们将DDD分解为五个连续步骤:(1)建立通用语言,(2)模拟事件风暴,(3)识别限界上下文,(4)设计聚合,(5)映射到技术架构。在案例研究中,我们验证了该提示框架与FTAPI企业平台的真实需求相一致。虽然前几步持续生成有价值的可用产物,但后期步骤显示小错误或不准确会传播并累积。整体而言,该框架作为构建可操作文档(如术语表和上下文图)的协作对抗者,但无法实现完全自动化。这使专家能够专注于关键权衡。在评估中,步骤1至3表现良好,但积累的误差使步骤4和5生成的产物不切实际。我们的发现表明,LLM可以增强但不能替代架构专业知识,提供一种实用工具,以减少DDD的精力和开销,同时保持以人类为中心的决策制定。

英文摘要:

Domain-driven design (DDD) is a powerful design technique for architecting complex software systems. This paper introduces a prompting framework that automates core DDD activities through structured large language model (LLM) interactions. We decompose DDD into five sequential steps: (1) establishing an ubiquitous language, (2) simulating event storming, (3) identifying bounded contexts, (4) designing aggregates, and (5) mapping to technical architecture. In a case study, we validated the prompting framework against real-world requirements from FTAPI's enterprise platform. While the first steps consistently generate valuable and usable artifacts, later steps show how minor errors or inaccuracies can propagate and accumulate. Overall, the framework excels as a collaborative sparring partner for building actionable documentation, such as glossaries and context maps, but not for full automation. This allows the experts to concentrate their discussion on the critical trade-offs. In our evaluation, Steps 1 to 3 worked well, but the accumulated errors rendered the artifacts generated from Steps 4 and 5 impractical. Our findings show that LLMs can enhance, but not replace, architectural expertise, offering a practical tool to reduce the effort and overhead of DDD while preserving human-centric decision-making.

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

↑