DDD & Domain Modeling: Using AI to Accelerate Design

Staffan Palopää
June 5, 2024
3 min

Insights from Virtual DDD Meetup

During a recent Virtual DDD Meetup, Staffan, cofounder of Qlerify, showcased how Qlerify uses AI to accelerate domain modeling.

From a simple text prompt, AI generated a CRM process featuring roles such as Salesperson and Sales Manager. The tool automatically generated domain events, placed them on a timeline, and mapped out commands and entities. The workflow was then turned into a Domain Model with Bounded Contexts, from which working API code could be produced.

The session sparked engaging discussions, including a surprise appearance by Eric Evans, the father of Domain-Driven Design (DDD), who asked insightful questions about the tool and its approach.

In this article we'll expand on the video with detailed step-by-step instructions you can follow. Whether you’re an architect, a domain expert, or a developer, Qlerify provides an intuitive and collaborative way to define bounded contexts, aggregates, and commands—helping you accelerate domain modeling and implementation

‍

‍

‍

‍

Takeaways from Eric Evans’ Discussion

Eric Evans, the creator of DDD, joined the discussion and raised thought-provoking questions. Key takeaways included:

  • AI-generated models serve as a powerful starting point but require iterative refinement.
  • There is potential for “round-trip engineering,” where updates to the codebase reflect back into the domain model.
  • While generic subdomains work well with AI, core domains require more human involvement to capture complex business logic

‍

Recent posts
One order passes through five systems with Excel and email in between, compared with resource thinking and flow thinking.
Enterprise AI: Running AI Across Teams and Systems
Enterprise AI runs a whole process across teams and systems. These are the six things to put in place first, and how long a typical rollout takes.
Staffan Palopää
Oct 29
7 min
Spec-driven development still leaves out the people who know the business
Spec-driven development fixed vibecoding for developers. The people who know the business still can't review the spec. Here's how Qlerify puts them in it.
Nikolaus Varzakakos
Oct 14
5 min
AI Legacy Modernization: Reverse-Engineer Legacy Code into a Domain Model
Use AI to reverse-engineer an enterprise-grade business application, adapt it to your needs with humans in the loop, and reimplement it on your selected tech stack.
Staffan Palopää
Sep 17
10 min