Skip to content

Modulith Engineering Vision

Executive Summary

The engineering vision is to build Algosure as an enterprise-grade, domain-driven Spring Boot Modulith that faithfully implements the Blueprint before any microservice extraction is considered.

Why This Exists

Algosure is not generic tender software. It is an AI Digital Procurement Company made of Domains, Practices, Digital Professionals, AIOS, workflows, documents, data, integrations, events, and organizational memory. Engineering must preserve that shape.

Target Engineering Shape

flowchart LR
    DomainModel[Domain Model]
    Modules[Spring Boot Modulith Modules]
    AppServices[Application Services]
    Events[Internal Events]
    Data[PostgreSQL-Owned Data]
    AIOS[AIOS Boundaries]
    Tests[Module Boundary Tests]

    DomainModel --> Modules
    Modules --> AppServices
    Modules --> Events
    Modules --> Data
    Modules --> AIOS
    Modules --> Tests

Engineering Outcomes

Outcome Meaning
Domain-aligned backend Every approved Domain has an explicit module where practical.
Modulith first The backend is modular before it is distributed.
Controlled dependencies Module dependencies are visible, intentional, and testable.
Event-driven coordination Cross-module workflows prefer internal events over direct ownership leakage.
Secure tenant model Tenant and organization context are first-class engineering constraints.
AIOS governance Digital Professionals execute work through governed application service boundaries.
Future extraction path Modules can be extracted later when ownership, scale, and operations justify it.

Engineering Non-Goals

  • Creating Java code.
  • Creating final APIs.
  • Creating final database schemas.
  • Selecting deployment infrastructure.
  • Extracting microservices before module boundaries are proven.