MATIH Platform is in active MVP development. Documentation reflects current implementation status.
1. Introduction
Architecture Preview

Architecture Preview

The MATIH Enterprise Platform is built on a two-plane architecture that separates platform management (Control Plane) from tenant workload execution (Data Plane). This section provides a high-level overview of the architecture, preparing you for the comprehensive deep dive in Chapter 2.


Two-Plane Architecture

The platform is divided into two operationally independent planes, each with its own deployment model, technology stack, and failure domain.

PlanePurposeTechnologyDeployment
Control PlaneTenant management, identity, billing, configurationJava 21, Spring Boot 3.2Shared, Matih-operated
Data PlaneQuery execution, AI/ML inference, BI, pipelinesJava, Python, Node.jsPer-tenant, customer cloud
+------------------------------------------------------------------+
|                        CONTROL PLANE                              |
|                  (Multi-tenant SaaS, Matih-operated)              |
+------------------------------------------------------------------+
| IAM | Tenant | Config | Notification | Audit | Billing | Registry|
| 8081|  8082  |  8888  |    8085      | 8086  |  8087   |  8084   |
+------------------------------------------------------------------+
                              |
                    Data Plane Agent (8085)
                              |
+------------------------------------------------------------------+
|                         DATA PLANE                                |
|                  (Per-tenant, Customer Cloud)                     |
+------------------------------------------------------------------+
| Query  | Catalog | Semantic |  BI  |  AI   |  ML  | Pipeline     |
| Engine | Service |  Layer   |Svc   |Service|Svc   | Service      |
|  8080  |  8086   |  8086    | 8084 | 8000  | 8000 |  8092        |
+------------------------------------------------------------------+

Control Plane Services

The Control Plane consists of 10 Java/Spring Boot 3.2 microservices deployed in the matih-control-plane Kubernetes namespace. These services manage platform-level concerns that are shared across all tenants.

ServicePortResponsibility
iam-service8081Authentication, RBAC, JWT token management
tenant-service8082Tenant lifecycle, provisioning, namespace management
config-service8888Centralized configuration, feature flags
notification-service8085Multi-channel notification delivery
audit-service8086Immutable audit trail, compliance logging
billing-service8087Usage metering, subscription management
observability-api8088Metrics aggregation, health status
infrastructure-service8089Infrastructure provisioning, DNS management
api-gateway8080Request routing, JWT validation, rate limiting
platform-registry8084Service catalog, schema registry

The Control Plane is tenant-aware but not tenant-specific. It stores metadata about tenants (configuration, billing, user profiles) but never processes customer business data.


Data Plane Services

The Data Plane consists of 14 polyglot microservices deployed into per-tenant Kubernetes namespaces. These services execute the actual data processing, AI inference, and analytics workloads.

ServiceTechPortResponsibility
ai-servicePython/FastAPI8000LangGraph multi-agent orchestrator, text-to-SQL
query-engineJava/Spring Boot8080Trino-based federated SQL execution
bi-serviceJava/Spring Boot8084Dashboard management, widget rendering
ml-servicePython/FastAPI8000Model training, serving, experiment tracking
catalog-serviceJava/Spring Boot8086Metadata management, schema resolution
pipeline-serviceJava/Spring Boot8092Workflow orchestration via Temporal
semantic-layerJava/Spring Boot8086Business metric definitions, MDL management
data-quality-servicePython/FastAPI8000Data profiling, quality checks
render-serviceNode.js/Express8098Chart and PDF rendering
governance-servicePython/FastAPI8080Data classification, access policies
ontology-servicePython/FastAPI8101Business term resolution
ops-agent-servicePython/FastAPI8080AI-powered operations diagnostics
data-plane-agentJava/Spring Boot8085Local health checking and lifecycle management

The Intent to Insights Flow

The core workflow of the platform transforms a natural language question into a data-driven answer:

User Question ("What was revenue last quarter?")
      |
      v
AI Service (multi-agent orchestrator)
      |
      +-- RouterAgent: classify intent
      +-- SQLAgent: generate SQL using schema context
      +-- Catalog Service: table/column metadata
      +-- Semantic Layer: business metric definitions
      +-- Vector Store: similar query examples
      |
      v
Generated SQL
      |
      v
Query Engine (Trino)
      |
      +-- Iceberg (lakehouse tables)
      +-- ClickHouse (OLAP analytics)
      +-- PostgreSQL (metadata)
      |
      v
Results
      |
      v
BI Service (visualization)
      |
      v
User Dashboard

Infrastructure Layer

The platform runs on a rich set of data infrastructure components:

CategoryTechnologies
Primary databasePostgreSQL 16
Caching and sessionsRedis 7
Event streamingApache Kafka (Strimzi Operator)
Federated SQLTrino
OLAP analyticsClickHouse, StarRocks
Vector embeddingsQdrant, LanceDB
Knowledge graphsNeo4j, Dgraph
Object storageMinIO (S3-compatible)
Full-text searchElasticsearch 8.11
ML infrastructureMLflow, Ray, vLLM, Feast

Kubernetes Namespaces

The platform organizes workloads across seven Kubernetes namespaces:

NamespacePurpose
matih-systemCore operators, CRDs, Strimzi, cert-manager
matih-control-planeAll 10 Control Plane services
matih-data-planeDefault Data Plane services (per-tenant in production)
matih-observabilityPrometheus, Grafana, Tempo, Loki
matih-monitoring-control-planeControl Plane monitors and alerts
matih-monitoring-data-planeData Plane monitors and alerts
matih-frontendReact workbench applications

In production, each tenant receives a dedicated namespace following the pattern matih-data-plane-:tenant-slug, providing full namespace-level isolation.


Next Steps

This architecture preview establishes the structural foundation. For the complete deep dive into every layer, service interaction, and design decision, continue to Chapter 2: Architecture Deep Dive.