Skip to main content

Architecture

LakeSoul has three layers: clients at the top, one engine in the middle, and your storage at the bottom.

┌──────────────────────────────────────────────────────────────┐
│ psql · JDBC · BI tools Python SDK · Daft · Ray · Torch │
└───────────────┬──────────────────────────┬───────────────────┘
│ PG wire │ native IO / Arrow
┌───────────────▼──────────────────────────▼───────────────────┐
│ LakeSoul engine │
│ PostgreSQL front end · incremental SQL │
│ vector + full-text indexes · vectorized execution │
└───────────────────────────────┬──────────────────────────────┘
│
┌───────────────────────────────▼──────────────────────────────┐
│ object storage (S3 / OSS / HDFS) + PostgreSQL metadata │
└──────────────────────────────────────────────────────────────┘

Engine components​

ComponentResponsibility
Catalog and commit protocolTables, namespaces, snapshots and atomic commits, stored in PostgreSQL
Native IOParquet, Vortex and Vortex Compact; merge-on-read for primary-key tables; object-store cache
ExecutionDataFusion planning and vectorized execution, plus LakeSoul planner rules
PostgreSQL front endWire protocol, pg_catalog, DDL, DML, transactions, query sessions and limits
Federation and subscriptionsADBC foreign tables and S3 external files; PostgreSQL logical replication and MySQL binlog subscriptions
Incremental SQLConsumes the source commit log and writes only changed rows to the target
Vector and full-text indexesIVF + RaBitQ and Tantivy BM25, maintained on write and pushed into the scan
CompactionDisaggregated, size-tiered merge of delta files

Two PostgreSQL roles​

The name "PostgreSQL" appears twice, in different places:

  1. The metadata store. LakeSoul uses a PostgreSQL database for its catalog and commit records. This is infrastructure; users do not connect to it to query tables.
  2. The PostgreSQL endpoint. postgres-lakesoul implements the PostgreSQL wire protocol. It is the LakeSoul engine, not the metadata database.

Keep the two on separate ports in local setups. The quick start uses 5432 for metadata and 5433 for the endpoint.

Compute and storage​

  • Storage is yours. Table data lives in your bucket, in open formats, with the commit metadata in PostgreSQL.
  • Compute is stateless. A postgres-lakesoul process can be restarted or replaced without moving data. With distributed workers configured, queries are planned across them and the same tables scale to a PB-scale cluster.
  • One snapshot. The PostgreSQL endpoint, the Python SDK and the connectors read the same committed snapshot. There is no second copy for search or AI.

Next​