Apache Iceberg ingest patterns for 2027
The hard part of an Iceberg project is rarely creating the first table. It is keeping writes, readers and maintenance working together after the demo. Small files, retained snapshots and unclear catalog ownership belong in the design, not in the backlog after launch.
This guide compares three ingestion patterns for a 2027 plan. It uses current capabilities and their limits. It does not assume future releases or promise that Iceberg is the right destination for every workload.
Start with the table and the reader
Iceberg describes analytical tables using data files and metadata. Compute engines read and write those tables through supported integrations. Keeping files in object storage can separate storage from individual compute systems, but it does not remove compute, catalog, transfer or maintenance costs.
Ask who reads the table, how fresh it must be and whether the source sends inserts, updates or deletes. Then check the exact engine, connector, table format version and catalog combination. Shared files alone do not guarantee that every engine supports every feature.
Scheduled batch for a clear freshness window
Source extract or captured changes → landing storage → scheduled job → Iceberg.
Use this when readers can wait for a defined load window. Fewer, larger commits can be easier to operate than frequent streaming writes. Keep a durable source position or load identifier so a failed interval can be repeated safely.
A batch job still needs correct update and delete handling. Define the key, the conflict rule and how you prove the loaded interval is complete. A schedule is not a correctness guarantee.
Streaming writes when the delay matters
Database changes or events → Kafka → Flink → Iceberg → maintenance jobs.
Streaming can make new data available sooner, but checkpoints, commits and reader refreshes still matter. The Iceberg Flink write documentation explains supported append and upsert paths and their requirements. Check those requirements against your table keys and deployed versions before choosing a mode.
Short commit intervals can leave many small files. Budget for file rewriting and measure whether maintenance keeps up with ingest. Do not quote a producer's event latency as the time when a query can see the row.
A separate fast path when tables are not fast enough
Events → operational serving store, with a separate path into Iceberg for history and analysis.
This can suit an application that needs fast lookups or live aggregates while retaining longer history in analytical tables. The price is another system and a reconciliation problem. Decide which path is authoritative for each result and how a late event or correction reaches both.
Do not add a second store because a diagram looks modern. Use it when a measured serving requirement cannot be met by the simpler path.
Maintenance is part of ingestion
- File sizes. Track small files and query planning time, then schedule compaction around the workload.
- Snapshots. Keep the history readers, recovery jobs and audits require. Expire it deliberately, not with an arbitrary one-day rule.
- Orphan files. Use a safe age boundary and account for running writes before deleting anything.
- Metadata. Monitor its growth and the time readers spend planning.
- Ownership. Name who can change retention, run cleanup and recover a failed maintenance job.
The official maintenance guide covers snapshot expiration, orphan-file cleanup, file compaction and manifest rewriting. These are separate operations with separate risks.
Choose the writer around the reader deadline
- Can the reader waitA scheduled load may be enough. Define a complete interval and repeatable commit.
- Does freshness justify continuous writesEvaluate streaming commits, checkpoint health, file sizes and sustained maintenance.
- Does the application need fast point accessKeep a dedicated serving path if analytical tables cannot meet the measured requirement.
- Who keeps it healthyOwn compaction, snapshot retention, cleanup and catalog recovery for every choice.
A concrete CDC-to-Iceberg design
Consider an illustrative order table that receives inserts, corrections and cancellations. The analytics team needs the latest state by order key and a reliable route for recomputing a day. The problem is not simply appending JSON files to a bucket.
One design captures changes, retains a replayable transport, maps them to a defined table schema and uses an engine integration that can apply the required changes. Choose append-only history and current-state tables deliberately. They answer different questions and may need different write paths.
For a Flink writer, check the official write documentation for the upsert requirements, table format and equality fields. Registering a primary key in one component does not prove that every downstream write mode handles deletes correctly. Check the interaction between partition fields and equality fields for the actual table.
Trace one cancellation all the way through
Record the source key and operation, the processing decision, the successful commit and the row visible to a reader. If the table is intended to represent current state, a cancelled or deleted source row must follow the agreed target rule. If it is an audit table, retain the event without pretending it is a current-state replacement.
Then repeat the change after a writer restart. A sink's documented exactly-once semantics have a defined boundary. They do not automatically deduplicate an independently replayed source, a custom side effect or an incorrectly keyed transformation.
The freshness budget includes commits and readers
Draw a line from the business event to the query that must see it. Capture time, queueing, processing, checkpoint or commit work and reader refresh can all contribute. Measure them separately before shortening a checkpoint interval.
More frequent writes can trade freshness for smaller files and more metadata work. Fewer commits can produce a simpler operating profile while missing the business deadline. There is no useful universal interval without the event rate, file sizes, reader workload and recovery target.
Ask whether the metric is the newest committed row or a complete business interval. A table can contain some recent rows while still missing earlier changes. That difference matters for financial totals and any report that claims completeness.
Three maintenance jobs that should not be confused
Rewrite data files to improve the layout
Compaction can combine small files into a more useful layout. It costs compute and produces new files before obsolete data can eventually be removed. Budget for the overlap and check whether the job can keep up with the rate at which the writer creates work.
Judge it with planning time, files scanned and representative query behaviour. A lower file count alone is not proof that every query became faster. Avoid running competing layout jobs without an ownership and concurrency plan.
Expire snapshots according to real reader needs
Snapshot expiration removes old table history and can make files no longer referenced by retained snapshots eligible for deletion. Set retention around time travel, long-running readers, recovery and any branches or tags in use. A short example interval in documentation is not a production policy.
Before tightening retention, identify the oldest reader or recovery point that still matters. Treat that change as a destructive data-lifecycle decision, not a routine attempt to lower a storage chart.
Remove orphan files with a conservative boundary
An unreferenced file may be the remains of a failed operation, but it may also be part of work still in progress. The maintenance guide warns against using a retention interval shorter than the time a write can take. Run cleanup with appropriate safety margins and check the location and matching rules before deleting.
Compaction, snapshot expiration and orphan cleanup solve different problems. Putting them under a single “optimize” button makes incidents harder to explain.
Catalog and engine compatibility need their own test
Choose a catalog by the integrations, authorization model and operational requirements you actually need. “REST” is an interface, not a guarantee that all combinations of engines, authentication and table features behave identically.
Build a compatibility test around your operations. Create a table, append data, evolve a column, apply the required update or delete, query from each intended engine and recover from a failed write. Capture the versions in the test result. A successful read of one simple table is not a cross-engine certification.
Iceberg's evolution documentation explains schema and partition evolution. Those capabilities let a table change without rewriting the world each time, but the readers and writers you deploy still need to understand the resulting metadata and features.
| Decision | Record this | Test this failure |
|---|---|---|
| Current state or history | Key, operation semantics and ordering rule | Repeated update and delete after restart |
| Writer and catalog | Versions, identity and supported write modes | Writer loses access during a commit |
| Maintenance | Owners, schedules, retention and safe cleanup age | Maintenance falls behind sustained ingest |
| Reader freshness | Visibility deadline and complete-interval rule | Reader holds an older snapshot or cache |
| Recovery | Replay origin and reconciliation procedure | Source history expires before catch-up |
Where multi-engine processing belongs
Some organizations also have batch work spread across a database and Spark. That is a reason to evaluate a cross-platform processing plan, not evidence of a native Wayang-to-Iceberg sink. The Wayang reference page explains when that separate optimization can help. Verify a specific source, operator and destination path before putting it on the ingestion diagram.
Decide before the 2027 budget is committed
Compare one representative table under each plausible pattern. Include ingestion, query latency, compute, storage, maintenance and recovery. Test a failed write and a restart. The best pattern is the simplest one that meets the actual deadline and correctness rules.
For the broader design, read Iceberg Data Platform Architecture. For the JVM, schema and operational friction in a real stack, read Building Reliable Flink-to-Iceberg Pipelines for Unity Catalog and Snowflake.
If you need a second pair of eyes on the design, see my consulting services or contact me.