Slide 1

Slide 1 text

Pipeline Architectures

Slide 2

Slide 2 text

@mheap

Slide 3

Slide 3 text

Pipelines

Slide 4

Slide 4 text

Tea/Coffee

Slide 5

Slide 5 text

Waterfall

Slide 6

Slide 6 text

Manufacturing

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

Engine: 20 mins Frame: 40 mins Windows: 10 mins

Slide 9

Slide 9 text

1x Engine: 20 mins 1x Frame: 40 mins 1x Windows: 10 mins

Slide 10

Slide 10 text

2x Engine: 20 mins 4x Frame: 40 mins 1x Windows: 10 mins

Slide 11

Slide 11 text

Code Pipelines

Slide 12

Slide 12 text

This is a unix system I know this

Slide 13

Slide 13 text

cat attendees.txt

Slide 14

Slide 14 text

cat attendees.txt | grep Michael

Slide 15

Slide 15 text

cat attendees.txt | grep Michael > michaels.txt

Slide 16

Slide 16 text

cat attendees.txt | grep Michael | sort > michaels.txt

Slide 17

Slide 17 text

Write programs that do one thing and do it well. Write programs to work together. Write programs to handle text streams, because that is a universal interface.

Slide 18

Slide 18 text

read(file.txt). map(u => return u.name). filter(n => return n == “michael”)

Slide 19

Slide 19 text

read(file.txt). map(u => return u.name). filter(n => return n == “michael”)

Slide 20

Slide 20 text

read(file.txt). map(u => return u.name). filter(n => return n == “michael”)

Slide 21

Slide 21 text

producer.go channel <- sum foo.go val <- channel

Slide 22

Slide 22 text

app.php $bus->handle( new UserRegisteredEvent )

Slide 23

Slide 23 text

Input Processing Output

Slide 24

Slide 24 text

Controller Model View

Slide 25

Slide 25 text

Action Domain Responder

Slide 26

Slide 26 text

POST /foo Domain echo $twig->render()

Slide 27

Slide 27 text

$ php foo.php ‘bar’ Domain echo cli_output($output);

Slide 28

Slide 28 text

zmqpp zmqpp

Slide 29

Slide 29 text

zmqpp redis-pipe

Slide 30

Slide 30 text

nsq nsq

Slide 31

Slide 31 text

Human Pipelines

Slide 32

Slide 32 text

+ =

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

Data ??? Profit!

Slide 35

Slide 35 text

Data Profit!

Slide 36

Slide 36 text

Data Profit!

Slide 37

Slide 37 text

Data Profit!

Slide 38

Slide 38 text

Data Profit! JSON JSON JSON JSON

Slide 39

Slide 39 text

Data Profit! JSON JSON JSON JSON

Slide 40

Slide 40 text

Data Profit! JSON JSON JSON JSON ? ?

Slide 41

Slide 41 text

Data Profit! PHP PHP C++

Slide 42

Slide 42 text

Data Profit! PHP Golang C++

Slide 43

Slide 43 text

Data Profit! PHP Golang Michael

Slide 44

Slide 44 text

Building Pipelines

Slide 45

Slide 45 text

Data-Driven

Slide 46

Slide 46 text

Demand-Driven

Slide 47

Slide 47 text

Data-Driven

Slide 48

Slide 48 text

push/pull

Slide 49

Slide 49 text

Back Pressure

Slide 50

Slide 50 text

pub/sub

Slide 51

Slide 51 text

Sequence Numbers

Slide 52

Slide 52 text

Demand-Driven

Slide 53

Slide 53 text

Unique Jobs

Slide 54

Slide 54 text

Transport

Slide 55

Slide 55 text

Serialization

Slide 56

Slide 56 text

Error Handling

Slide 57

Slide 57 text

Testing Pipelines

Slide 58

Slide 58 text

Pros/Cons

Slide 59

Slide 59 text

Examples

Slide 60

Slide 60 text

https://www.flickr.com/photos/neotsn/2246759100/ https://www.flickr.com/photos/theenmoy/15255488518 https://www.flickr.com/photos/stuckincustoms/5109788502 https://www.flickr.com/photos/danielfoster/4725849931 https://www.flickr.com/photos/mzmo/8666989650 https://www.flickr.com/photos/usacehq/5529362681 https://www.flickr.com/photos/alpha_auer/5068482201/ https://www.flickr.com/photos/109144586@N08/14863759614/ https://www.flickr.com/photos/94418464@N08/9007117038 https://www.flickr.com/photos/swamibu/2868288357/ https://www.flickr.com/photos/sepehrehsani/5766453552/ https://www.flickr.com/photos/scubasteveo/296747958/ https://www.flickr.com/photos/56218409@N03/15371262455/ https://www.flickr.com/photos/jvk/4417106 https://www.flickr.com/photos/13523064@N03/14448815581 https://www.flickr.com/photos/jamesshade/473206000 https://www.flickr.com/photos/albertogp123/5843577306/ https://www.flickr.com/photos/dpstyles/4835354126/

Slide 61

Slide 61 text

Questions? @mheap joind.in/15428