Skip to contentManaged Kafka is live: Apache Kafka on AWS for half the cost of MSK

Data replication

Pipelines

Learn what a pipeline is made of, and how to pause it, compress oversized messages, add new tables automatically, and turn off its alert emails.

A pipeline connects a source database to a destination and continuously streams changes. After you deploy a pipeline, it runs initial backfills, applies schema evolution, and keeps replicating without manual steps.

Pipeline BPipeline AShared Source ReaderSource ReaderSource DBDestination Connector ADestination Connector B

Each pipeline has two parts. The source reader connects to your source database and captures changes through change data capture (CDC). The destination connector writes those changes to one destination, for example Snowflake, BigQuery, or S3.

Several pipelines can share one source reader, so Artie reads your database once. Monitor a pipeline’s health, throughput, and latency in the analytics portal.

Writing to multiple destinations

Artie reads from one source and writes to several destinations in parallel. For example, stream the same changes to S3 and Snowflake. Each destination is its own pipeline, and the pipelines share one source reader, so Artie reads your source database once.

This setup is available only through Terraform. Create an artie_source_reader resource with is_shared = true, then reference it from each artie_pipeline resource through source_reader_uuid.

Follow Write to multiple destinations for a Terraform example that converts an existing pipeline into this configuration.

Pausing and resuming

Pause a whole pipeline, or pause and stop individual tables. A pipeline has two pause modes.

Pause delivery only stops writing to the destination. Artie keeps capturing changes from the source for up to 14 days, and the pipeline shows Delivery paused. Resume within 14 days and Artie applies the held changes in order, with no backfill.

Pause pipeline stops reading from the source and writing to the destination. The pipeline shows Paused. Artie can miss changes while paused, so you may need to backfill when you resume.

Pausing doesn’t stop a backfill that’s running. To stop one, use Cancel backfill on the pipeline page.

Pause a pipeline

  1. Open the pause dialog

    Open the pipeline and select Pause pipeline….

  2. Choose a pause mode

    Select Pause delivery only or Pause pipeline.

  3. Confirm

    Select Pause delivery or Pause pipeline. The button follows the mode you chose. The pipeline’s status changes to Delivery paused or Paused.

The dialog offers both pause modes:

Pause replication dialog showing the two pause modes

To pause several pipelines at once, select them in the pipeline list and select Pause. The button shows how many pipelines it pauses, and the dialog offers the same two modes.

To stop reading on a pipeline that shows Delivery paused, open More pipeline options and select Pause reading…. To start a paused pipeline again, select Resume pipeline.

PostgreSQL replication slots during a pause

With Pause pipeline on a PostgreSQL source, the replication slot stays in place. Write-ahead log (WAL) keeps growing on your database until you resume.

For a long pause, drop the slot. The pause dialog shows the SQL for it. Artie creates a new slot when you resume, but it misses changes made while paused, so you need to backfill every table. See database migrations.

Shared source readers during a pause

On a shared source reader, Pause pipeline stops reading from the source only after every pipeline on that reader is paused.

Until then, the source reader keeps running for the other pipelines. The paused pipeline behaves as if only delivery were paused. Its changes accumulate in Kafka, and Artie applies them if you resume within 14 days.

Pause or stop individual tables

  1. Open the table list

    Open the pipeline, select Edit pipeline, then go to the Tables tab.

  2. Set the table's status

    In the table’s Status column, select Stream, Pause delivery, or Stop.

  3. Apply the change

    Select Save changes, then Deploy. The change takes effect after the deploy.

Each status option changes what Artie reads and writes for that table:

OptionWhat Artie doesTable shows
StreamReads the table and writes it to the destination.Streaming
Pause deliveryKeeps reading the table and holds its changes for up to 14 days before writing them.Delivery paused
StopStops reading the table and stops writing it to the destination.Stopped

To change several tables at once, select them and use Edit selected tables. For sources that have collections, the tab is Collections and the button is Edit selected collections.

NameSchemaStatusHistory mode
customerspublic
orderspublic
paymentspublic
audit_logpublic

Message compression

Message compression lowers the number of rows Artie skips because of Kafka’s message size limit. Artie gzips a large Kafka message value before it checks the size.

Without compression, Artie measures the uncompressed size of each message and skips any message over the limit. The default limit is 2 MB per message, and Artie can raise it up to 15 MB for your account. One large JSON column can push a row over the limit.

With Message compression set to GZIP, Artie gzips each message value of 500 KiB or more and keeps the smaller form. Then it measures the size. Artie skips the row only if the compressed message is still over the limit. Compressed messages carry the header artie-compression: gzip, which matters to consumers of a Kafka destination.

To get notified when Artie skips a row, subscribe a webhook to the row.skipped event.

Limitations

Three limits apply:

  • Use message compression or column compression on a pipeline, not both.
  • DynamoDB and API sources have no Message compression setting.
  • On a shared source reader, the setting is read-only on the pipeline’s edit page. Set message_compression = "gzip" on the artie_source_reader resource in Terraform.

Turn on message compression

  1. Open the source settings

    Open the pipeline, select Edit pipeline, then go to the Source tab.

  2. Set the compression

    Expand Advanced settings and set Message compression to GZIP. The default is None (default).

  3. Apply the change

    Select Save changes, then Deploy.

Automatically add new tables

Artie can add eligible new source tables to a running pipeline. On the pipeline’s edit page, open the Destination tab and expand Advanced settings. Turn on Auto-replicate new tables for regular replication, Auto-enable history mode for new tables for history mode, or both.

By default, Artie checks for new tables every weekday at 6 AM Pacific Time. Workspace admins change the days, start time, and timezone under Table change handling in Settings > General. To check right away, select Check schema on the pipeline page, then Check for changes.

Use Filter new tables to skip, or only add, tables whose schema.table names match a regex. Tables that already exist when Artie first checks a source are never auto-added. Pipelines with a DynamoDB source don’t have these settings.

For the setting names, history-only behavior, validation, automatic deployment, and history-table baseline behavior, see automatically capture newly created tables.

Automatically stop dropped tables

Artie can stop streaming a table that no longer exists in the source, and it keeps the destination table and its data. On the pipeline’s Source tab, open Advanced settings and turn on Auto-stop dropped tables. Artie looks for dropped tables whenever it checks for new tables, and when you start or resume the pipeline.

For supported sources and how this works with Terraform, see automatically stop tables dropped from the source.

Disable alert emails

By default, Artie emails you when a pipeline has a connection failure, a replication error, or sustained ingestion lag. Turn the emails off for one pipeline, for example a non-critical staging pipeline, without changing any other monitoring.

To turn off the emails on an existing pipeline:

  1. Open the destination settings

    Open the pipeline, select Edit pipeline, then go to the Destination tab.

  2. Turn off the emails

    Expand Advanced settings and select Disable alert emails.

  3. Apply the change

    Select Save changes, then Deploy.

The setting only stops this pipeline’s outbound alert emails. Artie still evaluates alert conditions and updates the health and status cards in the dashboard. Custom monitors aren’t affected, including monitors that notify PagerDuty.

Was this page helpful?