Mastering Azure Databricks for Data Engineers

Introduction to Databricks Platform

In the previous lecture we saw what Apache Spark lacks. In this lecture we look at what Databricks offers on top of Spark, and where you can use it.

Databricks is a platform with the technologies, tools, and capabilities to design, develop, maintain, and operate enterprise-grade lakehouse solutions, using the medallion architecture and other patterns. You'll learn most of these capabilities in this course.

How Databricks Fills the Gaps

Remember the five things missing from Spark? Databricks provides each of them.

Each capability missing from Apache Spark mapped to the Databricks platform capability that provides itEach capability missing from Apache Spark mapped to the Databricks platform capability that provides it

Missing from SparkWhat Databricks provides
Data storage infrastructureA secure, easy way to integrate cloud storage with Spark and the Databricks Runtime. Storage comes to your data lake.
ACID transactionsDelta Lake, an open source project that adds ACID capabilities to distributed data processing systems. Databricks combines it with Spark and offers it as a pre-integrated, ready-to-use solution.
Metadata catalogUnity Catalog, the Databricks offering for centralized metadata management, user management, and security.
Cluster managementLaunch, auto scale up, auto scale down, and release compute from within the platform, without working directly with your cloud services. This includes serverless compute.
Automation APIs and toolsREST APIs, SDKs, and a command-line tool, plus integration with Terraform and bundles to automate project activities.

More Capabilities

Databricks platform capabilities: cloud-native Spark, an optimized runtime, the Photon query engine, notebooks and workspace, Lakeflow, administrative controls, Delta Lake and Unity Catalog, and compute managementDatabricks platform capabilities: cloud-native Spark, an optimized runtime, the Photon query engine, notebooks and workspace, Lakeflow, administrative controls, Delta Lake and Unity Catalog, and compute management

CapabilityWhat it is
Spark as a cloud-native technologySpark was designed to run on Hadoop. Databricks makes Spark independent of Hadoop and brings it to the cloud as a cloud-native technology.
Optimized Spark runtimeDatabricks takes vanilla Apache Spark and applies optimizations and tuning before it ships, so the same Spark can run a little faster on Databricks.
Photon query engineA native, vectorized query engine that accelerates Spark SQL and DataFrame workloads transparently. You switch it on, and queries run faster.
Notebooks and workspaceAn environment for day-to-day project work: developing, testing, and working with source control.
LakeflowThe data engineering solution for ingestion, transformation, and orchestration. It includes Lakeflow Connect for ingestion, Lakeflow Spark Declarative Pipelines for declarative ETL, and Lakeflow Jobs for orchestration.
Administrative controlsSecurity, user groups, and policies that control access and activities.

You'll work with Delta Lake, Unity Catalog, compute, notebooks, Lakeflow Spark Declarative Pipelines, and Lakeflow Jobs in later sections of this course.

Where Is Databricks Available?

Databricks is available on all three major cloud platforms: Azure, AWS, and Google Cloud. Which one should you choose?

Databricks is not different on each cloud. The platform and its capabilities are the same on all three, so the choice is not about Databricks. There can be differences behind the scenes in how Databricks is implemented on each cloud, but they are mostly transparent to the data engineering team.

The decision is usually based on other factors:

  • Which cloud your organization is already aligned or partnered with.
  • Which cloud's services your organization already uses for data engineering and data-related projects.

Preference goes to that cloud. If your organization is already aligned with Azure, Databricks will most likely run on Azure. If it's aligned with AWS, it will most likely run on AWS. From the project's point of view everything is the same. The differences are mostly in infrastructure, setup, and configuration, which is also the part that integrates with the cloud's own services.

Equivalent cloud services

These are the services you meet when Databricks works with the rest of your cloud.

ServiceAzureAWSGoogle Cloud
StorageAzure Data Lake Storage Gen2Amazon S3Google Cloud Storage
IdentityMicrosoft Entra IDAWS IAMGoogle Cloud IAM
Key managementAzure Key VaultAWS KMSCloud KMS
Data integrationAzure Data FactoryAWS GlueCloud Data Fusion
MessagingAzure Service Bus, Azure Event HubsAmazon Kinesis, SNS, SQSGoogle Pub/Sub
CI/CDAzure DevOps, GitHubAWS CodeBuild, CodeDeploy, CodePipelineGoogle Cloud Build, Cloud Deploy

Summary

  • Databricks is a platform for building enterprise lakehouse solutions on top of Apache Spark.
  • It fills Spark's gaps: cloud storage integration, Delta Lake, Unity Catalog, compute management, and automation tools.
  • It adds an optimized runtime, the Photon query engine, notebooks and a workspace, Lakeflow, and administrative controls.
  • It is available on Azure, AWS, and Google Cloud, and it is the same platform on all three. Choose the cloud your organization already uses.

See you in the next lecture. Keep learning, and keep growing!