Skip to main content

18. Enterprise Lakehouse Architecture

Learning objective: design an enterprise Databricks lakehouse as a coherent platform—covering account, workspace, Unity Catalog, data domains, ingestion, processing, serving, security, networking, observability, FinOps, resilience, and operating model—and defend the resulting architecture with explicit trade-offs.

Phase 17 taught you how to make the platform recoverable.

Phase 18 asks a broader question:

How should an enterprise design the lakehouse so that hundreds of users, many domains, multiple environments, and critical workloads can scale without turning the platform into a collection of isolated projects?

This is the first phase where the primary unit of thinking is no longer a pipeline or workspace. It is the enterprise platform.

Enterprise Databricks lakehouse reference architecture


18.1 What an enterprise lakehouse actually is​

A lakehouse is not simply:

  • object storage + Delta tables,
  • a Databricks workspace,
  • a medallion diagram,
  • or a collection of ETL jobs.

An enterprise lakehouse is a socio-technical system consisting of:

  1. Business domains — the producers and consumers of data.
  2. Data products — governed datasets, tables, views, files, and analytical interfaces.
  3. Platform services — compute, orchestration, ingestion, serving, governance, observability, and security.
  4. Control plane — identity, policies, metadata, deployment, configuration, and operating standards.
  5. Data plane — cloud storage, compute execution, network paths, and workload data.
  6. Operating model — ownership, SLOs, support, FinOps, change management, and architecture governance.

The architecture must make these concerns explicit.


18.2 Start with architecture boundaries​

Before choosing a Databricks feature, establish the boundaries.

Business boundary​

Who owns the data?

Examples:

  • Finance
  • Procurement
  • Supply Chain
  • Customer
  • Marketing
  • Operations
  • Data & AI Platform

A domain should have accountable owners for:

  • data definition,
  • quality,
  • access decisions,
  • lifecycle,
  • service expectations,
  • and consumer support.

Environment boundary​

Development, test, staging, and production exist for different reasons.

Do not assume that every organization needs one workspace per environment. Environment isolation can be implemented through a combination of:

  • workspaces,
  • Unity Catalog catalogs,
  • storage locations,
  • identities,
  • deployment controls,
  • network boundaries,
  • and data access policies.

The correct design depends on the required isolation level, regulatory constraints, team topology, and operational model.

Regional boundary​

A region is a real architectural boundary for Unity Catalog.

Databricks documents a regional metastore model: a metastore is scoped to one cloud region, and workspaces in that region can be attached to it. Multi-region designs therefore require deliberate cross-region sharing or synchronization rather than pretending that one metastore is globally authoritative.

Security boundary​

Separate:

  • human identities,
  • workload identities,
  • administrative privileges,
  • data permissions,
  • network controls,
  • and cloud-resource permissions.

Never use a data-layer permission as a substitute for a network boundary, or a network boundary as a substitute for data authorization.


18.3 The enterprise architecture stack​

Think of the platform as layers.

LayerPrimary responsibilityArchitect question
BusinessDomains, capabilities, ownershipWho owns the outcome?
Data productsTrusted datasets and interfacesWhat contract do consumers depend on?
GovernanceUnity Catalog, policies, lineageWho may discover, read, change, or share it?
ProcessingBatch, streaming, transformationsWhere should computation occur?
OrchestrationPipelines, jobs, dependenciesHow is work scheduled and recovered?
ServingSQL, BI, APIs, downstream sharingHow will consumers access the result?
PlatformWorkspaces, compute, networkingHow is the runtime operated safely?
CloudStorage, IAM, network, KMSWhat must the cloud provider enforce?
Operating modelSLOs, support, FinOps, standardsWho operates the platform after go-live?

A common architecture mistake is to optimize only the processing layer while leaving governance, ownership, and operations undefined.


18.4 Account → workspace → metastore​

The Databricks account is the enterprise management boundary. Databricks describes account-level responsibilities such as identity and access, workspace management, Unity Catalog metastore management, and usage management. Workspaces are execution and collaboration environments; Unity Catalog metastores provide regional governance for data and AI assets.

A useful mental model is:

Enterprise / Databricks Account
│
├── Identity + groups + service principals
├── Billing + usage + policies
├── Workspace A
│ └── attached to regional Metastore
├── Workspace B
│ └── attached to regional Metastore
└── Workspace C
└── attached to another regional Metastore

Do not confuse these scopes:

  • Account = enterprise administration.
  • Workspace = execution and collaboration boundary.
  • Metastore = regional Unity Catalog governance boundary.
  • Catalog = organizational/data isolation boundary.
  • Schema = logical grouping inside a catalog.
  • Table/view/volume/function = governed data or code asset.

A single metastore can be attached to multiple workspaces in its region, and permissions on the metastore apply across those attached workspaces.


18.5 Workspace topology: choose isolation deliberately​

There is no universal "one workspace per team" rule.

Evaluate workspace boundaries against:

DriverFavors more isolationFavors consolidation
Regulatory isolationStrongWeak
Network isolationStrongWeak
Independent platform lifecycleStrongWeak
Small team countWeakStrong
Shared governanceWeakStrong
Cross-team collaborationWeakStrong
Cost / administration simplicityWeakStrong

Common enterprise patterns include:

Pattern A — Shared development + isolated production​

Shared DEV
│
├── Sales
├── Finance
└── Engineering

Dedicated PROD workspaces
├── Sales PROD
├── Finance PROD
└── Engineering PROD

Useful when teams need collaboration but production requires stronger isolation.

Pattern B — Environment-oriented​

DEV ── TEST ── STAGE ── PROD

Useful where release controls and centralized operations dominate.

Pattern C — Domain-oriented​

Sales Workspace
Finance Workspace
Supply Chain Workspace
Engineering Workspace

Useful when domains have materially different operating, security, or network requirements.

Pattern D — Hybrid​

Most mature enterprises use a hybrid model.

For example:

  • shared engineering workspace(s),
  • controlled development workspaces,
  • dedicated production workspaces for critical domains,
  • regional workspaces where required,
  • centralized governance through Unity Catalog.

Databricks' current workspace strategy guidance explicitly presents single-region, multi-region, multi-business-unit, and environment-based patterns.


18.6 Unity Catalog: the enterprise governance backbone​

Unity Catalog should be treated as an architectural control plane for governed data and AI assets—not merely as a replacement for an old metastore.

Databricks recommends one metastore per region. Catalogs then become an important isolation and organization mechanism within that regional boundary.

Three-level namespace​

catalog.schema.object

Example:

finance_prod.gl.gold_profitability
finance_prod.slv.vendor_invoice
sales_prod.gold.customer_revenue

The naming convention is less important than the ownership and isolation model behind it.

Catalog design patterns​

Environment-first​

dev
test
prod

Simple and effective when environments are the primary isolation concern.

Domain-first​

finance
sales
supply_chain
customer

Useful when domains own their data products.

Hybrid​

finance_dev
finance_prod
sales_dev
sales_prod

Useful when both domain ownership and environment isolation must be obvious.

Databricks' current guidance also describes hub-and-spoke designs in which shared enterprise data lives in hub catalogs and domain-owned data lives in spoke catalogs.

Architect rule​

Do not create catalogs simply because a diagram looks cleaner.

Create a catalog when there is a meaningful boundary involving:

  • ownership,
  • security,
  • storage,
  • lifecycle,
  • environment,
  • regulatory requirements,
  • or operating responsibility.

18.7 Managed tables, external tables, and volumes​

Modern lakehouse architecture should start with governed storage patterns rather than legacy filesystem habits.

For structured lakehouse data, managed tables are generally the preferred starting point. Volumes provide a governed mechanism for file-oriented access. External locations and external tables remain useful where data must remain in existing cloud storage or be shared with systems that require direct storage access.

Architectural question:

Who owns the physical storage lifecycle?

If the answer is "the lakehouse platform," managed storage is often simpler.

If the answer is "an external enterprise storage domain," external locations may be appropriate.

Avoid designing new production platforms around legacy DBFS-root storage patterns. Current Databricks guidance explicitly recommends against storing production data on DBFS and against using the root bucket for customer data.


18.8 Data domains and data products​

A domain is not merely a folder.

A mature domain has:

  • accountable owner,
  • business glossary,
  • source systems,
  • data products,
  • quality rules,
  • access policy,
  • lineage,
  • SLOs,
  • consumers,
  • support model.

Example:

PROCUREMENT DOMAIN
│
├── Source systems
│ ├── SAP S/4HANA
│ ├── Ariba
│ └── Supplier platforms
│
├── Data products
│ ├── Purchase Order
│ ├── Supplier
│ ├── Spend
│ └── Contract
│
├── Quality
│ ├── completeness
│ ├── uniqueness
│ └── referential integrity
│
└── Consumers
├── BI
├── Finance
├── Supply Chain
└── ML

This is where your SAP background becomes valuable: think beyond tables and pipelines. A source object becomes useful only when its business semantics, ownership, history, quality, and consumer contract are understood.


18.9 Medallion architecture: useful pattern, not religion​

Bronze/Silver/Gold is a powerful teaching and implementation pattern, but it is not a mandatory architecture for every workload.

Bronze​

Purpose:

  • preserve source fidelity,
  • absorb ingestion variability,
  • provide replayable raw-ish state.

Silver​

Purpose:

  • standardize,
  • validate,
  • deduplicate,
  • conform,
  • enrich.

Gold​

Purpose:

  • publish business-ready products,
  • optimize consumption,
  • encode business semantics.

When not to force three layers​

A three-layer design may be excessive when:

  • the source is already curated,
  • the workload is transient,
  • a low-latency serving path is more appropriate,
  • the data product has a simpler lifecycle,
  • or duplication creates more cost than value.

Architectural maturity means knowing why a layer exists.


18.10 Batch, streaming, and event-driven architecture​

Choose the processing pattern from business latency—not technology fashion.

RequirementTypical pattern
Daily reportingBatch
Hourly operational analyticsMicro-batch / scheduled
Near-real-time dashboardsStreaming
Event-triggered workflowsEvent-driven
Historical backfillBatch
Continuous sensor/event processingStreaming

Do not build a streaming pipeline simply because streaming is available.

The architect should define:

  • freshness SLO,
  • completeness expectation,
  • late-arrival policy,
  • replay strategy,
  • state management,
  • checkpointing,
  • recovery behavior,
  • cost envelope.

18.11 Ingestion architecture​

Enterprise ingestion normally falls into several patterns:

Pattern 1 — File ingestion​

Source
↓
Cloud object storage
↓
Auto Loader / ingestion pipeline
↓
Bronze

Pattern 2 — Database CDC​

Operational DB
↓
CDC
↓
Landing / ingestion
↓
Delta
↓
Conformed data

Pattern 3 — Application/API ingestion​

API
↓
Landing
↓
Validation
↓
Raw / Bronze
↓
Conformed

Pattern 4 — SAP integration​

A practical enterprise pattern may look like:

SAP S/4HANA / ECC
│
├── ODP / extractors
├── SLT / CDC
├── APIs
└── files / integration services
│
▼
Enterprise ingestion
│
▼
Delta / Lakehouse
│
┌───────┴────────┐
▼ ▼
Data products Analytics
│ │
▼ ▼
BI / SAC ML / AI

This is not a 1:1 replacement map such as "BW ADSO = Delta table." Instead, map capabilities:

SAP conceptLakehouse architectural concern
BW data modelData product / analytical model
ADSOPersistent governed data structure
Process chainOrchestration / dependency graph
ODPExtraction / change-data contract
SLTCDC / replication pattern
CompositeProviderSemantic serving / federated analytical model
SACBI / analytical consumption
DatasphereData integration / semantic / governed data layer, depending on scope

The goal is to transfer architectural thinking, not terminology.


18.12 Data contracts​

A data contract defines what a producer promises to consumers.

At minimum:

  • schema,
  • semantic definitions,
  • keys,
  • nullability,
  • freshness,
  • quality thresholds,
  • change policy,
  • ownership,
  • classification,
  • retention,
  • support contact.

Example:

Supplier Spend Product
│
├── grain: supplier × fiscal period
├── primary business key: supplier_id + fiscal_period
├── freshness: < 2 hours
├── completeness: ≥ 99.5%
├── schema policy: additive changes allowed
├── owner: Procurement Data Product Owner
└── consumer SLA: 08:00 business reporting

The contract is more important than the physical table.


18.13 Data quality as an architecture capability​

Quality should be measurable and observable.

Classify rules into:

  • structural,
  • completeness,
  • uniqueness,
  • validity,
  • consistency,
  • referential integrity,
  • timeliness,
  • reconciliation.

A production quality design should answer:

  1. Where is the rule evaluated?
  2. What happens when it fails?
  3. Is bad data quarantined?
  4. Can the record be replayed?
  5. Who is notified?
  6. Does the failure block publication?
  7. How is quality reported over time?

A quality rule without an operational response is only documentation.


18.14 Serving architecture​

Consumers should not need to understand ingestion internals.

Typical serving paths include:

Curated data products
│
├── SQL analytics
├── BI / semantic layer
├── APIs / applications
├── data sharing
└── ML / AI features

Use the serving interface that matches the consumer.

For example:

  • analysts may need SQL,
  • dashboards may need a SQL warehouse,
  • applications may need an API,
  • another organization may need governed sharing,
  • ML workloads may need feature/model interfaces.

18.15 Security architecture​

Treat security as multiple layers.

Identity
↓
Workspace access
↓
Network controls
↓
Unity Catalog privileges
↓
Row / column controls where required
↓
Storage permissions
↓
Audit + monitoring

A strong architecture avoids relying on one control.

Privilege model​

Prefer:

  • groups over individual grants,
  • service principals for workloads,
  • least privilege,
  • separation of duties,
  • controlled administrative roles,
  • automated entitlement management.

Current Databricks guidance distinguishes account administrators, workspace administrators, and optional metastore administrators by scope.


18.16 Network architecture​

Network design is not an afterthought.

Evaluate:

  • private connectivity,
  • inbound/outbound paths,
  • cloud-native firewall controls,
  • DNS,
  • egress,
  • data exfiltration risk,
  • access to source systems,
  • access to object storage,
  • access to external services.

For every critical data path, draw:

Consumer
↓
Databricks service
↓
Network boundary
↓
Cloud resource
↓
Data

Then ask:

What prevents an unauthorized path from bypassing the intended boundary?


18.17 Observability and SLOs​

An enterprise platform needs measurable objectives.

Examples:

ServiceSLO
Daily finance productAvailable by 06:00
Supplier spendFresh within 2 hours
Critical pipeline≥ 99.5% successful runs
Data quality≥ 99% critical checks pass
SQL servingp95 query latency target
RecoveryRTO/RPO aligned with business tier

Measure:

  • pipeline success,
  • latency,
  • freshness,
  • backlog,
  • data quality,
  • compute utilization,
  • query performance,
  • cost,
  • security events.

18.18 FinOps is part of architecture​

Every architecture decision has an economic consequence.

Evaluate:

Business value
÷
Total cost of ownership

TCO includes more than DBUs:

  • compute,
  • storage,
  • cloud networking,
  • data transfer,
  • operational overhead,
  • support,
  • engineering time,
  • platform tooling,
  • DR,
  • security controls.

Use workload-level unit economics where possible:

Cost per successful pipeline run
Cost per TB processed
Cost per dashboard refresh
Cost per million events
Cost per data product

If the platform cannot explain where cost comes from, the architecture is incomplete.


18.19 Enterprise reference architecture​

A robust enterprise pattern can be visualized as:

                         ENTERPRISE
│
┌───────────────┴───────────────┐
│ │
Identity / IAM Architecture / FinOps
│ │
└───────────────┬───────────────┘
│
DATABRICKS ACCOUNT
│
┌─────────────────────┼─────────────────────┐
│ │ │
Region A Region B Region C
│ │ │
Metastore Metastore Metastore
│ │ │
┌─────┼─────┐ ┌─────┼─────┐ │
│ │ │ │ │ │ │
DEV TEST PROD DEV PROD SPECIAL ...
│ │
│ Data products
│ │
└───────┬───┘
│
┌─────┴──────────────────────────────────┐
│ │
Ingestion / CDC / Files Streaming
│ │
└────────────────┬───────────────────────┘
▼
Delta / Lakehouse
│
┌────────────┼────────────┐
▼ ▼ ▼
Analytics BI/SAC ML/AI
│
Business outcomes

The exact topology must be adapted to:

  • geography,
  • regulations,
  • domain ownership,
  • network requirements,
  • workload criticality,
  • team maturity,
  • cost,
  • recovery objectives.

18.20 Architecture decision record​

For every major platform decision, record:

Decision​

What are we choosing?

Context​

What business and technical constraints exist?

Options​

What alternatives were evaluated?

Decision criteria​

What matters?

  • security,
  • latency,
  • cost,
  • reliability,
  • operability,
  • scalability,
  • developer experience.

Consequences​

What becomes easier?

What becomes harder?

Exit condition​

Under what future condition should this decision be reconsidered?

This turns architecture from opinion into an auditable engineering practice.


18.21 Common enterprise anti-patterns​

Anti-pattern 1 — Workspace sprawl​

Creating a workspace for every team without a governance reason.

Why it fails: operational overhead, fragmented standards, duplicated configuration.

Anti-pattern 2 — Catalog explosion​

Creating hundreds of catalogs for cosmetic organization.

Why it fails: permissions and ownership become difficult to reason about.

Anti-pattern 3 — One giant shared workspace​

Putting every workload and team into one workspace despite materially different security or network requirements.

Why it fails: weak isolation and noisy-neighbor risk.

Anti-pattern 4 — Medallion by ritual​

Creating Bronze/Silver/Gold for every dataset.

Why it fails: unnecessary copies and latency.

Anti-pattern 5 — Pipeline-centric architecture​

Optimizing individual jobs without defining data products, owners, SLOs, or consumers.

Why it fails: local optimization produces enterprise inconsistency.

Anti-pattern 6 — Cloud storage as the security model​

Assuming bucket permissions alone solve data governance.

Why it fails: governance needs identity, metadata, policy, lineage, and audit.

Anti-pattern 7 — DR as backup​

Assuming replicated files automatically mean the platform is recoverable.

Why it fails: identity, configuration, dependencies, orchestration, networking, and operational procedures also need recovery.


18.22 Enterprise migration strategy​

Do not migrate everything at once.

Use waves:

Assess
↓
Classify
↓
Prioritize
↓
Design target
↓
Pilot
↓
Industrialize
↓
Migrate by domain
↓
Decommission legacy
↓
Optimize

Classify workloads by:

  • business criticality,
  • data volume,
  • latency,
  • complexity,
  • regulatory requirements,
  • integration dependencies,
  • current cost,
  • migration risk.

For SAP-heavy organizations, migration should preserve business semantics and reconciliation—not simply move tables.


18.23 Architect lab — design a global lakehouse​

Scenario​

A global manufacturer has:

  • SAP S/4HANA in multiple regions,
  • procurement and finance domains,
  • global BI,
  • regional regulatory requirements,
  • near-real-time operational analytics,
  • batch financial reporting,
  • ML workloads,
  • SAC consumers,
  • existing cloud storage,
  • a central data platform team.

Your task​

Design:

  1. account structure,
  2. workspace topology,
  3. regional Unity Catalog model,
  4. catalog strategy,
  5. data domain boundaries,
  6. SAP ingestion patterns,
  7. batch and streaming architecture,
  8. data contracts,
  9. security model,
  10. network model,
  11. observability,
  12. FinOps,
  13. HA/DR,
  14. operating model.

Deliverables​

Produce:

  • one context diagram,
  • one deployment diagram,
  • one data-flow diagram,
  • five ADRs,
  • three SLOs,
  • one cost model,
  • one failure scenario,
  • one migration plan.

Architect defense​

You must be able to answer:

Why did you choose this topology instead of a single shared workspace?

Why are these catalog boundaries correct?

What happens when a region fails?

What happens when a data contract changes?

What is the most expensive workload?

Which controls prevent unauthorized cross-domain access?

What would you change if the organization doubled in size?


18.24 Troubleshooting matrix​

SymptomLikely architectural causeFirst investigation
Teams cannot share dataIncorrect workspace/metastore/catalog modelCheck regional metastore and sharing design
Too many access requestsPoor ownership / group modelReview data-product ownership
High cross-region costExcessive remote consumptionMeasure access paths and sharing pattern
Slow dashboardsServing layer not designed for consumptionInspect warehouse/query workload
Pipeline succeeds but data is wrongWeak contract/quality modelInspect quality gates and reconciliation
Platform costs grow unexpectedlyNo workload unit economicsAnalyze usage by workload/domain
DR test failsOnly data was recoveredTest identities, config, orchestration, network, and dependencies

18.25 Production readiness checklist​

Architecture​

  • Business domains identified
  • Data products defined
  • Workspace topology justified
  • Regional boundaries documented
  • Unity Catalog architecture documented
  • Data contracts defined

Security​

  • Identity model defined
  • Service principals used for workloads
  • Least privilege enforced
  • Network boundaries documented
  • Sensitive-data controls implemented
  • Auditability verified

Data engineering​

  • Batch/streaming decisions justified
  • Replay and backfill strategy defined
  • Quality gates implemented
  • Schema evolution policy defined
  • Lineage available

Operations​

  • SLOs defined
  • Monitoring implemented
  • On-call ownership defined
  • Runbooks available
  • DR tested

FinOps​

  • Cost allocation implemented
  • Workload classes defined
  • Budgets/anomaly detection implemented
  • Unit economics tracked

Architecture governance​

  • ADRs stored
  • Standards published
  • Exceptions documented
  • Review cadence established

18.26 Interview questions​

  1. What is the difference between a Databricks account, workspace, metastore, catalog, and schema?
  2. Why is Unity Catalog regional?
  3. When would you use multiple workspaces?
  4. When would you avoid creating another workspace?
  5. How would you design catalogs for a large enterprise?
  6. How would you design multi-region governance?
  7. How do managed and external storage patterns differ?
  8. When should Bronze/Silver/Gold not be used?
  9. How would you design a data product?
  10. How would you define a data contract?
  11. How would you integrate SAP with a lakehouse without forcing a false 1:1 mapping?
  12. How do you separate platform security from data authorization?
  13. How would you control cross-region data access?
  14. How do you measure lakehouse TCO?
  15. How would you migrate an enterprise from legacy analytics platforms?
  16. How would you prove the architecture is production-ready?

18.27 Final mental model​

The enterprise architect should think in this order:

Business outcomes
↓
Domains + ownership
↓
Data products + contracts
↓
Governance + security
↓
Regional/account/workspace topology
↓
Ingestion + processing
↓
Serving + consumption
↓
SLO + observability
↓
FinOps
↓
HA / DR
↓
Operating model
↓
Continuous architecture evolution

If you start with "Which Databricks feature should I use?", you are starting too low.

Start with:

What business capability are we building, who owns it, what contract does it expose, what reliability does it require, who may access it, and what will it cost to operate?

Then choose the Databricks architecture.


Official references​