Skip to content

Bounded Contexts — Boundary View

The Bounded Contexts view answers: where does a particular domain language and model apply?

Use this facet to inspect context boundaries and their owned concepts. Start with two contexts whose use of one term differs. Treat it as a related view of domain information rather than a second independently authoritative strategic model. Use the authored Context Map when you need explicit integration patterns.

Find a word used differently in two parts of the business. A short conversation with each area is a useful starting point.

A bounded context marks where a particular model and language apply. Sales and Support can both use Customer while referring to different responsibilities and information. The boundary helps each model remain clear without forcing all possible meanings into one universal entity.

Use the view to inspect the owned concepts and the relationships around a context. Ask which decisions can be made locally, which terms need translation and who resolves ambiguity. The most useful boundary may be within one application rather than around a separate deployable service.

A context discovered from source-code clusters is a candidate. Its evidence may show strong internal dependencies without explaining the business language or responsibility. Review that candidate with domain experts before carrying it into an authored strategic design. A team organization chart can also inform the choice without determining it.

When the view reveals an error, update the appropriate authored source and keep related representations aligned. The boundary view, the Context Map and DDD can explain different aspects of the same decision. They should not accumulate independent, contradictory answers about which context owns Refund or what Customer means. The value of the view is making these relationships easier to inspect and discuss.

Place Customer in both Sales and Support, with different definitions.

  1. Describe Sales Customer as a commercial relationship.
  2. Describe Support Customer in terms of the person or organization entitled to assistance.
  3. Review which information must cross the boundary and what translation is needed.
  4. Check that related dictionary terms and the authored Context Map reflect the same distinction.

The example demonstrates scoped meanings. It does not require two databases or two services, and a shared deployment does not erase the conceptual boundary.

These four exercises are lesson briefs. Their dedicated CtxBazaar recipes and browser launch actions are planned; see Learning with models for available downloads and the meaning of each result.

Exercise Try this Expected observation
Sales and Support Inspect two contexts that use Customer differently. Explain why the same word has context-specific meaning.
Assign a concept Review whether Refund belongs to Booking or Payments. Document the ownership reasoning instead of deciding from screen placement.
Boundary inside a monolith Show two contexts sharing one deployment. Distinguish a language boundary from a process boundary.
Review an inferred split Compare a discovered module cluster with a proposed business context. Keep the candidate tentative until domain evidence supports it.
  • Equating every service, team or database with a bounded context.
  • Promoting a discovered cluster without reviewing its business meaning.
  • Maintaining conflicting ownership decisions across the view and authored models.

A boundary separates meanings inside one application. One application contains Sales and Support regions; Customer receives a different definition in each; a translation link joins them.

Pause and predict: Can two bounded contexts exist within the same deployed application?

This is the text storyboard for a proposed short illustrated film. The written walkthrough and exercises are available now; a published movie will be added after its scenes, captions and model references have been reviewed.

Bounded contexts come from strategic Domain-Driven Design; Eric Evans’s resources are a starting point for the method. A context is a boundary within which a model has a particular meaning, not necessarily a service, database or team. ContextBrew exposes a dedicated boundary view alongside its authored domain models.

The view helps reviewers notice where terms, responsibilities and relationships sit. Review a boundary using the business language and changes it contains, not only the boxes in a deployment diagram. A discovered or proposed boundary needs human agreement before it becomes a design commitment. Keep the canonical domain and Context Map current when a facet reveals a mistake; parallel descriptions of the same boundary should not drift into competing sources of truth.

An ownership chart highlights people, a C4 view highlights architecture, and a module graph highlights code dependencies. Context Map adds typed strategic relationships. Each can inform a boundary decision, but none automatically determines it.