Skip to content
Rings and drops on black water, lit in amber from the left

02Live demo

Aftershock

A real-time data lake that watches earthquake magnitudes get revised

Jul 2026 - Aug 2026 · solo

Role
Solo
Period
Jul 2026 - Aug 2026
Status
Live demo

01ProofThe single statement

What it proves

7,939 archived versions of 2,128 earthquakes. One first published at 3.6 was revised to 5.2.

02FiguresEach figure and its file

The figures, with their sources

03ProductThe real app

The product, screen by screen

A real-time data lake that watches earthquake magnitudes get revised

The Aftershock dashboard, Le dossier: one earthquake's versions and its magnitude moving on the scale
The file of one earthquake, version by version: first published at 3.6, revised to 5.2.Real capture, the committed dashboard site/aftershock.html, Aftershock repository, 28 Nov 2026

Guided tour

  1. 01

    The same file at the other screen size: one earthquake, version by version, from its first published magnitude to its revised one.

    Real capture, the committed dashboard site/aftershock.html, Aftershock repository, 28 Nov 2026
    The file of one earthquake at the other screen size: its versions and its magnitude scale
  2. 02

    The live view: what USGS publishes enters Kafka, crosses Spark and settles in the lake. Captured with the live service offline, as the page itself says.

    Real capture, the committed dashboard site/aftershock.html, Aftershock repository, 27 Nov 2026
    The Aftershock dashboard: the pipeline from USGS to Gold, its counters and its Kafka panel
  3. 03

    The revision

    Illustration. The pen draws the tremor as first published, then redraws it as revised, while the first trace stays as a ghost.

04ArchitectureThe flow, from the summary

How the data flows

Three USGS sources into a Bronze, Silver and Gold lake on HDFS: Kafka in KRaft mode, Spark Structured Streaming with Delta Lake, four Airflow DAGs chained by Datasets, replay after a hard kill proven free of duplicates.

The flow, as text
  1. Three USGS sources → Kafka
  2. Kafka → Spark Structured Streaming
  3. Spark Structured Streaming → Delta Lake
  4. Delta Lake → Bronze
  5. Bronze → Silver
  6. Silver → Gold
  7. Gold → Spark MLlib
  8. Kafka: KRaft mode
  9. Airflow: four DAGs chained by Datasets
  10. on HDFS

04bHow it worksAftershock

How it works

Aftershock keeps every version of an earthquake the networks publish, to show how its magnitude was corrected.

  1. 01

    An earthquake hits

    13 km WSW of Takotna, Alaska, on 30 January 2025.

  2. 02

    First magnitude in minutes

    The first version said M3.6, 2.9 min after the shock, computed automatically.

  3. 03

    Revised again and again

    15 versions later the magnitude is M5.2, reviewed, 76 days after the shock.

Try it yourself

Choose a moment after the shock: you will see the magnitude published then.

Time after the earthquake
  1. 2.9 min after the shock: magnitude 3.6, computed automatically.
  2. 6.9 min after the shock: magnitude 5.8, computed automatically.
  3. 13 min after the shock: magnitude 5.3, reviewed.
  4. 76 days after the shock: magnitude 5.2, reviewed. The last of 15 versions.
M4M5M61 min1 h1 day30 daysM3.6 firstM5.2 final
Every version published, from 1 minute to months later. The line jumps each time the magnitude is corrected.
Where the numbers come from
Commit
66cd8032

05StackEach tool and its role

What it is built with

Kafka
in KRaft mode
Spark Structured Streaming
with Delta Lake
Delta Lake
a Bronze, Silver and Gold lake
Airflow
four Airflow DAGs chained by Datasets
HDFS
the lake on HDFS
Spark MLlib
GBT classifier: should the first magnitude be trusted

06ExitThe next door

Where to next