Capture changes from MongoDB and PostgreSQL, or generate realistic records from a schema, group them into time windows, compute averages, percentiles and other aggregates, and route each result to Kafka, Pub/Sub, databases or HTTP APIs. 3TL Bridge runs common tumbling and sliding window aggregations, the kind teams often use Apache Flink for, in the same engine that moves the data. An AI agent helps you build pipelines and keep them running.

One pipeline per source: changes from a MongoDB change stream and from PostgreSQL arrive with their operation, and the email is masked. Routes send inserts and updates to three destinations and deletes only to order_history.
Studio 3T security
SOC 2
Report available
ISO/IEC 27001
Certified
Encryption at rest
With your own KMS key, if you choose
Demo film
About a minute of 3TL Bridge: changes streamed and routed, a transform and a masking script tested in Studio, and the AI agent planning a dead-letter replay.
3TL Bridge groups change events into summaries and sends each one where it belongs.
MongoDB and PostgreSQL
Capture each change as it is committed, read the data already there, and write results to either database. Each one can be a source or a sink, so one pipeline can write the collection or table that the next one reads. Time windows, routing, schemas and high availability work with both.
Generator
The generator is a source with no database or broker behind it. It builds records from a registered schema at the rate you set and sends them through an ordinary pipeline, with transforms, sinks, windows and metrics. Use it to demo a pipeline end to end, fill a test environment or run a load test at a rate you choose.
Set the events per second and, if you want, a total. Without one it runs until you stop it. Use a seed to repeat the same sequence of generated records.
Generated values respect the schema's enums, minimum and maximum values, lengths, array sizes and formats. Fields such as email or created_at get matching values.
Narrow a field for one generator, such as age 21 to 60 or country DE, GB or US, without changing the registered schema.
A transformation script can call fill_schema to build linked records, such as three orders that reference each generated customer. The script sets the reference.
The site-averages example on this page reads from a generator.

Platform overview
The same steps apply to changes from MongoDB and from PostgreSQL.
01
Group records into tumbling or sliding windows and compute sums, averages, medians and percentiles for each group.
02
Route records to several sinks by operation, and window results by any attribute a script sets.
03
Keep failed records in a dead-letter queue, fix the cause, then plan a replay. Checkpoints let a pipeline resume after a restart.
Time windows and aggregations
A windowed pipeline collects records into time windows, back-to-back or overlapping, and groups them, for example by site. When a window ends, a short script turns each group into one result, and the pipeline writes those results to its sinks. Common tumbling and sliding window aggregations, the kind teams often use Apache Flink for, run inside the pipeline itself.
Fixed, back-to-back windows of the length you set, such as one minute. Each record counts toward the window that is open when it enters the pipeline.
Overlapping windows, such as the last five minutes, every minute. Each record counts in every window that covers the time it entered the pipeline.
sum, avg, min, max, median and percentile, each reading the value you pick from every record.
By a field, a path such as /device/region, or a source attribute such as the operation type.
Each result is stored before any sink sees it. Delivery is at least once, so a result can arrive twice.
The pipeline page shows windows settled, output records and open windows. The AI agent can chart them.
Set a window up in the Pipeline Editor or ask the AI agent. Windows need high availability on, which the Helm chart enables by default, and work with MongoDB change streams, PostgreSQL change capture and the generator.
// Configuration excerpt: source, services,// encodings and checkpoint settings left out{ "name": "site-averages", "operation_types": ["insert"], "batch": { "kind": "tumbling", "seconds": 60, "group_by": { "fields": ["site"] } }, "middlewares": [ { "resource": "site-averages.rhai" } ], "sinks": [ { "resource": "site_averages", "schema_id": "site-average" }, { "resource": "hot_sites", "route_id": "hot" } ], "routes": [ { "id": "hot", "attributes": { "level": ["high"] } } ]}The script sets each result's level, and only results with level high go to hot_sites.
| site | countreadings | avg | median | p95 | level |
|---|
| time | site | sensor | temp |
|---|
Readings grouped by site in one-minute windows. Drag the screen to compare. Sped up: a window lasts a few seconds here.

Routing
Routes send each record to the sinks that match it. On a change stream, a route matches the operation: inserts and updates to one topic, deletes to another, and every record to an audit table. Pick a sink to see what it receives.
| op | _id | region | total | status | orders-writes |
|---|
In a windowed pipeline, a sink's route can match any attribute of a result, such as a level your script sets.
Take only the operations you need, so the rest never enter the pipeline.
A record that matches no sink is acknowledged and counted as unrouted.
Set routes up in the Pipeline Editor or ask the AI agent. Studio runs check scripts without applying routes.


Avro and JSON schemas
Attach an Avro or JSON Schema to a source, a script or a sink. Records are checked against it at that stage and can be converted between JSON, BSON and Avro on the way. The schema editor converts a schema between the two formats.
The Studio drafts a schema from sampled documents, and shows each shape when a collection holds several.
MongoDB and Pub/Sub services keep their own schema store. Save as makes a copy under a new name.
Schema-validation errors report types and field paths, never the values themselves.
Ask it to introspect a collection, convert a schema or save one.
A schema that is not attached to a stage is not applied, and the Studio says so.
{ "type": "record", "name": "SiteAverage", "fields": [ { "name": "site", "type": "string" }, { "name": "readings", "type": "long" }, { "name": "avg_temp", "type": "double" }, { "name": "median_temp", "type": "double" }, { "name": "p95_temp", "type": "double" }, { "name": "level", "type": "string" } ]}Attached to the sink site_averages · → JSON and → Avro convert in the editor

Dead-letter queue and recovery
A pipeline without windows chooses what happens to a record it cannot process. Halt, the default, stops the pipeline and reports why. Dead-letter keeps the record with its reason and moves on. Once you fix the cause, plan a replay and send the kept records through again. Windowed pipelines retry their own failures.

Ask the AI agent which records failed and why, and have it plan the replay once the cause is fixed.
With high availability on, an optional circuit breaker halts a pipeline when too many of its records fail.
When a sink keeps refusing writes, the pipeline slows down, waiting up to a minute between attempts, until a write is accepted.
Kept records are stored encrypted. Reading and replaying them needs the queue in a MongoDB collection, which is how Bridge sets it up by default. Windowed pipelines retry their own failures.
High availability
Run several engine workers that share the pipelines between them, coordinated through shared storage in Valkey. With checkpoints on, a pipeline that stops during a restart or a failover resumes from its last saved position on a worker that is still running.
Add engine workers to share pipeline processing. The Helm chart starts with one, and you can add more.
A pipeline continues from its last saved position. The source must still hold the changes since then: the MongoDB oplog, or a PostgreSQL replication slot.
After a failover, a sink can receive some records again. Use stable keys and upserts where a repeat matters.
Two workers on one host stop together if that host fails. Place workers and coordination storage for the failures you need to tolerate.

Encryption and key management
3TL Bridge encrypts three kinds of stored data: service credentials, AI agent conversations and dead-letter payloads. You can keep the key that protects them in AWS KMS, Azure Key Vault or Google Cloud KMS.
Point the engine at a key in your KMS. It keeps data keys only in wrapped form and asks your KMS to unwrap them.
Without a KMS, the engine uses a key you provide as a file or an environment variable.
See the actor, time, resource and result of pipeline, service and script changes, and export the log to your SIEM.
Configure sign-in and API token verification for your deployment. The Kubernetes setup supports Google Workspace, Azure AD or any OIDC provider.
How stored data is protected
AI agent
The AI agent works across the platform: pipelines and their windows and routes, scripts, schemas and tests, metrics and logs, and the dead-letter queue. In Act mode it carries out supported changes; Ask mode only reads. Connect Anthropic or a supported model through AWS Bedrock.

What the AI agent covers
Studio runs use one sample document. Ask the AI agent what a window script returns for a sample window, and check the result before the pipeline runs.
// sample window: 3 readings for berlin[ { "site": "berlin", "temp": 21.5 }, { "site": "berlin", "temp": 22.0 }, { "site": "berlin", "temp": 22.5 } ]// what site-averages.rhai returns{ "site": "berlin", "readings": 3, "avg_temp": 22.0, "median_temp": 22.0, "p95_temp": 22.45, "level": "normal" }Transform Studio
A Rhai editor with live error checking and test suites, in the browser. Studio runs and tests use one sample document; the AI agent can preview what a window script returns for a sample window.

Tests
Run the tests before each deploy; deploying does not run them automatically.
Begin with a script template for a common transformation and adapt it to your records.
Studio runs and tests use one sample document, without windows or routes. Ask the AI agent to preview a sample window.
Open a running pipeline to inspect it, or duplicate it as a draft to work on a change. The running original is left alone.
Pipeline management
Start, stop and monitor every pipeline from one visual manager, with changes recorded in the audit log.

Use cases
01 / 06
Group readings by site in one-minute windows, write the average, median and p95 to storage, and send high readings to an alert topic.
source
mongodb://sensors.readings
consumer
kafka://hot-sites
Windowed and routed
Masking
Masking is one of the things a transformation script can do. Start from a script template that masks contact details, hashes values or removes fields, adapt it in Rhai, and test the output against the fields you intend to share.

Deployment
Run Bridge on your own Kubernetes cluster with Helm, on AWS, Azure, Google Cloud or your own servers. Licensing and any AI provider you configure need their own connections.
Run Bridge on your own Kubernetes cluster with the Helm chart, on every tier. It includes Ingress, ConfigMaps, NetworkPolicy, a Prometheus ServiceMonitor and high availability through Valkey.
Install Bridge on an Ubuntu host with Incus.
Run the whole stack on one host. It has no browser sign-in, so use Kubernetes when you need it.
The Studio 3T platform
The MongoDB IDE
Query, explore and manage MongoDB from one professional IDE.
PII discovery
Scan a sample of each collection for fields that may hold personal data, and check database settings.
CDC and ETL pipelines
Stream, aggregate, route and transform data from MongoDB and PostgreSQL.
Governed access
One governed catalog of MongoDB connections, with single sign-on and an audit trail of access changes.
Built for every role
01 / 06
Write transformation and window scripts in Rhai with help from the AI agent, test them against sample records, and deploy them as a pipeline you can inspect later.
FAQ
3TL Bridge builds and runs streaming pipelines. It captures changes from MongoDB and PostgreSQL, or reads from Kafka, Pub/Sub and HTTP, transforms records with Rhai scripts and routes them to Apache Kafka, Google Cloud Pub/Sub, MongoDB, PostgreSQL or an HTTP API. Pipelines that read MongoDB change streams, PostgreSQL change capture or the generator can also aggregate records in time windows. An AI agent helps you build pipelines and keep them running.
No. 3TL Bridge runs time-window aggregations, routing and transformations inside the pipeline that captures the changes, so there is no separate cluster to deploy or job to compile. Scripts are written in Rhai, a full scripting language with functions, loops and helpers such as avg, median and percentile. They are stored with their service, so you can change one without rebuilding or redeploying the engine. Pipeline metrics, window status, an audit log, lineage records and an AI agent that works through the same API are part of the same product.
A windowed pipeline collects records into tumbling or sliding windows. Tumbling windows are fixed, back-to-back windows, such as one minute each, grouped by fields you choose. Each record counts toward the window that is open when it enters the pipeline. Sliding windows overlap: each is as long as you set, such as five minutes, and a new one starts at every step, such as every minute, so a record counts in every window that covers it. The window length must be a whole multiple of the step, and a record can be in at most 60 windows. When a window ends, a short Rhai script turns each group into one result, using functions such as sum, avg, min, max, median and percentile. Results are stored before delivery and delivered at least once. Windows need high availability on and work with MongoDB change streams, PostgreSQL change capture and the generator source.
Yes. A pipeline can have several sinks, and routes decide which records each one receives. On a change stream a route matches the operation, such as inserts and updates to one topic and deletes to another. In a windowed pipeline a sink's route can match any attribute of a result. A sink without a route receives every record.
Avro and JSON Schema. Attach a schema to a source, a script or a sink, and records are checked against it at that stage. The schema editor converts between the two formats, and MongoDB and Pub/Sub services store schemas.
A pipeline without windows chooses. By default it halts and reports why. Set it to dead-letter, and failed records go to a dead-letter queue with their reason while the pipeline continues. Windowed pipelines retry their own failures. After you fix the cause, plan a replay to send them through again. The AI agent can show which records failed and plan the replay; for now, the replay itself runs through the engine's API.
In Act mode it can create, start, stop and delete pipelines, save drafts, scripts, schemas and test suites, run tests, preview what a window script returns for a sample window, read metrics, logs and the audit log, and investigate the dead-letter queue. Ask mode only reads. Connect Anthropic or a supported model through AWS Bedrock.
3TL Bridge captures changes from MongoDB and PostgreSQL in real time and processes them inside the pipeline: time-window aggregations, routing, schemas and Rhai transformations, including masking. They run before records reach any sink, and you can test scripts in Transform Studio first.
Change data capture from MongoDB and PostgreSQL, time windows, routing, Avro and JSON schemas, transformation, a dead-letter queue, high availability with several engine workers, encryption at rest with an optional KMS of your own, test suites, monitoring, single sign-on (Kubernetes setup), an audit log and an AI agent, in one platform.
Data masking replaces sensitive values you choose, such as names or email addresses, with protected versions, to limit their exposure when data is used for testing, analytics or AI.
Masking runs inside the pipeline, before records reach any sink. Built-in functions mask email addresses and phone numbers, keep only the year of a date, and hash values with SHA-256. Script templates for masking, hashing and redacting fields give you a starting point. Adapt them in Rhai and test the output in Transform Studio before you deploy.
Sources: MongoDB change streams, PostgreSQL change capture (PostgreSQL 15 or later), Apache Kafka, Google Cloud Pub/Sub, HTTP endpoints, a scanner that reads existing MongoDB collections and PostgreSQL tables, and a generator that builds records from a schema. Destinations: MongoDB, PostgreSQL, Apache Kafka, Google Cloud Pub/Sub and HTTP APIs.
Yes. 3T Software Labs has a SOC 2 report and is ISO/IEC 27001 certified. Credentials are encrypted at rest with AES-256, you can configure sign-in and API token verification for your deployment, and audit logs export to your SIEM.
Yes. The engine can keep the key that protects stored service credentials, AI agent conversations and dead-letter payloads in AWS KMS, Azure Key Vault or Google Cloud KMS. It stores data keys only in wrapped form and asks your KMS to unwrap them. Without a KMS, it uses a key you supply as a file or an environment variable.
On your own infrastructure. Run it on your Kubernetes cluster with the Helm chart, on every tier, on AWS, Microsoft Azure, Google Cloud or your own servers. Docker Compose runs the stack on one host; use the Kubernetes setup when you need browser sign-in. An installer for Ubuntu hosts with Incus is coming soon.
With checkpoints on, each pipeline resumes from its last saved position after a restart or failover. With several engine workers sharing pipelines through Valkey, a pipeline on a worker that stops continues on another worker. Delivery is at least once, so a sink may receive some records again; use stable keys and upserts where that matters. Recovery also needs the source to still hold the changes since that position, such as the MongoDB oplog.
Book a demo to see windows, routes, the dead-letter queue and the AI agent on a running pipeline, and talk through a trial on your own infrastructure.
With your consent, we and third-party providers use cookies and similar technologies on our website to analyse your use of our site for market research or advertising purposes, including personalized advertising (“performance”), to provide you with additional functions (“functional”), and to show content from social media platforms, such as embedded videos (“social media”). This may result in the creation of pseudonymous usage profiles and the transfer of personal data to third countries, including the USA, which may have no adequate level of protection for the processing of personal data. By clicking “Accept all”, you consent to the storage of cookies and the processing of personal data for these purposes, including any transfers to third countries. By clicking on “Decline all”, you do not give your consent and we will only store cookies that are necessary for our website. You can customize the cookies we store on your device or change your selection at any time - thus also revoking your consent with effect for the future - in the Cookie Consent Center, which you can open from the link at the bottom of every page. You can find further information in section 9 of our Privacy Policy.