Build an ETL Pipeline

Template Method pattern

Challenge 2 of Make It PluggableIntermediate~55 minFree

Build an ETL pipeline the way frameworks do, as a fixed skeleton. One run() method fixes the order of extract, transform, and load, while subclasses override individual steps to change behaviour without ever rewriting the algorithm. Add an overridable hook, then record the execution order to see the template in action. The Template Method pattern behind Django views, test frameworks, and data pipelines.

5 steps

  1. 1The Template Method
  2. 2Override a Single Step
  3. 3A Different Subclass, Same Skeleton
  4. 4An Overridable Hook
  5. 5Record the Fixed Order
Start step 1