Skip to content

Architecture Patterns

System architecture and design patterns for organizing complex Context-Action applications.

Overview

Architecture patterns provide structural guidance for organizing Context-Action patterns into scalable, maintainable applications.

Available Architecture Patterns

  • MVVM - Model-View-ViewModel architecture with layer separation
  • Domain Context - Document-centric domain separation for multi-domain apps
  • Composition - Pattern composition strategies for complex applications

Quick Reference

PatternPurposeBest For
MVVMArchitectural layersSingle-domain apps, clear layer separation
Domain ContextBusiness domain separationMulti-domain apps, large teams, microservices
CompositionPattern integrationComplex apps requiring multiple patterns

When to Use Architecture Patterns

  • Large Applications: Applications with multiple domains or complex business logic
  • Team Collaboration: Different teams working on different domains
  • Scalability Requirements: Applications that need to scale in size and complexity
  • Clear Separation: When you need well-defined boundaries between concerns
  • Documentation Alignment: When your documentation structure needs to match your code structure

Architecture Decision Framework

Single Domain Applications

Recommended: MVVM Architecture

  • Clear layer separation (Model → ViewModel → Performance → View)
  • Perfect for applications with one primary business domain
  • Optimal for teams focusing on architectural clarity

Multi-Domain Applications

Recommended: Domain Context Architecture

  • Document-centric context separation
  • Perfect for applications with multiple business domains
  • Optimal for larger teams with domain ownership

Hybrid Applications

Recommended: Composition Patterns

  • Combine MVVM layers within each business domain
  • Use Domain Context for business separation
  • Apply composition strategies for pattern integration

Key Benefits

  • 🏗️ Structural Clarity: Clear organization and boundaries
  • 📚 Documentation Alignment: Code structure matches documentation structure
  • 👥 Team Collaboration: Well-defined ownership boundaries
  • 🔧 Maintainability: Easier to modify and extend over time
  • ⚡ Performance: Architecture patterns support optimal performance characteristics
  • 🔒 Type Safety: Full TypeScript support with clear interfaces

Integration

Architecture patterns work seamlessly with:

Released under the Apache-2.0 License.