Apache Spark

Apache Spark

Deep technical articles on this topic.

154Articles
154Topics covered
Articles in this category

All 32 articles, sorted alphabetically

Advertisement
ARTICLE · 01

Spark Adaptive Query Execution (AQE)

How AQE reoptimizes Spark queries at runtime based on actual data statistics.

Read article
ARTICLE · 02

Spark barrier execution mode architecture

Deep-dive on Spark barrier execution mode: gang scheduling that launches all N tasks of a stage at once so they can run MPI-style all-to-all communica…

Read article
ARTICLE · 03

Spark runtime bloom-filter join architecture

Deep-dive on Spark's runtime bloom-filter (dynamic filtering) join: why shuffle dominates cost, building a bloom filter from …

Read article
ARTICLE · 04

Spark Broadcast Join

How broadcast join avoids shuffle by broadcasting the small side to every executor.

Read article
ARTICLE · 05

Spark Connect

3.4+. Thin client model.

Read article
ARTICLE · 06

Spark DataSource V2 architecture

Deep-dive on Spark DataSource V2: TableCatalog and DDL, capability sets, the ScanBuilder pushdown negotiation and the unhandled-filter contract, stati…

Read article
ARTICLE · 07

Spark DataFrame and Dataset

How DataFrames add schema and columnar optimization to Spark, how Datasets extend DataFrames with type safety, and when to use each.

Read article
ARTICLE · 08

Delta Lake

How Delta Lake adds ACID transactions, schema evolution, and time travel to Spark data lakes.

Read article
ARTICLE · 09

Spark Dynamic Allocation

How dynamic allocation adds/removes executors based on workload demand.

Read article
ARTICLE · 10

Spark Execution Architecture in Depth

A 2500-word walkthrough of Apache Spark's execution architecture: SparkSession, driver, cluster manager, Catalyst, DAG, execu…

Read article
ARTICLE · 11

Spark EXPLAIN Plans

Physical plan inspection.

Read article
ARTICLE · 12

Spark external shuffle service architecture - decoupling shuffle from executor lifetime

Deep-dive on Spark's external shuffle service: sort-based shuffle file layout and index, Netty zero-copy serving, surviving e…

Read article
ARTICLE · 13

Apache Hudi with Spark

How Hudi enables streaming-first data lakes with upserts + incremental queries.

Read article
ARTICLE · 14

Apache Iceberg with Spark

How Iceberg brings ACID + time travel + schema evolution to Spark data lakes.

Read article
ARTICLE · 15

Spark on Kubernetes architecture

Deep-dive on Spark on Kubernetes: operator, driver/executor pods, K8s scheduler, dynamic allocation, external shuffle, node pools.

Read article
ARTICLE · 16

Spark unified memory management architecture

Deep-dive on Spark memory: the reserved/user/unified heap layout, unified execution and storage with borrow-and-evict, the eviction asymmetry, spill-t…

Read article
ARTICLE · 17

Apache Spark Overview

What Spark is, how RDDs and DataFrames give in-memory distributed computing, and where Spark fits versus MapReduce, Flink, and modern warehouses.

Read article
ARTICLE · 18

Spark PageRank

Classic algorithm on GraphFrames.

Read article
ARTICLE · 19

Partition pruning -- skipping data you don't need to read

Deep-dive on Spark partition pruning: avoiding reading data (the fastest scan is the one you never do), static partition pruning (filter on the partit…

Read article
ARTICLE · 20

Spark Photon architecture

Deep-dive on Photon: a C++ vectorized execution engine beneath Spark SQL. How the planner splits the physical plan into native and JVM operators, how …

Read article
ARTICLE · 21

Spark RDD lineage architecture

Deep-dive on Spark RDD lineage: lazy transformations building a DAG, narrow vs wide dependencies, stage cutting at shuffle boundaries, recomputation o…

Read article
ARTICLE · 22

Spark Security

Kerberos + Ranger + TLS + encrypted shuffle.

Read article
ARTICLE · 23

Spark Shuffle

How Spark shuffle works internally, why it's usually the slowest phase, and how to minimize shuffle bytes.

Read article
ARTICLE · 24

Spark SQL

How Spark SQL provides ANSI-compatible SQL over any DataFrame source (Parquet, Delta, JDBC, Kafka), the query engine architecture, and Thrift server.

Read article
ARTICLE · 25

Spark SQL optimizer architecture

Deep-dive on Catalyst optimizer: analyzer, rule-based rewrites, cost model, physical planner, Tungsten codegen, AQE, and extensions.

Read article
ARTICLE · 26

Spark Stages and Tasks

How stages are built from transformations, how tasks are the unit of parallelism, and how partition count drives everything.

Read article
ARTICLE · 27

Spark Structured Streaming Architecture in Depth

A 2500-word walkthrough of Spark Structured Streaming: sources, streaming DataFrame, watermarks, state store, aggregations, sinks, checkpointing, exac…

Read article
ARTICLE · 28

Structured streaming + Kafka architecture

Deep-dive on Spark structured streaming + Kafka: offset tracking, checkpoint, exactly-once, rate limits, schema, restart.

Read article
ARTICLE · 29

Structured streaming watermark architecture

Deep-dive on Spark structured streaming watermarks: event time, watermark math, state, trigger, output modes, late data, checkpoint.

Read article
ARTICLE · 30

Spark Structured Streaming state

Deep-dive on Spark Structured Streaming state management: keyed state stores, checkpointing for exactly-once recovery, watermarks bounding state and h…

Read article
ARTICLE · 31

Spark Tungsten Execution Engine

Memory + CPU optimizations.

Read article
ARTICLE · 32

Spark whole-stage code generation architecture

Deep-dive on Spark SQL whole-stage code generation: replacing the Volcano iterator model with a fused Janino-compiled Java loop via the produce/consum…

Read article