← Back to Documentation Home

User Documentation

Subdomain

A Subdomain represents a sub-area within a domain, providing additional organizational structure.

Key Fields

  • Name: Subdomain identifier
  • Description: Purpose and scope

How It Works

graph LR Domain[Domain] -->|contains| Subdomain[Subdomains] Subdomain -->|contains| Context[Contexts]

Subdomains help organize large domains:

  • Sales → Direct Sales, Partner Sales, E-Commerce
  • Operations → Warehousing, Transportation, Customer Service
  • Finance → Accounts Payable, Accounts Receivable, Reporting

When to Use Subdomains

Use subdomains when:

  • A domain has many contexts (more than 10-15)
  • There are natural sub-groupings within the domain
  • Different teams own different parts of the domain

It's optional - you can go directly from domain to context if the domain is small.

Integration

  • Storage: korgraph database, type subdomain
  • Hierarchy: Child of domain, parent of context

Tips

  • Keep subdomains focused on a coherent sub-area
  • Avoid creating too many levels (3-4 levels total is optimal)
  • Use clear, descriptive names
  • Document boundaries in the description