Aggregate live data in time windows.

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.

6
aggregate functions
5
kinds of destination
2
schema formats
bridge.example.com / pipelinesIllustration

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

See it. Test it. Trust it.

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

Stream changes from 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.

MongoDB

Capture changes
Change streams on a replica set.
Read what is there
A scanner reads a collection in index order.
Write results
A collection can be a destination.
Resume after a stop
From the last checkpoint, while the changes are still in the oplog.

PostgreSQL

Capture changes
Logical replication on PostgreSQL 15 or later: inserts, updates and deletes as they are committed.
Read what is there
A scanner reads a table in key order.
Write results
Insert or upsert each record as a row.
Resume after a stop
A replication slot keeps the changes on the server until the pipeline catches up.

Generator

Start a pipeline with generated data.

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.

Rate, total and seed

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.

Values that follow the schema

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.

Field rules

Narrow a field for one generator, such as age 21 to 60 or country DE, GB or US, without changing the registered schema.

Related records in a script

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.

The New service form in 3TL Bridge with Generator (synthetic data) as the provider: 2 events per second, no total, seed 42, and field rules that keep temp between 15 and 35 and limit site to berlin, munich, paris and madrid
Setting up a generator service: the rate, an optional total, a seed and field rules that narrow the schema's values.

Platform overview

Follow a change through one pipeline to a useful result.

The same steps apply to changes from MongoDB and from PostgreSQL.

01

Summarize in time windows

Group records into tumbling or sliding windows and compute sums, averages, medians and percentiles for each group.

02

Send each record where it belongs

Route records to several sinks by operation, and window results by any attribute a script sets.

03

Recover what failed

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

Turn thousands of readings into one summary per site, per minute.

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.

Tumbling windows

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.

Sliding windows

Overlapping windows, such as the last five minutes, every minute. Each record counts in every window that covers the time it entered the pipeline.

Aggregate functions

sum, avg, min, max, median and percentile, each reading the value you pick from every record.

Group the way you need

By a field, a path such as /device/region, or a source attribute such as the operation type.

Stored before delivery

Each result is stored before any sink sees it. Delivery is at least once, so a result can arrive twice.

Watch the windows

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.

pipelines / site-averages
// 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.

bridge.example.com / pipelines / site-averagesIllustration
site_averagesWindow 09:14 to 09:15
sitecountavgmedianp95level
sensors-db · readings
timesitesensortemp
⟷
Raw readingsSink: site_averages

Readings grouped by site in one-minute windows. Drag the screen to compare. Sped up: a window lasts a few seconds here.

The site-averages pipeline page in 3TL Bridge: readings from the site-readings-gen generator flow through site-averages.rhai to two sinks on sensors-mongo, the site_averages collection with the site-average schema and the hot_sites collection for results with level high, with the pipeline's metrics, such as windows settled, sink deliveries and open windows, and its configuration below
The site-averages pipeline in 3TL Bridge, routing its window results to two sinks, with its metrics and configuration below.

Routing

Send records from one pipeline to several destinations.

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.

orders-cdc → kafka://orders-writes
route writes: insert, update
op_idregiontotalstatusorders-writes
orders-writes: Inserts and updates, after the enrich.rhai script ran on them.

Route window results too

In a windowed pipeline, a sink's route can match any attribute of a result, such as a level your script sets.

Filter at the source

Take only the operations you need, so the rest never enter the pipeline.

Records that match no sink

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.

The orders-routing pipeline page in 3TL Bridge: a change-stream source on the demo-mongo orders collection and three sinks, orders_changes with the route insert, update, orders_deletes with the route delete, and audit_log with no route, with metrics showing 6 events processed and no errors
A running pipeline with three sinks. Inserts and updates go to orders_changes, deletes to orders_deletes, and audit_log, which has no route, receives every record.
The same orders-routing pipeline in Studio, with its routes block: the route writes matches operation_type insert and update, and the route deletes matches operation_type delete, above a graph of the source and its three sinks
The pipeline's routes in Studio: each route matches operation types. The two filtered sinks name their routes, and audit_log has none.

Avro and JSON schemas

Attach Avro or JSON schemas to the stages you choose.

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.

Start from your data

The Studio drafts a schema from sampled documents, and shows each shape when a collection holds several.

Stored with your services

MongoDB and Pub/Sub services keep their own schema store. Save as makes a copy under a new name.

Errors without values

Schema-validation errors report types and field paths, never the values themselves.

The AI agent works with them

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.

schemas / site_average
{  "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

Studio in 3TL Bridge with the sensors-mongo service's schemas, including site-reading and site-average, in the explorer, and a preview of the site-average JSON Schema listing its required fields and the allowed site names: berlin, munich, paris and madrid
The site-average JSON Schema, stored with the sensors-mongo service, previewed in Studio.

Dead-letter queue and recovery

When a record fails, keep it and replay it after the fix.

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.

The AI agent in 3TL Bridge answering which records the sensor-archive pipeline dead-lettered and why: 18 records failed in the middleware stage, and the agent inspects archive-reading.rhai, which throws on sensor s-08, followed by a replay plan with 18 of 18 records eligible, none refused, no duplicate risk and the destination sensors-mongo/readings_archive, and the steps to fix the cause first. Nothing is replayed.
The AI agent explains why records were dead-lettered and plans their replay. The replay only runs after you approve it.

Investigate with the AI agent

Ask the AI agent which records failed and why, and have it plan the replay once the cause is fixed.

Stop a bad deployment early

With high availability on, an optional circuit breaker halts a pipeline when too many of its records fail.

Back off from a struggling sink

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

Keep MongoDB and PostgreSQL streams running when a worker stops.

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.

Several workers

Add engine workers to share pipeline processing. The Helm chart starts with one, and you can add more.

Resume from a checkpoint

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.

At-least-once delivery

After a failover, a sink can receive some records again. Use stable keys and upserts where a repeat matters.

Plan where workers run

Two workers on one host stop together if that host fails. Place workers and coordination storage for the failures you need to tolerate.

The Workers tab of the sensor-feed pipeline in 3TL Bridge, listing two engine workers, engine-1 and engine-2, each processing about 1.0 events per second with no errors
The Workers tab of a running pipeline, with two engine workers sharing its processing.

Encryption and key management

Encrypt credentials at rest, with a key from your own KMS.

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.

Bring your own 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.

Or supply a key yourself

Without a KMS, the engine uses a key you provide as a file or an environment variable.

Audit log

See the actor, time, resource and result of pipeline, service and script changes, and export the log to your SIEM.

Sign-in and tokens

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

  1. 1Credentials, AI agent conversations, dead-letter payloadsstored encrypted
  2. 2Data keysstored only in wrapped form
  3. 3Your keystays in your KMS
AWS KMSAzure Key VaultGoogle Cloud KMS
audit.log › {"timestamp":"2026-04-29T09:14:32Z", "action":"pipeline.restart", "resource":"site-averages", "actor":{"email":"[email protected]"}, "status_code":200}

AI agent

Ask the AI agent to build pipelines and keep them running.

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.

  • AnthropicClaude Opus · Sonnet · Haiku
  • AWS BedrockYour region and model ID
The AI agent in 3TL Bridge answering why the site-averages pipeline marks some sites as high: the window script sets level high when the average temperature is above 28 °C, the hot route sends those results to hot_sites, and site_averages receives every result, followed by a chart of the windows settled and open over the last 15 minutes
The AI agent explains how a pipeline routes its window results and charts its windows.

What the AI agent covers

  • Pipelines: create, start, stop, delete, reset a position
  • Drafts, scripts, schemas, tests: write, validate, run and save
  • Operations: metrics, logs, audit log, window charts
  • Dead-letter queue: see what failed and plan a replay

Preview a window before you deploy.

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

Write, test and preview pipeline scripts in the browser.

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.

Studio in 3TL Bridge with the site-averages.rhai window script open in the Transform stage, and the output of a run below it: one result for the munich site with six readings, avg_temp, median_temp, p95_temp and level high
The site-averages.rhai window script in Studio, run on a sample document of six readings, with the output below the editor.

Tests

Check a script's output before you deploy.

  1. 1Write a Rhai script, with errors marked as you type
  2. 2Run it on one sample document and read the output
  3. 3Add assertions as tests and run them
  4. 4Turn on strict mode to see output fields your tests do not cover

Run the tests before each deploy; deploying does not run them automatically.

Start from a template

Begin with a script template for a common transformation and adapt it to your records.

Preview a window

Studio runs and tests use one sample document, without windows or routes. Ask the AI agent to preview a sample window.

Change pipelines as drafts

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

Every pipeline, script and config in one place.

Start, stop and monitor every pipeline from one visual manager, with changes recorded in the audit log.

The Pipelines list in 3TL Bridge, with six running pipelines, sensor-feed, site-averages, site-trends, sensor-archive, maskProductionDataForDev and orders-routing, each showing its source, any script and its sinks, its status, its checkpoint setting and when it started
The Pipelines list, with each pipeline's source, any script, its sinks and its status.

Use cases

What teams build with it.

01 / 06

Write a summary per site every minute.

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

3TL Bridge pipeline

consumer

kafka://hot-sites

Windowed and routed

Masking

Mask, hash or remove fields on the way.

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.

Studio in 3TL Bridge with the mask-contacts.rhai script, which calls mask_email, mask_phone and mask_year_only, and the output of a run on a synthetic contact, Alex Example: email a***@example.com, phone *******0142 and birth_date 1988-01-01
A masking script run in Studio on a synthetic contact, with the email, phone number and birth date masked.

Deployment

Run Bridge on your own infrastructure.

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.

Kubernetes with Helm

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.

Ubuntu with IncusComing soon

Install Bridge on an Ubuntu host with Incus.

Docker Compose

Run the whole stack on one host. It has no browser sign-in, so use Kubernetes when you need it.

Runs onAWSKubernetesMicrosoft AzureGoogle CloudDockerUbuntu with IncusComing soon
Streams fromMongoDBPostgreSQLKafkaGoogle Pub/SubHTTPGenerator→MongoDBPostgreSQLKafkaGoogle Pub/SubHTTP

Built for every role

Built for every role in your data organization.

01 / 06

Software developer

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

Frequently asked questions

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.

Try it on a stream of your own.

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. Please choose for which purposes you wish to give us your consent and store your preferences by clicking on “Accept selected”. You can find further information in section 9 of our Privacy Policy.

Manage consent preferences