MATIH Platform is in active MVP development. Documentation reflects current implementation status.
2. Architecture
Data Stores
Kafka

Kafka

Apache Kafka provides durable event streaming for asynchronous communication between services. Deployed via the Strimzi Kafka Operator, Kafka handles event notification, cross-service coordination, audit event ingestion, and billing usage tracking. Ten services produce or consume Kafka events.


Cluster Configuration

ParameterDevelopmentProduction
DeploymentStrimzi Kafka OperatorStrimzi Kafka Operator
Brokers13
Replication factor13
Min in-sync replicas12
Retention period7 days30 days
CompressionSnappySnappy
Max message size1 MB1 MB

Topic Design

Topics follow the naming convention {domain}.{entity}.{action}:

TopicPublisherConsumers
tenant.lifecycle.eventsTenant ServiceAudit, Billing, Notification
query.execution.eventsQuery EngineAudit, Billing, Data Quality
ai.agent.eventsAI ServiceAudit, Billing
ml.model.eventsML ServiceAudit, Catalog
pipeline.job.eventsPipeline ServiceAudit, Notification
data.quality.eventsData Quality ServiceNotification, Governance
billing.usage.eventsBilling ServiceNotification
config.change.eventsConfig ServiceAll services
security.audit.eventsIAM ServiceAudit
governance.policy.eventsGovernance ServiceCatalog, Query Engine

Partitioning Strategy

All topics use tenant_id as the partition key:

PropertyGuarantee
OrderingAll events for a single tenant arrive in order
AffinityA consumer always processes the same tenant's partition
ScalabilityAdding partitions distributes tenant load

Producer Configuration

acks = all                     (wait for all replicas)
retries = 3                    (retry on failure)
enable.idempotence = true      (prevent duplicate messages)
max.in.flight.requests = 1     (preserve ordering on retry)
compression.type = snappy      (reduce message size)

Consumer Configuration

ParameterValue
Auto offset resetearliest
Max poll records100
Poll interval100ms
Offset commitSynchronous after each batch
Error handlingLog and skip (increment failure counter)

Related Pages