Skip to content
TeachTrails
Data EngineeringDatabricks

Databricks Architecture: Workspace, Clusters, DBUs

How Databricks is built: control plane vs compute plane, workspaces, notebooks, clusters, serverless, SQL warehouses, Photon and DBU pricing, simply explained.

Sukanya Saha, Technology Consultant

10 min read

Beginner friendly

The big picture: two planes

Think of a restaurant. The control plane is the front desk: it takes orders, plans and tells the kitchen what to cook. The compute plane is the kitchen, where the actual cooking (data processing) happens. The ingredients (your data) are kept in your own storeroom: cloud storage.

📊 Databricks architecture

Control plane

Run by Databricks

Web app & notebooks

Where you write code

Job scheduler

Starts jobs on time

Cluster manager

Creates and stops machines

Unity Catalog metadata

Table names, permissions, lineage

Compute plane

Classic: your cloud account · Serverless: Databricks' account

Clusters (driver + workers)

Run Spark

SQL warehouses

Run SQL for dashboards

☁️ Your cloud storage

S3 / ADLS / GCS: the actual data files

Account, workspace and what's inside

📊 How Databricks is organised

Account

Your company: billing, users and groups, Unity Catalog metastores

Workspaces

One per team or environment, e.g. dev and prod

Notebooks

Code + results

Git folders

Code from GitHub/Azure DevOps

Compute

Clusters, SQL warehouses

Jobs & pipelines

Scheduled work

Catalog Explorer

Browse tables

Notebooks: where you write code

A notebook is a page of cells. Each cell holds code; run it and the result appears right below. A notebook has a default language (Python, SQL, Scala or R), and a magic command at the top of a cell switches language for that cell. A spark object is already created for you.

Databricks notebook (Databricks only)
# Cell 1 (Python, the notebook's default language)
df = spark.read.table("samples.nyctaxi.trips")   # built-in sample data
display(df)                                      # nice table + charts

# Cell 2: switch this one cell to SQL
%sql
SELECT COUNT(*) FROM samples.nyctaxi.trips

# Cell 3: write notes in Markdown
%md
## Revenue checks

# Cell 4: run another notebook (shares its variables)
%run ./helpers

# Cell 5: dbutils = Databricks utilities
dbutils.fs.ls("/Volumes/shopkart/raw/landing/")   # list files
CommandWhat it does
display(df)Show a DataFrame as a table with charts
%sql / %python / %mdChange the language of one cell
%run ./notebookRun another notebook inline (its functions become available)
dbutils.fsWork with files: ls, cp, mv, rm
dbutils.widgetsNotebook parameters (lesson 10)
dbutils.secretsRead passwords and keys safely, never hard-coded

Compute: the machines

A cluster is a group of virtual machines that run Spark together: one driver (the boss that plans the work) and several workers (which run executors that do the work). You'll meet them properly in the next lesson.

Compute typeUse it forGood to know
All-purpose computeInteractive notebooks, exploringShared by people; most expensive DBU rate
Job computeScheduled jobsCreated for the run, deleted after; cheaper
Serverless computeNotebooks, jobs and pipelinesStarts in seconds, no settings to tune; Databricks manages the VMs
SQL warehouseSQL queries, dashboards, BI toolsClassic, Pro or Serverless; built for SQL with Photon
Pipeline computeLakeflow Declarative Pipelines (lesson 9)Managed for the pipeline

The settings that matter on a cluster

  • Databricks Runtime (DBR): the software bundle: Spark, Delta Lake, Python and libraries. Pick an LTS (long-term support) version for production.
  • Worker type and count: how big and how many machines. Autoscaling adds or removes workers between a min and max.
  • Auto-termination: shut down after N idle minutes. Always set it; idle clusters are the #1 surprise bill.
  • Access mode: Standard (many users share it safely, formerly “shared”) or Dedicated (one user or group, formerly “single user”). Both work with Unity Catalog.
  • Photon: switch on the faster C++ engine.
  • Spot instances: cheaper spare cloud capacity for workers; the cloud can take them back, and Spark retries the lost work.
  • Cluster policies: rules admins set (max size, required tags) so teams can't create huge clusters by accident.

How you pay: DBUs

A DBU (Databricks Unit) measures processing power per hour. Bigger machines burn more DBUs per hour, and each compute type has its own price per DBU (job compute is cheaper than all-purpose).

the cost formula
Classic compute:    cost = DBUs used × price per DBU  +  cloud VM cost (paid to AWS/Azure/GCP)
Serverless compute: cost = DBUs used × price per DBU  (VMs included)

🎯 Interview questions on this topic

Try to answer out loud first, then tap to check.

Q1Explain the Databricks architecture.Fresher
Two planes. The control plane, managed by Databricks, hosts the web app, notebooks, jobs scheduler, cluster manager and Unity Catalog metadata. The compute plane runs the clusters and SQL warehouses that process data, in the customer's cloud account (classic) or Databricks' account (serverless). Data is stored in the customer's cloud object storage.
Q2Difference between an all-purpose cluster and a job cluster?Fresher
All-purpose clusters are created manually, shared for interactive development and stay up until terminated. Job clusters are created by the job scheduler for one run and terminated when it ends. Job compute has a lower DBU rate and isolates each run.
Q3When would you choose serverless compute?1–3 yrs
When fast start-up and zero cluster tuning matter: short or bursty jobs, interactive work, pipelines. You trade fine-grained control (custom instance types, init scripts, some libraries) for convenience. For long, steady, heavily tuned jobs, classic job compute can be cheaper.
Q4What is a DBU and how would you reduce Databricks cost?1–3 yrs
A DBU is a normalised unit of processing per hour; cost is DBUs times the SKU price, plus VM cost for classic compute. Reduce it with job compute/serverless for jobs, auto-termination, autoscaling, spot workers, right-sized instances, cluster policies, Photon where it shortens runtime, and fixing slow code (shuffles, small files).
Q5What is the Databricks Runtime?1–3 yrs
A versioned image containing Apache Spark, Delta Lake, Python/Scala libraries and Databricks optimisations. Production jobs pin an LTS version so upgrades are planned and tested.
Q6Standard vs Dedicated access mode?3+ yrs
Standard (formerly shared) lets many users share a cluster with isolation between them and full Unity Catalog enforcement, with some limits (e.g. on low-level RDD APIs). Dedicated (formerly single user) is assigned to one user or group and supports everything, such as ML runtimes and RDD code.

Key takeaways

  • The control plane plans; the compute plane processes; your storage keeps the data.
  • A workspace holds notebooks, Git folders, compute, jobs and the catalog browser.
  • Pick compute by job: interactive, scheduled, SQL, or serverless for zero setup.
  • DBUs measure usage. Auto-termination and job compute save the most money.

Frequently asked questions

What is the control plane in Databricks?

The control plane is the part Databricks runs for you: the web app, notebooks, the job scheduler, the cluster manager and Unity Catalog's metadata. It decides what should run, but it doesn't hold your table data.

What is the compute plane?

The compute plane is where your data is actually processed. With classic compute, the virtual machines run in your own cloud account. With serverless compute, they run in Databricks' cloud account, still isolated per customer.

What is a DBU?

A Databricks Unit is how Databricks measures processing time. A bigger machine burns more DBUs per hour. Your bill is DBUs times a price that depends on the compute type; with classic compute you also pay your cloud provider for the VMs.

All-purpose cluster or job cluster?

Use all-purpose compute for interactive work in notebooks. Use job compute for scheduled jobs: it's created for the run, shut down after, and its DBU price is lower.

What is Photon?

Photon is Databricks' faster query engine, written in C++. It runs the same Spark SQL and DataFrame code, often several times faster for SQL-heavy work. It costs more DBUs per hour, so it pays off when it shortens the job enough.

🧠 Quick check: Databricks architecture

  1. 1. Where does your table data live?

  2. 2. Which compute should a nightly scheduled job use?

  3. 3. A cluster has 1 driver and 4 workers. Who runs the tasks?

  4. 4. What does auto-termination do?

Databricks for Beginners

Part 2 of 13: Databricks Architecture