Architecture
3TL Bridge is composed of two main layers: the Bridge application (an nginx + React SPA that serves the UI, handles OIDC authentication in-browser, and reverse-proxies API calls) and the pipeline engine (the Rust-based execution engine that powers all backend functionality). Both are deployed together; the SPA forwards every API request (carrying the user’s access token) to the pipeline engine, which reads the token’s identity claims for audit attribution and trusts the authenticated boundary in front of it (see Request Trust Model on the Security page).
Component Overview

Key Components
Bridge Application
The Bridge application is an nginx + React SPA. It provides:
- Browser-based UI for pipeline management, Transform Studio, and observability
- OIDC/PKCE authentication (token exchange happens in-browser via the SPA)
- Reverse-proxying of all API requests to the pipeline engine
Bridge itself is stateless: it serves static assets and forwards authenticated requests. Service registry, audit logging, workspace management, and every other backend concern live in the pipeline engine.
Credentials are encrypted at rest with AES-256 by the pipeline engine and never exposed through the API or UI.
Pipeline Engine
The pipeline engine, written in Rust, is the backend for the entire platform. It handles:
- Pipeline execution (Change Streams, Kafka, Pub/Sub, HTTP sources)
- Rhai transformation logic per event
- Checkpoint persistence so pipelines resume from the exact position after restart or failover: no re-processing, no data loss
- Service registry and credential management (AES-256 encrypted)
- Transform Studio workspace, schema, and test suite APIs
- AI Agent (LLM-powered assistant with tool access)
- Audit logging
- Management API (jobs, services, metrics, logs)
Pipeline configuration is delivered via Kubernetes ConfigMap (Helm deployment) or a mounted TOML file (Compose deployment).
Valkey (HA Coordination)
Valkey (Redis-compatible) provides high-availability coordination for the pipeline engine. When Valkey is enabled, the pipeline engine supports horizontal scaling:
- Leader election:
SET NX EXlease ensures exactly one worker ingests from MongoDB Change Streams - Event fan-out: Valkey Streams (
XADD/XREADGROUP) distribute events so all workers consume them - Cluster commands: Pub/Sub channel propagates API calls across workers
- Backpressure monitoring: stream depth signals when workers should slow down
In development environments, Valkey is optional: a single pipeline engine instance runs without it.
Data Flow
For a MongoDB CDC pipeline:
- The pipeline engine subscribes to a MongoDB Change Stream on the configured source collection
- Each change event (insert, update, replace, delete) is received in order
- The Rhai transformation script executes against the event document
- The transformed document is written to the configured sink
- The pipeline engine persists a checkpoint (resume token) after each event, or in configurable batches for high-throughput pipelines
If the pipeline engine restarts, it reads the latest checkpoint and resumes from that position in the Change Stream. No events are re-processed or skipped.
Deployment Topology
| Deployment | Typical use | HA | Notes |
|---|---|---|---|
| Kubernetes (Helm) | Production | Yes (with Valkey) | Helm chart includes ingress, ServiceMonitor, NetworkPolicy, External Secrets Operator support |
| Docker Compose | Evaluation, smaller deployments | Yes (Valkey included) | bash setup.sh configures the full stack interactively |
Authentication Flow
User browser (React SPA)
│
│ 1. Access Bridge URL
▼
Bridge Application (nginx serves SPA)
│
│ 2. SPA redirects to OIDC provider (if auth is enabled)
▼
Identity Provider (Google Workspace / Azure AD / custom OIDC)
│
│ 3. Authorization code (PKCE)
▼
React SPA (in-browser)
│
│ 4. SPA exchanges code for tokens directly with the OIDC provider (PKCE flow, client-side)
│ 5. All subsequent API calls carry the access token via Bridge to the pipeline engine
▼
Pipeline Engine (reads identity claims for audit attribution;
token validation happens at the identity layer / authenticated boundary)
OIDC provider details are configured entirely via environment variables at runtime. No image rebuilds are required when switching providers or deploying to a new customer environment. See Security for configuration details.