Managed Row Ingestion vs Self-Run Streaming Into Iceberg: A Decision Matrix After S3 Tables PutRows

Managed row-ingest APIs such as S3 Tables PutRows accept JSON or Avro rows.

15 Mins readAlex Merced
Managed Row Ingestion vs Self-Run Streaming Into Iceberg: A Decision Matrix After S3 Tables PutRows

Managed row-ingest APIs such as S3 Tables PutRows accept JSON or Avro rows. They validate each row against the table schema, write Parquet and compact it automatically, and rows become queryable in about a minute. Self-run pipelines on Kafka Connect or Flink take more to operate, but they control commit cadence, delivery semantics, transformations and catalog choice.

That paragraph is the short answer. The rest of this article is the long one, because “managed vs self-run” hides at least eight separate decisions. Teams that treat it as a single choice end up surprised later by duplicates, blocked schema changes, or a catalog they can’t leave.

The trigger for writing this now is concrete. On November 29, 2026, AWS launched PutRows for Amazon S3 Tables. It is a single API call that writes rows straight into an Apache Iceberg table. It is the clearest example so far of a pattern that every managed Iceberg service will copy: the platform takes your rows, and you never see a writer, a commit, or a small file. So it’s worth building the comparison once, carefully, and keeping it updated.

What PutRows Actually Does

Start with the documented behavior. Everything below comes from the AWS announcement and the PutRows user guide pages as they read on December 1, 2026.

A producer sends rows in a PutRows request. The payload is newline-delimited JSON or an Avro object container file (OCF). S3 Tables checks every row against the table’s Iceberg schema before it accepts the request. If one row fails validation, the whole request is rejected. A successful response means every row in that request will be committed.

The service then buffers rows from all concurrent callers on the same table. It writes them into Apache Parquet files and commits when either of two things happens first. The buffer approaches the table’s target file size, which defaults to 512 MB, or about one minute passes. AWS says rows are typically queryable within a minute, and in as little as 10 seconds for high-throughput tables. Low-volume tables produce smaller files, and S3 Tables maintenance compacts them in the background.

Concurrency is the headline feature. Any number of producers can call PutRows on the same table at the same time. They don’t coordinate with each other, and they never see an Iceberg commit conflict, because the service merges rows across requests before committing.

AWS also makes a cost claim. The announcement says PutRows “can lower costs by up to 80% compared to building and managing your own streaming ingestion.” Treat that as a vendor claim with an unstated baseline. I’ll come back to how to read it.

What the Documentation Says You Give Up

The setup and considerations page is where the real design shows. These limits shape the decision more than the headline features do.

  • Append only. PutRows only adds rows. Updates and deletes still need an Iceberg engine such as Amazon Athena or Apache Spark.
  • At-least-once delivery. Retried requests are not deduplicated. If a producer retries after a timeout, the same rows can land twice.
  • One channel per table. The ingestion path is scoped per table.
  • Format version 2 or 3 only. Iceberg v1 tables and tables using Iceberg table encryption are not supported.
  • Partition restrictions. Identity partitions on float or double columns are not supported. Partition values are limited to 1,024 characters.
  • Avro restrictions. Avro payloads must include their writer schema. Unions are only supported as null plus one other type. Confluent wire format and single-object encoding are not supported.
  • Metadata size. metadata.json files are capped at 45 MB. AWS tells you to turn on snapshot management and to rewrite manifests periodically with an engine like Spark, because S3 Tables maintenance does not rewrite manifests.
  • Schema changes wait. While a table has accepted but uncommitted rows, schema changes are blocked. So are commits from other writers through UpdateTableMetadataLocation, format upgrades, and other updates through the Iceberg REST endpoint. You wait for the buffer to drain, then retry.

Two of these deserve a pause. At-least-once without deduplication means correctness work moves downstream. If your events carry a natural key, you dedupe at read time or in a scheduled merge. If they don’t, you need to add one before you ship.

The second is the blocking rule. With a one-minute commit window, blocked schema changes rarely hurt. The interaction with other writers matters more. A table fed continuously by PutRows always has buffered rows. Any other writer that commits to the same table competes with a service that holds a buffer, so plan for the managed path to be the only writer during ingestion. Run other changes as scheduled maintenance.

The Three Shapes of Streaming Ingestion

Strip away product names and you find three ways to get a stream of records into an Iceberg table.

Shape 1: managed row API. The producer calls an HTTP API with rows. The platform owns buffering, file writing, commits, and compaction. PutRows is the current reference example. You don’t run any compute.

Shape 2: connector. A connector framework reads from a log such as Apache Kafka and writes Iceberg tables. The Apache Iceberg project ships a Kafka Connect sink. Its workers write data files and a coordinator commits them on an interval. You run Kafka and the Connect cluster, or you buy them as managed services.

Shape 3: stream processor. An engine such as Apache Flink or Spark Structured Streaming reads the stream, transforms it, and writes Iceberg. Flink’s Iceberg sink commits when a checkpoint completes. You own the job, the state, and the checkpointing.

The shapes differ mostly in where the transform and the commit happen. In Shape 1, the transform happens in your producer before the call. The commit happens inside the platform. In Shape 2, the transform is limited to what single-message transforms (SMTs) can do, and a coordinator handles the commit. In Shape 3, you can do arbitrary stateful work, such as joins, windows, and enrichment, and you control the commit yourself.

The distinction that matters is how much logic you need between the event and the table. If the answer is “none, the event is the row,” Shape 1 is attractive. If the answer is “join against a dimension and drop late events,” Shape 1 can’t do it, and pretending otherwise just pushes the logic into every producer.

The Decision Matrix

Here is the matrix. Each row is a criterion you have to answer anyway. Each column describes the default behavior of that shape, not the best case after heavy tuning.

CriterionManaged row API (PutRows)Connector (Iceberg Kafka Connect sink)Stream processor (Flink Iceberg sink)
FreshnessCommits about every minute or at ~512 MB, documented 10 s to ~1 minCommit interval setting, default 5 minutesCheckpoint interval you choose
Delivery semanticsAt-least-once, retries not deduplicatedExactly-once commits coordinated through a control topicExactly-once with checkpointing enabled
In-flight transformsOnly in the producerSingle-message transformsArbitrary, including joins and windows
Schema evolutionIceberg rules, blocked while rows are bufferedOptional automatic column evolutionYou manage it in the job
Concurrency at the tableMany producers, no conflictsOne coordinator per connectorOne committer per job
Catalog choiceS3 Tables table bucketsAny catalog the Iceberg sink supports, including RESTAny catalog Flink’s Iceberg integration supports
File sizing and compactionManaged, plus manual manifest rewritesYou schedule compactionYou schedule compaction
Updates and deletesNot supported on this pathSupported in upsert modes with careSupported, including upserts with equality deletes
Operational burdenAPI client and IAMKafka plus Connect clusterFlink cluster, state, checkpoints

Read the table by row, not by column. Most teams have one or two rows that decide everything. The other rows are tie-breakers.

Freshness: What a Minute Means in Practice

PutRows commits about once a minute for normal tables. The Iceberg Kafka Connect sink defaults to a five-minute commit interval through iceberg.control.commit.interval-ms, which you can lower. Flink commits at each successful checkpoint, so its freshness equals your checkpoint interval plus commit time.

So on paper, the managed path starts out fresher than the connector default. The connector and Flink can both match it with configuration. The real question is what each commit costs.

Every commit creates a snapshot, a manifest list, and usually a new manifest. Commit once a minute for a year and you get more than half a million snapshots. That is why AWS warns about the 45 MB metadata.json limit and tells you to expire snapshots and rewrite manifests. The same physics applies to the self-run shapes. Fast commits buy freshness and pay for it in metadata.

A practical rule: pick the slowest commit cadence your consumers accept. If dashboards refresh every 15 minutes, one-minute commits only add metadata churn. If an agent or an alerting rule reads the table, a minute matters.

Delivery Semantics: Where Duplicates Come From

This row decides more architectures than any other.

The Kafka Connect sink and Flink both coordinate commits with the read position of the source. In Flink, the checkpoint stores the Kafka offsets and the pending data files together. A restart replays from the checkpoint and the committer skips files it already committed. The Kafka Connect sink uses a control topic so the coordinator commits data files and source offsets as one unit. Both give you exactly-once results in the table, as long as configuration and source behavior cooperate.

PutRows documents at-least-once delivery with no deduplication of retries. That’s a reasonable choice for an HTTP API. A client times out, it doesn’t know whether the request landed, and it retries. Without an idempotency key the service can’t tell the second request from new data.

If you choose the managed path, design for duplicates from the start:

  1. Give every event a stable unique identifier at the producer.
  2. Keep the raw PutRows table as an append-only landing table.
  3. Build a deduplicated table downstream on a schedule.

The downstream step is plain SQL that any Iceberg engine runs:

-- Deduplicate a PutRows landing table into a clean table.
-- events_raw receives PutRows traffic. events is the clean table.
MERGE INTO analytics.events AS t
USING (
  SELECT *
  FROM (
    SELECT r.*,
           ROW_NUMBER() OVER (
             PARTITION BY event_id
             ORDER BY ingested_at DESC
           ) AS rn
    FROM landing.events_raw r
    WHERE ingested_at >= current_timestamp - INTERVAL '2' HOUR
  ) ranked
  WHERE rn = 1
) AS s
ON t.event_id = s.event_id
WHEN NOT MATCHED THEN INSERT *;

Each part has a job. The inner query looks back two hours, which bounds the scan and still catches late retries. ROW_NUMBER() partitioned by event_id keeps one copy of each event. The MERGE only inserts events the clean table hasn’t seen. Adjust the lookback to your retry window. The exact syntax for INTERVAL and INSERT * varies slightly by engine, so check yours.

This pattern costs a second table and a scheduled job. Count that cost when you compare against the “up to 80%” claim.

Transformations: The Logic Has to Live Somewhere

A managed row API accepts rows that already match the table schema. Any cleanup, enrichment, or reshaping must happen in the producer. With three producers that’s fine. With 300 microservices owned by 40 teams, it means 40 implementations of the same rules.

The connector shape moves light transforms to the pipeline. Kafka Connect SMTs rename fields, drop fields, route records to tables, and cast types. They don’t join streams or hold state.

The stream processor shape handles anything. Flink can join a click stream with a slowly changing customer table, drop events older than a watermark, and write the result. That power is why teams accept the operational cost.

There is also a middle path that people forget. Land raw rows with the managed API, then transform with a scheduled batch job that reads the landing table. That gives you minute-level raw freshness and lower clean-table freshness, which matches many analytics workloads. It doesn’t fit workloads that need transformed data within seconds.

Schema Evolution Under a Running Stream

Iceberg’s schema evolution is one of its best features. Adding an optional column is a metadata-only change. Renaming a column doesn’t break readers, because Iceberg tracks columns by field ID, not by name.

The streaming question is narrower. What happens to in-flight data when the schema changes?

With PutRows, schema changes follow Iceberg rules and are blocked while rows are buffered. Producers that start sending a new field before the column exists get rejected at validation, so the order of operations matters. First add the column as optional, then wait for the change to land, then deploy producers that send the field. Because one invalid row rejects the whole request, a producer that ships early fails loudly. That’s the behavior you want.

The Kafka Connect sink has optional automatic evolution through iceberg.tables.evolve-schema-enabled. When on, the sink adds new columns it sees in records. That’s convenient and a little dangerous, because a typo in one producer becomes a permanent column. Many teams keep it off for clean tables and on for raw landing tables.

In Flink, schema changes usually mean a job change and a restart from a savepoint. That’s the most deliberate of the three, and it’s the slowest to change.

Concurrency and the Single-Writer Question

Iceberg uses optimistic concurrency. A writer prepares a commit against the snapshot it read, and the catalog accepts the commit only if the table hasn’t changed in a conflicting way. Two writers appending to the same table usually don’t conflict on data. They do contend on the metadata pointer, and retries pile up at high commit rates.

The managed API sidesteps this by being the only committer. Producers never commit. The service combines their rows and commits once. That’s why “any number of producers” works.

The self-run shapes reach the same result differently. A Kafka Connect sink runs one coordinator per connector, so many workers produce data files but one process commits. A Flink job has one committer operator. Both avoid commit storms as long as you don’t run several jobs against the same table.

The risk in every shape is the second writer. A compaction job, a backfill, or a GDPR delete job all commit to the same table. With self-run pipelines, you schedule those writes and Iceberg’s retry logic resolves conflicts. With PutRows, the documentation says commits from other writers are blocked while rows are buffered. A continuously fed table almost always has buffered rows, so plan maintenance windows or route corrections to a different table and merge them later.

Catalogs and Lock-In

This is the row that gets the least attention during evaluation and the most attention two years later.

PutRows writes to tables in S3 Tables table buckets. Those tables are standard Iceberg tables, and AWS lists Athena, Redshift, Spark, and DuckDB as engines that read them. S3 Tables exposes an Iceberg REST endpoint, so engines that speak the REST catalog protocol can reach the tables. That’s a real point in its favor. Your data stays in an open format, readable by many engines.

The ingestion path itself is proprietary. PutRows is an AWS API, not an Iceberg or Kafka protocol. If you later move tables to another catalog, such as Apache Polaris or another REST catalog, your producers need a new ingestion path. Producers are the most expensive part to change, because other teams own them.

The self-run shapes are portable on both sides. The Iceberg Kafka Connect sink and Flink both write through Iceberg’s catalog interfaces, including the REST catalog. Point the configuration at a different catalog and the pipeline follows.

One way to limit lock-in with the managed path is a thin internal ingestion client. Producers call your library, and your library calls PutRows. If you change the backend later, you change one library instead of every service.

Compaction and Maintenance Ownership

Streaming writes create small files. Small files slow query planning and increase object storage requests. Every streaming design needs a compaction answer.

PutRows covers most of it. High-throughput tables write files near the target size. Low-volume tables get background compaction from S3 Tables maintenance. Snapshot expiration is available as managed snapshot management. The gap the documentation names is manifest rewriting. S3 Tables maintenance doesn’t rewrite manifests, so you schedule rewrite_manifests with Spark or another engine to keep metadata.json under its 45 MB limit.

With self-run shapes you own all of it: compaction, snapshot expiration, orphan file cleanup, and manifest rewriting. Spark’s rewrite_data_files, expire_snapshots, remove_orphan_files, and rewrite_manifests procedures are the standard tools. Several managed catalogs and engines also automate parts of this for tables they manage.

Here’s what a self-run connector configuration looks like with the commit cadence and evolution settings explicit:

{
  "name": "events-iceberg-sink",
  "config": {
    "connector.class": "org.apache.iceberg.connect.IcebergSinkConnector",
    "tasks.max": "4",
    "topics": "events",
    "iceberg.tables": "landing.events_raw",
    "iceberg.tables.auto-create-enabled": "false",
    "iceberg.tables.evolve-schema-enabled": "false",
    "iceberg.control.commit.interval-ms": "60000",
    "iceberg.catalog.type": "rest",
    "iceberg.catalog.uri": "https://catalog.example.com/api/catalog",
    "iceberg.catalog.warehouse": "analytics"
  }
}

tasks.max sets how many workers write data files in parallel. iceberg.tables names the target. Auto-create and schema evolution are off, so the table schema stays under deliberate control. iceberg.control.commit.interval-ms drops the commit interval from the five-minute default to one minute, to match the managed path’s freshness. The iceberg.catalog.* keys point the sink at a REST catalog, which is what makes this pipeline portable. Swap the URI and the warehouse and the same connector writes to a different catalog.

The Flink version expresses the same choices through checkpointing:

SET 'execution.checkpointing.interval' = '60s';

CREATE CATALOG lake WITH (
  'type' = 'iceberg',
  'catalog-type' = 'rest',
  'uri' = 'https://catalog.example.com/api/catalog',
  'warehouse' = 'analytics'
);

INSERT INTO lake.landing.events_raw
SELECT event_id, user_id, event_type, event_ts, CURRENT_TIMESTAMP AS ingested_at
FROM kafka_events
WHERE event_ts > CURRENT_TIMESTAMP - INTERVAL '1' DAY;

The checkpoint interval sets both the commit cadence and the recovery point. The catalog definition uses the REST catalog type. The INSERT shows the advantage of Shape 3: the job filters stale events and stamps an ingestion time before the commit, without any producer changes. kafka_events is assumed to be a Kafka source table defined earlier in the session.

Reading the “Up to 80%” Claim

AWS says PutRows “can lower costs by up to 80% compared to building and managing your own streaming ingestion” for near real-time workloads. “Up to” means that’s the best case they found, and the baseline is a self-built pipeline.

Before you plug that number into a business case, write down your own baseline in five lines:

  1. Compute. What do your Connect workers or Flink task managers cost per month at your throughput?
  2. Streaming infrastructure. Do you run Kafka only for lake ingestion, or does it also serve other consumers? If other systems read the same topics, removing lake ingestion doesn’t remove Kafka.
  3. People. How many engineer hours per month go to pipeline operations, upgrades, and incidents?
  4. Managed API charges. What does the managed path cost at your request rate and volume? Check the current S3 pricing page.
  5. New work. What do the deduplication job, the manifest rewrite schedule, and the producer changes cost?

Line 2 decides most cases. If Kafka is already the company’s event backbone, the self-run lake connector is a small marginal cost on top of it. If Kafka exists only to feed the lake, the managed path removes a whole system, and big savings are believable.

Failure Modes to Plan For

Every shape fails in its own characteristic way. Knowing them ahead of time is most of the battle.

Managed row API.

  • Duplicate rows after client retries. Warning sign: counts in the landing table exceed source counts during network incidents. Fix: stable event IDs and a downstream dedup step.
  • Whole-request rejection from one bad row. Warning sign: bursts of rejected requests after a producer deploy. Fix: validate in the producer and use small batches, so one bad row costs less.
  • Metadata growth. Warning sign: metadata.json size trending toward 45 MB. Fix: snapshot management on, plus scheduled manifest rewrites.
  • Blocked maintenance. Warning sign: schema changes or external commits failing while ingestion runs. Fix: maintenance windows, or corrections routed to a side table.

Connector.

  • Coordinator stalls. Warning sign: data files written but no new snapshots. Fix: monitor snapshot age per table, not just connector task status.
  • Schema drift from auto-evolution. Warning sign: unexpected columns in the table. Fix: keep evolution off for clean tables.
  • Small files at low volume. Warning sign: file count grows faster than data size. Fix: scheduled compaction.

Stream processor.

  • Checkpoint failures. Warning sign: rising checkpoint duration, then failed checkpoints and no commits. Fix: tune state size and checkpoint timeouts, and alert on commit gaps.
  • Restart from the wrong savepoint. Warning sign: duplicates or gaps after a deploy. Fix: a standard deployment runbook.
  • Commit storms from multiple jobs. Warning sign: retry exceptions in commit logs. Fix: one writing job per table, with a fan-in topic upstream.

Notice the pattern. The managed path’s failures concentrate in correctness at the edges, meaning duplicates and rejections. The self-run paths’ failures concentrate in operations, meaning stalls and restarts. Which kind of failure your team handles better is a fair input to the decision.

Which Shape Fits Which Workload

Here’s how the matrix resolves for common situations.

Device and application telemetry on AWS, events already shaped as rows. The managed row API fits well. Many producers, no transforms, and freshness around a minute matches telemetry use. Add event IDs and a dedup step.

An organization with Kafka as its event backbone. The connector shape usually wins. The topics already exist, and other consumers already read them. The lake connector is one more consumer, and it keeps the catalog portable.

Pipelines that join, enrich, or filter by event time. The stream processor shape is the honest choice. Moving that logic into producers to use a managed API spreads complexity around instead of removing it.

Multi-cloud or multi-catalog requirements. Self-run shapes, or a managed path wrapped behind your own client library. Proprietary ingestion APIs and catalog portability pull in opposite directions.

CDC from operational databases. None of the append-only paths fit directly. Change data capture needs updates and deletes, which PutRows doesn’t support. Use a stream processor or a CDC-specific tool that writes Iceberg row-level changes.

Where This Is Heading

PutRows won’t be the last managed row API for Iceberg. The pattern solves a real problem. Getting small, frequent writes into a table format built for large files is hard, and platforms that hide it will win workloads. Expect other managed Iceberg services and catalogs to offer something similar.

The open question is whether any of it becomes a standard. Today the Iceberg REST catalog specification covers table metadata, commits, and scan planning. It doesn’t define a row-ingest endpoint. If row ingestion stays proprietary, every platform will have its own API and producers will stay tied to one vendor. If the community defines a portable ingest contract, managed ingestion becomes as portable as managed catalogs already are. That’s worth watching, and worth asking your vendors about.

Until then, the matrix will change as services add idempotency keys, upserts, or more formats. I’ll revise this page when the documented behavior changes, and the date at the top tells you which version you’re reading.

Conclusion

Managed row ingestion is a good addition to the Iceberg toolkit. It takes away the worst part of streaming into a table format, which is owning commits and small files, and it leaves the data in an open format that many engines read. What it costs is control. Delivery is at-least-once, transforms move into producers, other writers wait on the buffer, and the ingestion API ties you to one platform.

Self-run connectors and stream processors cost more to operate and give you exactly-once commits, real transformations, and a pipeline that follows your catalog wherever it goes.

Decide row by row. Delivery semantics, transformation needs, and catalog portability usually settle it. Freshness and cost are tie-breakers once you’ve built your own baseline.

For the mechanics behind these choices, see how Kafka Connect commits to Iceberg, the overview of streaming ingestion and micro-batching, what Amazon S3 Tables provides as a managed Iceberg service, and how to automate table maintenance before small files pile up.

Sources: AWS announcement, Nov 29, 2026 · PutRows user guide · PutRows setup and considerations

Keep Going

If this piece was useful, I have written a lot more on building and running Iceberg lakehouses. Architecting an Apache Iceberg Lakehouse (Manning) walks through ingestion, catalogs, and table maintenance as one connected design. You can find every book I have written, across lakehouse architecture, Apache Iceberg, Apache Polaris, and AI, at books.alexmerced.com.

Share :

Related Posts

ADBC 1.2 Planning: Metadata API, Credential Callbacks, Vendor Actions and What Driver Authors Should Expect

ADBC 1.2 Planning: Metadata API, Credential Callbacks, Vendor Actions and What Driver Authors Should Expect

ADBC 1.2 is the next revision of the Arrow Database Connectivity API, not a driver release. A Nov 24, 2026 planning session agreed on a credential callback limited to calling SetOption, on JSON struct...

Events and Skills Over MCP: What the Beta Extensions Change for Data Platform MCP Servers

Events and Skills Over MCP: What the Beta Extensions Change for Data Platform MCP Servers

Two MCP extensions reached beta in November 2026. Events lets an agent react when something happens, such as a commit to a table, without polling. Skills over MCP lets a server ship guidance on how to...

Compaction Against Concurrent Deletion Vectors in Iceberg: Re-Plan-and-Retry vs a Persisted Compaction Map

Compaction Against Concurrent Deletion Vectors in Iceberg: Re-Plan-and-Retry vs a Persisted Compaction Map

When deletion vectors land while Spark's RewriteDataFiles runs, compaction commits can fail, because every file group was planned from one starting snapshot. On Nov 24, 2026, Iceberg contributors lean...

Work with Alex