Absolutely! Let’s zoom into Step 5: Understand the Architecture of the Feldera project and break it down in a detailed, hands-on way. Since Feldera is an advanced real-time SQL-based data streaming platform, this step helps you get a deep understanding of how the system works together end to end.
🧭 Step 5: Understand the Architecture (Detailed)
🔍 Goal
Understand how Feldera’s components interact with each other in the context of:
Data ingestion
Query processing
Stream execution
State and storage management
Output/result delivery
🗺️ Step-by-Step Breakdown
✅ Step 5.1: Identify the High-Level System Overview
Feldera is a declarative streaming data platform inspired by Differential Dataflow, allowing real-time SQL analysis over high-throughput streaming data sources like Kafka, with support for dynamic updates and scaling.
🏗️ Key Components:
Component
Description
Frontend / CLI / API
User interfaces for submitting SQL queries, jobs, managing pipelines.
Executes dataflows using an optimized Differentiable Dataflow engine.
Connector Layer
Integrates with Kafka, Postgres, files, etc., for input/output.
Catalog & Config Service
Stores metadata for schemas, connectors, jobs.
✅ Step 5.2: Explore the Repo Structure for Architecture
Here’s a quick map with direct repo pointers and what they do architecturally:
Directory
Role in Architecture
Notes
frontend/
APIs (REST/gRPC), CLI
How users interact with Feldera
sql-to-dbsp/
SQL compiler to DBSP IR
Converts SQL → DBSP (Differential Dataflow)
dbsp/
Runtime engine in Rust
Executes compiled DBSP IR code
connectors/
Source/sink connectors (e.g., Kafka, Postgres)
Input/output glue
orchestration/
Platform orchestration and pipeline management
Deployments, jobs
catalog/
Schema and job metadata
Database of schemas, pipeline configs
docs/
Architecture docs
👍 Read this thoroughly
✅ Step 5.3: Create an Architecture Diagram
📊 Logical Flow (High-Level Pipeline)
mermaid
graph TD
A[User CLI/API/SQL UI] --> B[SQL Parser / Planner]
B --> C[SQL-to-DBSP Compiler]
C --> D[DBSP Runtime Engine (Rust)]
E[Kafka / Postgres] --> D
D --> F[Output Connectors (Kafka, S3, DB)]
G[Catalog Service] --> B
G --> C
G --> D
✅ How it works:
A user submits SQL via CLI or API.
SQL is parsed and converted into a DBSP program.
The DBSP program is compiled into Rust, then executed in the runtime.
The runtime pulls input from Kafka (or other sources) and writes results to sinks.
The orchestration layer ensures these jobs are running properly.