content/influxdb3/clustered/reference/internals/storage-engine.md
The InfluxDB 3 storage engine is a real-time, columnar database optimized for time series data built in Rust on top of Apache Arrow and DataFusion. It supports infinite tag cardinality (number of unique tag values), real-time queries, and is optimized to reduce storage cost.
{{< svg "/static/svgs/v3-storage-architecture.svg" >}}
The Router (also known as the Ingest Router) parses incoming line protocol and then routes it to Ingesters. The Router processes incoming write requests through the following steps:
The Ingester processes line protocol submitted in write requests and persists time series data to the Object store. In this process, the Ingester does the following:
The Querier handles query requests and returns query results for requests. It supports both SQL and InfluxQL through Apache Arrow DataFusion.
At query time, the querier:
Receives the query request and builds a query plan.
Queries the Ingesters to:
Queries the Catalog service to retrieve Catalog store information about partitions in the Object store that contain the queried data.
Retrieves any needed Parquet files (not already cached) from the Object store.
Reads partition Parquet files that contain the queried data and scans each row to filter data that matches predicates in the query plan.
Performs any additional operations (for example: deduplicating, merging, and sorting) specified in the query plan.
Returns the query result to the client.
InfluxDB's catalog system consists of two distinct components: the Catalog store and the Catalog service.
[!Note]
Managing Catalog components
The Catalog service is managed through the
AppInstanceresource, while the Catalog store is managed separately according to your PostgreSQL implementation.
The Catalog store is a PostgreSQL-compatible relational database that stores metadata related to your time series data including schema information and physical locations of partitions in the Object store. It fulfills the following roles:
The Catalog service (iox-shared-catalog statefulset) is an IOx component that caches and manages access to the Catalog store.
The Object store contains time series data in Apache Parquet format. Data in each Parquet file is sorted, encoded, and compressed. A partition may contain multiple parquet files which are subject to compaction. By default, InfluxDB partitions tables by day, but you can customize the partitioning strategy
The Compactor processes and compresses partitions in the Object store to continually optimize storage. It then updates the Catalog with locations of compacted data.
The Garbage collector runs background jobs that evict expired or deleted data, remove obsolete compaction files, and reclaim space in both the Catalog and the Object store.