Database, warehouse, lake, middle platform, lakehouse: one e-commerce order chain explains all five and why lakehouse isn't 'lake plus warehouse'
The practical cost of confusing these five concepts is real: teams copy data between lake and warehouse, double-maintain stream and batch pipelines, and still can't reconcile GMV numbers. This guide gives a shared vocabulary plus actionable table-format choices so Western data engineers can avoid building another expensive reporting platform that nobody reuses.
The article walks through a single e-commerce order placement to define five overlapping data concepts: MySQL handles the OLTP transaction, Flink CDC streams Binlog into object storage as a data lake, Spark and Flink clean it into a data warehouse, Iceberg/Hudi/Paimon tables unify stream and batch on one copy of data as lakehouse, and a data middle platform turns GMV, active users and risk labels into shared APIs. The five are layered collaborators, not replacements.
Selection guidance is concrete: Iceberg for multi-engine shared PB-scale analysis with strong schema evolution, Hudi for Spark-heavy high-frequency Upsert and CDC, Paimon for Flink real-time primary-key tables with Changelog, and Delta Lake inside Databricks ecosystems. Real-world numbers are version-dependent; Paimon hits roughly 1-3 second end-to-end latency at ten-thousand-level TPS, while Iceberg stream writes take seconds to tens of seconds.
The last sections cover the pitfalls that actually bite: small-file avalanches, metadata bloat, concurrent write conflicts, CDC ordering, stream-batch metric mismatches, schema changes breaking downstream, data skew, backpressure, and governance that turns a lake into a swamp. Solutions include rewrite_data_files, snapshot expiration, compaction triggers, unified event time and primary keys, and layer-separated reconciliation with T+1 automatic checks.
Paimon's Partial Update turns a classic Flink join state problem into a storage-level merge, which is a genuinely different architectural trade-off: it trades write amplification and storage complexity for reduced state size and simpler stream topology.
The article's repeated warning that benchmark numbers (Paimon's 1-3s, Iceberg's seconds) depend heavily on version and configuration is the right kind of honesty; blindly quoting such figures in a technical review can sink a real selection.
The 'middle platform is a pseudo-concept' debate is sidestepped by defining it as a governance and reuse mechanism rather than a technology; the failure mode the article names - building a company-wide platform before any pilot demand - matches the common death of such initiatives in the West.
The engineering pitfalls table is the most reusable part: it maps each symptom (small files, stream-batch mismatch, schema breakage) to a concrete root cause and a concrete tool or process, which is more valuable than the conceptual taxonomy.
The emphasis on 'compatible vs breaking schema changes' is a point many Spark/Flink tutorials omit; expecting the table format to handle semantic changes like int to string is a common production mistake.