More patterns · Open reference architecture
Serverless lakehouse services
Catalog and lineage as Neon Functions on branchable Postgres
Every pull request gets its own catalog, database and bucket.
In one paragraph
Serverless lakehouse services package the control plane of an open lakehouse (the catalog, the lineage service and the sharing server) as functions that run per database branch. In luminescent-lakehouse, Rust services built on axum are compiled to Node-API addons and deployed as Neon Functions; each Neon branch gets its own Postgres schema and storage bucket, so a pull request preview has a full, isolated catalog and lineage service that disappears with the branch.
More patterns
Catalog and lineage as Neon Functions on branchable Postgres
Sources
Ingestion
Open lakehouse platform
Engine access
How agents, apps and people reach compute: a client session per identity.
Data foundation
Open tables in a governed catalog, on storage you own.
Governance
Serving
Teams
When to use it
- You want preview environments with their own catalog per pull request.
- You want to run lakehouse control-plane services without operating servers.
When to pick something else
- Data-plane compute: engines still run elsewhere and talk to these services over HTTP.
Walkthrough
How data moves through it
- 1
Build
Each Rust service is compiled to a linux-arm64 Node-API addon and bundled within Neon's size limits.
- 2
Migrate a branch
Deploying to a Neon branch runs the database migrations for that branch.
- 3
Deploy functions
The catalog and lineage functions are applied to the branch from neon.ts.
- 4
Promote
Pull requests get preview branches, merges deploy to staging, and production needs manual approval.
Bill of materials
Components and versions
| Capability | Component | Role in this architecture | Version | License |
|---|---|---|---|---|
| Data foundationCatalog and credentials | Neon | Per-branch Postgres and storage bucket | ||
| Data foundationCatalog and credentials | unitycatalog-rs | Catalog function (mangrove server) | ||
| Data foundationOpen table format | Delta Lake | Managed tables under s3://lakehouse/managed | Apache-2.0 | |
| GovernanceLineage | headwaters | OpenLineage ingest with Marquez-compatible reads | Apache-2.0 | |
| ServingData sharing | distributary | Sharing function; built and tested, not yet deployed |
People and agents
Who works with it
Data engineers
Pipelines that are correct, idempotent and cheap to rerun.
Works with: Open table format
Platform engineers
A platform that is boring to run: deployable from code, observable, with identities for every person, service and agent.
Works with: Catalog and credentials
Governance and security
Policies that hold in every engine and for every agent, lineage for audits, and least privilege by default.
Works with: Lineage, Catalog and credentials
External partners
Live, read-only access to the tables they are entitled to.
Works with: Data sharing
Run it
Reference code
Deploys open-lakehouse services (Unity Catalog, OpenLineage, OpenSharing) to Neon as functions.
just test <fn> # host-native addon behind the fetch handler, node --test
just build <fn> # linux-arm64 bundle + zip, gated on Neon's size limits
just test-arm64 <fn> # the deployable bundle in node:24-bookworm-slim
just deploy <branch> # migrate a Neon branch and apply neon.ts to itCaveats from the reference repos
- The opensharing function builds and passes tests but is not in neon.ts yet; only the catalog and lineage functions deploy.
Answers
Frequently asked questions
- Can a data catalog run serverless?
- Yes. luminescent-lakehouse runs a Unity Catalog implementation and an OpenLineage service as Neon Functions, with a separate Postgres branch and bucket per environment.
Related architectures
All architecturesMore patterns
Policy pushdown and open lineage
Cedar policies compiled to CEL, enforced in Spark and DataFusion, with OpenLineage
More patterns
Semantic layer with Spark metric views
Metrics declared in YAML, served over Spark Connect to BI, notebooks and agents
More patterns
Arrow-native serving
Arrow Flight SQL and Spark Connect clients over lakehouse tables
