Skip to main content

MSA Complexity Guide

A guide to evaluate project suitability for AIDLC (AI-Driven Development Life Cycle) and determine ontology and harness strategies based on MSA difficulty levels.

Why MSA Complexity Matters

Simple CRUD vs Complex MSA

AIDLC is not uniformly applicable to all projects. The application approach must vary based on technical complexity and organizational readiness.

Simple CRUD Project Characteristics:

  • Single service, single database
  • Synchronous request-response patterns
  • Clear transaction boundaries
  • Simple rollback (DB transactions sufficient)

Complex MSA Project Characteristics:

  • Multiple independent services, distributed data
  • Asynchronous event-driven communication
  • Distributed transactions (Saga, compensating transactions)
  • Eventually Consistent data models
  • Complex inter-service dependencies

AIDLC Application Differences

ComplexityAIDLC ApplicationOntology LevelHarness Level
Simple CRUDFull immediate adoptionLightweight schemaBasic Quality Gate
Synchronous MSADDD integration requiredStandard ontologyService contract verification
Async EventsEvent schema ontology requiredFull ontologyEvent schema + idempotency
Saga/CQRSFull AIDLC + expert requiredKnowledge GraphCompensating transaction verification

Core Principles:

  • Higher complexity requires more sophisticated ontology and harnesses
  • Lower organizational readiness requires phased adoption
  • Imbalance between technical complexity and organizational readiness risks project failure

AIDLC Difficulty Matrix

Evaluate Technical Complexity and Organizational Readiness on two axes to determine AIDLC application strategy.

Axis 1: Technical Complexity

LevelDescriptionCharacteristicsExamples
L1Single Service CRUD- Single DB
- Synchronous API
- Simple transactions
User management service
L2Synchronous MSA- Multiple services
- REST/gRPC orchestration
- Distributed DB
Order-Inventory-Payment MSA
L3Async Event-Driven- Event bus
- Eventually Consistent
- Domain events
Event-sourced order system
L4Saga + Compensating Transactions- Distributed transactions
- Compensation logic
- Orchestration/Choreography
Travel booking Saga
L5Distributed Tx + CQRS + Event Sourcing- Read/Write separation
- Event store
- Complex projections
Financial trading platform

Axis 2: Organizational Readiness

LevelDescriptionCharacteristicsChecklist
ANo Champion- No AIDLC experience
- No DDD experience
- No ontology understanding
☐ AIDLC training required
☐ POC project needed
BSingle Champion- 1 AIDLC expert
- Team training required
- Guide-dependent
☐ Verify champion capability
☐ Team onboarding plan
CTeam Experience- Multiple AIDLC practitioners
- Practical DDD experience
- Ontology design capable
☐ Team review process
☐ Best practice sharing
DOrg Standard- Organization-wide AIDLC standard
- Ontology reuse library
- Harness templates
☐ Org standard docs
☐ Reusable assets

Color Legend:

  • 🟢 Green (Ready): Full AIDLC application recommended
  • 🟡 Yellow (Caution): Phased adoption or expert support required
  • 🔴 Red (High Risk): High risk, proceed after sufficient preparation
  • Red (Not Recommended): Improve organizational readiness first

Go/No-Go Decision Tree

Flowchart for deciding whether to apply AIDLC to a project.

Decision Criteria

✅ Go (Proceed Immediately)

Conditions:

  • Technical Complexity ≤ L3 AND Organizational Readiness ≥ B
  • OR Technical Complexity = L4-5 AND Organizational Readiness ≥ C AND Expert support available

Actions:

  • Apply full AIDLC
  • Write ontology/harness
  • Agent-based code generation

⚠️ Partial (Phased Approach)

Conditions:

  • Technical Complexity ≤ L2 AND Organizational Readiness = A
  • OR Technical Complexity = L3 AND Organizational Readiness ≤ B
  • OR Technical Complexity ≥ L4 AND No expert available

Actions:

  • Run POC project first
  • Complete training program
  • Secure expert support
  • Phased AIDLC adoption

🛑 No-Go (Do Not Proceed)

Conditions:

  • Technical Complexity ≥ L4 AND Organizational Readiness ≤ A
  • OR Technical Complexity = L5 AND Organizational Readiness ≤ B

Actions:

  • Improve organizational readiness (training, POC)
  • Hire expert or engage consulting
  • Re-evaluate after preparation complete

Risk Assessment Matrix

Risk FactorHigh 🔴Medium 🟡Low 🟢
Technical ComplexityL4-5L2-3L1
Organizational ReadinessA (No experience)B-C (Some experience)D (Org standard)
Data SensitivityFinancial, HealthcarePersonal dataNon-sensitive
Project Scale20+ services5-20 services1-5 services
Timeline Pressure< 3 months3-6 months6+ months

Overall Risk Assessment:

  • 3+ 🔴: No-Go
  • 1-2 🔴: Partial (phased approach)
  • 0 🔴: Go

Detailed Guides

Next Steps

References