liveBook · Manning

Chapter 8: Designing the federation layer

What you will learn in chapter 8 of Architecting an Apache Iceberg Lakehouse

The chapter introduces why an Iceberg lakehouse needs a federation layer and what that layer provides for data spread across systems.

After this chapter you will be able to

What it builds on

Section by section

Introduction

The chapter introduces why an Iceberg lakehouse needs a federation layer and what that layer provides for data spread across systems.

Key terms: Apache Iceberg lakehouse, federation layer, semantic layer, business logic, unified, governed interface

8.1 What data federation is and why it matters

This section explains why an Iceberg lakehouse may need federation and how a hub-and-spoke approach lets queries use external data without moving it into the lakehouse.

Key terms: data federation, hub-and-spoke approach, just-in-time data, remote sources, SaaS platforms, legacy databases, semantic layer, business logic

8.1.1 Common use cases and challenges driving federation needs

This section explains why organizations federate data instead of moving everything into Iceberg, and the challenges that decision creates.

Key terms: data federation, Iceberg, ETL, replication, query performance, governance, data freshness, source systems

8.1.2 How federation aligns with agility and accessibility

This section explains how federation speeds access to new data, broadens self-service analytics, and uses a semantic layer to keep interpretations consistent.

Key terms: federation, direct access, traditional ETL workflows, self-service, federated views, feedback loops, semantic layer, metrics, dimensions, business logic

8.2 Key requirements for federation

The section connects platform-audit findings to three requirements for a federation layer tailored to an organization’s needs.

Key terms: platform audit, federation layer, external data sources, semantic layer, shared definitions, governance, tool-friendly interfaces

8.2.1 Supporting diverse data sources without duplication

This section explains why a federation layer should query diverse data sources in place and what capabilities it needs to do so securely and efficiently.

Key terms: federation layer, centralized ingestion, source of truth, data freshness, storage duplication, native connectors, adapters, credential delegation, role-based access control (RBAC), pushdown

8.2.2 Ensuring consistent semantics and business logic

This section explains how a semantic layer gives federated data consistent, governed business definitions across sources and tools.

Key terms: semantic layer, business logic, metrics, dimensions, calculations, reusable views, virtual datasets, versioning, governance, access controls

8.2.3 Providing seamless connectivity for analytics tools

This section explains how a federation layer connects analytics tools and AI agents through interfaces suited to their needs.

Key terms: federation layer, JDBC, ODBC, REST APIs, Apache Arrow, Arrow Flight, Arrow Flight SQL, ADBC, serialization overhead, Model Context Protocol (MCP)

8.3 Introducing Dremio and Trino

Introduces Dremio and Trino as federated SQL platforms and contrasts the priorities that make each a different fit for a lakehouse federation layer.

Key terms: Dremio, Trino, federated SQL, Apache Iceberg, semantic layer, connector ecosystem

8.3.1 Dremio

Introduces Dremio as a federated query layer that queries existing data in place, accelerates cross-source analytics, and exposes familiar interfaces to users and applications.

Key terms: federated query engine, query layer, query data in place, SQL, columnar execution engine, Apache Arrow, reflections, caching, predictive optimization, redundant scans

8.3.2 Dremio’s architecture

This section explains how Dremio’s distributed services, workload-specific engines, caching, and Iceberg catalog support responsive analytics across federated data sources.

Key terms: distributed, SQL-based query engine, Apache Arrow, reflections, Cloud Columnar Cache, master coordinator, scale-out coordinators, engines, executors, high concurrency, workload isolation

8.3.3 Dremio’s connector ecosystem and Iceberg-centric focus

This section explains how Dremio federates queries across varied sources while concentrating its deepest integration and optimization on Apache Iceberg.

Key terms: connector ecosystem, federate queries, Iceberg-first approach, built-in Iceberg catalog, Apache Polaris, Iceberg REST Catalog API, compaction, vacuuming, metadata pruning, external query pushdown

8.3.4 Dremio’s performance enhancements

This section explains how Dremio improves federated query performance through columnar execution, reflections, caching, runtime filtering, and isolated execution engines.

Key terms: Apache Arrow, columnar in-memory format, vectorized execution, zero-copy data exchange, Arrow Flight, Data Reflections, raw reflections, aggregation reflections, cost-based planner, Cloud Columnar Cache

8.3.5 Trino

Introduces Trino as a distributed SQL engine for federated analytics, explains its basic execution model and platform boundaries, and clarifies its Presto lineage.

Key terms: Trino, OLAP, OLTP, plugin-based connector model, unified SQL interface, coordinator, workers, stages, tasks, splits

8.3.6 Trino’s modular architecture for wide-source support

Explains how Trino’s extensible connectors and distributed query engine provide SQL access across diverse data sources.

Key terms: connector, service provider interface (SPI), catalog, standard SQL, distributed query engine, federated queries, federated analytics, minimal duplication

8.3.7 Trino’s flexibility and configurability for complex environments

This section explains how Trino’s distributed execution, routing, and tuning options support complex federated environments, alongside the operational expertise they require.

Key terms: hierarchical execution model, queries, stages, tasks, splits, coordinator–worker architecture, filter pushdown, cost-based optimizer, dynamic filtering, broadcast joins

8.3.8 Trino’s community-led evolution and vendor extensions

This section explains how Trino’s open source community and commercial vendors jointly shape its capabilities and adoption options.

Key terms: open source community, open governance model, connectors, open source core, commercial distributions, managed services, enterprise-focused features

8.3.9 Semantic layer considerations in Trino

Explains how to add semantic capabilities to Trino and what to consider when choosing an approach.

Key terms: Trino, Dremio, semantic layer, standardized metrics, curated datasets, dedicated semantic layer tool, enterprise-grade managed services, semantic models, governed data access, metric standardization

8.4 Deployment models

This section frames deployment choice for Dremio and Trino as a balance between infrastructure control and managed-service convenience.

Key terms: deployment model, self-managed clusters, fully managed services, cloud-native SaaS

8.4.1 Deploying Dremio

This section compares Dremio’s self-managed editions with Dremio Cloud so readers can match deployment responsibilities and capabilities to their needs.

Key terms: Dremio Community Edition, Dremio Enterprise Edition, Kubernetes, RBAC, FGAC, reflections, Dremio Cloud, SaaS, control plane, data sources

8.4.2 Deploying Trino

This section compares self-managed and managed Trino deployments and explains how their tradeoffs fit different organizational needs.

Key terms: self-managed deployment, cloud-managed services, operational overhead, customizability, open source, modular architecture, pluggable connector ecosystem, plugins and extensions, Amazon Athena, Cloudera

8.5 Federation platform decision scenarios

The section frames federation platform selection as a context-dependent decision rather than a fixed choice between tools.

Key terms: data federation platform, tradeoffs, capabilities

8.5.1 Fragmented multisource environment: Trino for connector breadth

This scenario explains why Trino is a practical federation choice when an organization needs analytics across fragmented data sources without first centralizing them.

Key terms: Trino, connector ecosystem, federate queries, read-time access, minimal data movement

8.5.2 Building a native Iceberg lakehouse: Dremio for Iceberg-native features

This section explains why Dremio can be a strong federation choice for a lakehouse centered on Apache Iceberg.

Key terms: Dremio, Apache Iceberg, automatic table optimization, autonomous reflection management, Apache Polaris, partition pruning

8.5.3 Empowering business users with UI and governed datasets: Dremio

This section explains why Dremio fits organizations that want business users to explore data independently without sacrificing consistent definitions or governance.

Key terms: semantic layer, metric definitions, business logic, federation engine, user-friendly UI, virtual datasets, fine-grained access control, self-service

8.5.4 Lightweight querying of Hudi datasets: Trino via AWS Athena

This subsection explains why Athena, powered by Trino, fits occasional queries over existing Hudi data in S3 better than a dedicated engine or Dremio.

Key terms: AWS Athena, Trino, Apache Hudi, Amazon S3, serverless, pay-per-query

8.5.5 On-prem Cloudera modernization: Trino replacing Impala for performance

This scenario explains why managed Trino is a practical query-engine upgrade for an on-premises Cloudera deployment whose Impala workloads have outgrown its capabilities.

Key terms: Impala, managed Trino, Cloudera, federated queries, Customized Professional Services (CPS)

8.5.6 Hybrid cloud Iceberg strategy: Dremio bridging on-prem and ADLS

This section uses an on-premises Hadoop-to-ADLS migration to show why Dremio can support a gradual, federated Iceberg lakehouse transition.

Key terms: hybrid architecture, Apache Iceberg, ADLS, lift-and-shift migration, hybrid query federation, first-class Apache Iceberg support, integrated catalog, self-managed, cloud-managed, autonomous reflection management

8.6 Federation alternatives

The section introduces architectural alternatives to traditional federation engines for cross-system analytics.

Key terms: federation engines, cross-system analytics, data duplication

8.6.1 Virtualization via shortcuts in OneLake

Explains how OneLake shortcuts virtualize external storage and why their local-compute approach trades cross-system query flexibility for simplicity and predictable performance.

Key terms: OneLake, shortcuts, push down, filters, column projections, distributed joins, aggregations, cross-system querying, operational simplicity, predictable performance

8.6.2 AI-native data virtualization with Spice.ai

This section presents Spice.ai as a federation alternative designed to serve AI-enabled applications through fast virtualized data views.

Key terms: Spice.ai Cloud Platform, federated SQL queries, model inference, vector search, retrieval-augmented generation (RAG), virtualized data views, materialized views, cached, replicated, responsiveness

8.6.3 Choosing the right fit

Explains how to choose or combine specialized federation alternatives according to a lakehouse’s users, data sources, and workloads.

Key terms: general-purpose federation engines, shortcut-based virtualization, Spice.ai, broad analytical access, application-centric performance

8.7 Summary

Where this is used later

Concepts explained in this chapter

← Chapter 7: Implementing the catalog layer Chapter 9: Understanding the consumption layer →

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.