liveBook · Manning

Edge case

As explained in Architecture Modernization: Socio-technical alignment of software, strategy, and structure

An edge case is an uncommon or exceptional scenario that occurs outside the primary expected path of a process.

An edge case is an uncommon or exceptional scenario outside the primary expected path. In domain modeling, exploring edge cases exposes hidden complexity without losing sight of the business narrative. section 7.1.1

Use edge cases to improve collaborative domain exploration:

  • Model them as branches below the main timeline so the primary flow remains visible while alternative outcomes become explicit. section 7.1.1
  • Balance detail carefully: overly abstract events hide complexity, while overly technical events obscure the domain narrative. section 7.1.1
  • Zoom into important timeline events with Example Mapping, inviting participants to discover varied scenarios and hidden complexity. section 7.4.1

Cancellation after warehouse dispatch

Start with the Cancel Order action and its expected Order Canceled event. If a customer requests a refund after the order has left the warehouse, branch to Cancellation Denied instead. This alternative may reveal a need to model voucher-related scenarios separately. section 7.4.1

Figure 7.4 Modeling edge cases as branches below the main timeline

Use the branching visualization to keep edge cases connected to the main timeline without presenting them as part of the primary flow. section 7.1.1

How Architecture Modernization: Socio-technical alignment of software, strategy, and structure covers it

How deep it goes
Models alternative scenarios as timeline branches and zooms into selected events with Example Mapping.
Examples
Uses cancellation after warehouse dispatch, Cancellation Denied, voucher scenarios, and branches beneath an EventStorming timeline.
What you can do after
Practice/perform scenario mapping that uncovers alternative outcomes and hidden domain complexity around selected events.
How it connects
Connects edge cases to EventStorming, domain events, event granularity, and Example Mapping.

Also explained in

Compare how 7 books explain edge case →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Architecture Modernization: Socio-technical alignment of software, strategy, and structure. The section links point to the parts of the book it draws on.