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 it
| Missing from Spark | What Databricks provides |
|---|---|
| Data storage infrastructure | A secure, easy way to integrate cloud storage with Spark and the Databricks Runtime. Storage comes to your data lake. |
| ACID transactions | Delta 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 catalog | Unity Catalog, the Databricks offering for centralized metadata management, user management, and security. |
| Cluster management | Launch, 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 tools | REST 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 management
| Capability | What it is |
|---|---|
| Spark as a cloud-native technology | Spark 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 runtime | Databricks 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 engine | A native, vectorized query engine that accelerates Spark SQL and DataFrame workloads transparently. You switch it on, and queries run faster. |
| Notebooks and workspace | An environment for day-to-day project work: developing, testing, and working with source control. |
| Lakeflow | The 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 controls | Security, 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.
| Service | Azure | AWS | Google Cloud |
|---|---|---|---|
| Storage | Azure Data Lake Storage Gen2 | Amazon S3 | Google Cloud Storage |
| Identity | Microsoft Entra ID | AWS IAM | Google Cloud IAM |
| Key management | Azure Key Vault | AWS KMS | Cloud KMS |
| Data integration | Azure Data Factory | AWS Glue | Cloud Data Fusion |
| Messaging | Azure Service Bus, Azure Event Hubs | Amazon Kinesis, SNS, SQS | Google Pub/Sub |
| CI/CD | Azure DevOps, GitHub | AWS CodeBuild, CodeDeploy, CodePipeline | Google 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!