Slide 1

Slide 1 text

Intro to Airflow From Zero to Hero

Slide 2

Slide 2 text

❗Disclaimer❗

Slide 3

Slide 3 text

As this is an Airflow sharing, ...

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

$ cat weilee.py __name__ = 李唯 / Wei Lee __what_i_am_doing__ = [ Software Engineer @ Astronomer, Volunteers @ PyCon Taiwan, Maintainer of commitizen-tools, ] __github__ = G Lee-W __linkedin__ = l clleew __site__ = p http://wei-lee.me

Slide 6

Slide 6 text

File "weilee.py", line 1 __name__ = 李唯 / Wei Lee ^^^ SyntaxError: invalid syntax $ python weilee.py

Slide 7

Slide 7 text

Let's start with FAQ

Slide 8

Slide 8 text

Question 1 Are you an airflow committer?

Slide 9

Slide 9 text

No

Slide 10

Slide 10 text

Question 2 Are folks in your team all committers?

Slide 11

Slide 11 text

Well...You tell me. At least I'm not.

Slide 12

Slide 12 text

Question 3 You must have made significant contributions to Airflow before joining Astronomer, right?

Slide 13

Slide 13 text

This is the sole PR I made before joining.

Slide 14

Slide 14 text

Question 4 Does Astronomer have enough votes to push/block whatever feature?

Slide 15

Slide 15 text

The truth is I don't know. From what I heard, we could, but we don't do it this way

Slide 16

Slide 16 text

What is Airflow Apache Airflow™ is an open-source platform for developing, scheduling, and monitoring batch-oriented workflows. - from the Official Site

Slide 17

Slide 17 text

What Airflow is not? ❌ • The best framework to run event-based workflows infinitely. • The best streaming solution.

Slide 18

Slide 18 text

Why Airflow • dynamic • scalable • interactive through UI, CLI, REST API • extensible

Slide 19

Slide 19 text

Why Airflow A large user base

Slide 20

Slide 20 text

Why Airflow Active Development

Slide 21

Slide 21 text

Why Airflow Integrations with 3-party projects "JSCZUF "MJCBCB "NB[PO "QQSJTF "TBOB "SBOHP%# "QBDIF4QBSL "QBDIF1JOPU "QBDIF1JH "QBDIF-JWZ "QBDIF,ZMJO "QBDIF,BGLB "QBDIF)JWF "QBDIF)%'4 "QBDIF'MJOL "QBDIF%SVJE "QBDIF%SJMM "QBDIF$BTTBOESB "QBDIF#FBN %PDLFS %JTDPSE %JOHEJOH ECU %BUBEPH %BUBCSJDLT $PNNPO42- $PIFSF ,VCFSOFUFT $FMFSZ +JSB *#.$MPVEBOU )551 )BTIJDPSQ H31$ (PPHMF 'BDFCPPL '51 'BDFCPPL &YBTPM &MBTUJDTFBSDI 0QFO-JOFBHF 0QFO"* 0QFO'BB4 0%#$ /FPK .Z42- .POHP%# 8JO3. .442- 1431 .JDSPTPGU1PXFS4IFMM .JDSPTPGU"[VSF +FOLJOT +%#$ *."1 *OGMVY%# 1BQFSNJMM 1BHFSEVUZ 0SBDMF 0QTHFOJF 0QFO4FBSDI 4FHNFOU 4BNCB 4BMFTGPSDF 3FEJT 1SFTUP 1PTUHSF42- 1JOFDPOF 1H7FDUPS 5BCMFBV 5BCVMBS 44) 42-JUF 4OPXGMBLF 4.51 4MBDL 4JOHVMBSJUZ 4'51 4FOEHSJE 7FSUJDB 5SJOP 5FMFHSBN ;FOEFTL :BOEFY 8FBWJBUF

Slide 22

Slide 22 text

Why Airflow?

Slide 23

Slide 23 text

Why Airflow

Slide 24

Slide 24 text

How does Airflow work?

Slide 25

Slide 25 text

How does Airflow work? DAG Example

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

How Airflow works?

Slide 28

Slide 28 text

How does Airflow work? Trigger a DAG

Slide 29

Slide 29 text

How does Airflow work?

Slide 30

Slide 30 text

How does Airflow work? WebUI

Slide 31

Slide 31 text

How does Airflow work? XCom

Slide 32

Slide 32 text

How does Airflow work? Components Web Server Metadata Database Scheduler Triggerer Worker DAG Processor

Slide 33

Slide 33 text

How does Airflow work? DAG authors change DAGs code Web Server Metadata Database Scheduler Triggerer Worker DAG Processor

Slide 34

Slide 34 text

How does Airflow work? Users trigger DAGs from WebUI Web Server Metadata Database Scheduler Triggerer Worker DAG Processor

Slide 35

Slide 35 text

How does Airflow work? Users trigger DAGs from WebUI Web Server Metadata Database Scheduler Triggerer Worker DAG Processor

Slide 36

Slide 36 text

How does Airflow work? Users trigger DAGs from WebUI Web Server Metadata Database Scheduler Triggerer Worker DAG Processor

Slide 37

Slide 37 text

How does Airflow work? Users trigger DAGs from WebUI Web Server Metadata Database Scheduler Triggerer Worker DAG Processor

Slide 38

Slide 38 text

How does Airflow work? Deferrable Operators Traditional Deferrable Ref: https://docs.astronomer.io/learn/deferrable-operators

Slide 39

Slide 39 text

How does Airflow work? Deferrable Operators

Slide 40

Slide 40 text

How does Airflow work? Deferrable Operators Web Server Metadata Database Scheduler Triggerer Worker DAG Processor

Slide 41

Slide 41 text

How does Airflow work? Deferrable Operators Web Server Metadata Database Scheduler Triggerer Worker DAG Processor

Slide 42

Slide 42 text

How does Airflow work? Deferrable Operators Web Server Metadata Database Scheduler Triggerer Worker DAG Processor

Slide 43

Slide 43 text

How does Airflow work? Deferrable Operators Web Server Metadata Database Scheduler Triggerer Worker DAG Processor

Slide 44

Slide 44 text

How does Airflow work? Deferrable Operators Web Server Metadata Database Scheduler Triggerer Worker DAG Processor

Slide 45

Slide 45 text

Dataset Data-aware scheduling

Slide 46

Slide 46 text

Dataset Data-aware scheduling

Slide 47

Slide 47 text

Dataset Data-aware scheduling

Slide 48

Slide 48 text

No content

Slide 49

Slide 49 text

Dataset Data-aware scheduling

Slide 50

Slide 50 text

Dataset Data-aware scheduling

Slide 51

Slide 51 text

Dataset Data-aware scheduling

Slide 52

Slide 52 text

Dataset Data-aware scheduling

Slide 53

Slide 53 text

Dataset Data-aware scheduling

Slide 54

Slide 54 text

No content

Slide 55

Slide 55 text

Taskflow a cleaner way to write DAG

Slide 56

Slide 56 text

Upcoming things

Slide 57

Slide 57 text

Hybrid Execution

Slide 58

Slide 58 text

DAG Versioning (?)

Slide 59

Slide 59 text

Astronomer products

Slide 60

Slide 60 text

Deprecating

Slide 61

Slide 61 text

Deprecating (?)

Slide 62

Slide 62 text

Ask-Astro

Slide 63

Slide 63 text

Ask-Astro Slack bot in Airflow slack

Slide 64

Slide 64 text

astronomer-cosmos

Slide 65

Slide 65 text

astro-cli

Slide 66

Slide 66 text

astro-cli $ astro dev start

Slide 67

Slide 67 text

Astronomer Click "Get Started Free"!

Slide 68

Slide 68 text

Upcoming evens

Slide 69

Slide 69 text

Airflow Taipei Meetup March 9th @ Dcard

Slide 70

Slide 70 text

Remember I mentioned I'm a ...

Slide 71

Slide 71 text

Maintainer of commitizen-tools

Slide 72

Slide 72 text

Volunteer of PyCon Taiwan

Slide 73

Slide 73 text

BTW we also use Airflow

Slide 74

Slide 74 text

Guess who taught us Airflow

Slide 75

Slide 75 text

Link to this slide

Slide 76

Slide 76 text

No content