> ## Documentation Index
> Fetch the complete documentation index at: https://aletyx.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Data-Index & Data-Audit

> Kogito Data-Index and Data-Audit components - GraphQL querying of process state, audited event storage for compliance, plus deployment and retention options.

Aletyx Enterprise Build of Kogito and Drools 10.1.0-aletyx employs a **de-normalized persistence model**, separating **runtime data** from **queryable data**. This ensures high throughput operations without impacting query performance, making the system efficient and scalable.

### Key Components

Two distinct yet complementary components handle queryable data:

1. **Data-Index** – Provides a **snapshot** of the current process state, accessible via a **GraphQL interface** that allows filtering and cross-referencing of process instances.
2. **Data-Audit** – Focuses on long-term storage of **audited process events**, critical for **compliance and regulatory needs**. It also offers a **GraphQL interface** with support for custom queries.

[<img src="https://mintcdn.com/aletyx-3353d50c/UdT8DI1QFCgugDzY/images/architecture/core/processes/images/data.png?fit=max&auto=format&n=UdT8DI1QFCgugDzY&q=85&s=c06f90f3e192081b28d16326d2680648" alt="Runtime feeding Data-Index" width="1170" height="590" data-path="images/architecture/core/processes/images/data.png" />](/docs/images/architecture/core/processes/images/data.png)

### Deployment Considerations

* **Data-Index** can operate independently from the **runtime** in a separate container. However, this requires **Kafka and a Change Data Capture (CDC) mechanism** (e.g., **Debezium**) to maintain synchronization without relying on transactions.
* **Compact Architecture** simplifies deployment by consolidating **Data-Index** within the application, ensuring data consistency via the database’s transaction manager.
* **Data-Audit** is only available in **Compact Architecture**, as it requires participation in transactional consistency.

### Data Retention

* **Data-Index** can be periodically cleaned, keeping only **active process data** as per business requirements.
* **Data-Audit** retains information for an extended period, depending on compliance needs.

By structuring data management this way, Apache KIE achieves a balance between **real-time process monitoring** and **long-term auditability**, ensuring both efficiency and compliance.
