Slide 1

Slide 1 text

WeB HookS

Slide 2

Slide 2 text

The api StrikeS bacK

Slide 3

Slide 3 text

Phil Nash @philnash http://philna.sh philnash@twilio.com

Slide 4

Slide 4 text

WeB HookS

Slide 5

Slide 5 text

Three episodes •  Webhooks - A New Hope •  The API Strikes Back •  Return of the Developer

Slide 6

Slide 6 text

WEBHOOKS A NEW HOPE

Slide 7

Slide 7 text

WHA T A RE WEBHOOKS?

Slide 8

Slide 8 text

A long time ago, in a galaxy far, far away...

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

I COULD TELL YOU...

Slide 12

Slide 12 text

(+ 48) 732 483 234

Slide 13

Slide 13 text

WEBHOOKS

Slide 14

Slide 14 text

QUESTIONS?

Slide 15

Slide 15 text

Webhooks everywhere •  Twilio •  GitHub •  Braintree •  MailChimp •  HipChat •  SendGrid •  DropBox •  Slack •  ...and many more

Slide 16

Slide 16 text

WORKING WITH WEBHOOKS

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

NGROK

Slide 19

Slide 19 text

BECOMING A N A PI

Slide 20

Slide 20 text

Becoming an A PI •  Security •  Performance •  Idempotence

Slide 21

Slide 21 text

SECURITY

Slide 22

Slide 22 text

USE HTTPS

Slide 23

Slide 23 text

WEBHOOK PROVIDERS SIGN THEIR REQUESTS

Slide 24

Slide 24 text

VERIFY THE SIGNA TURE

Slide 25

Slide 25 text

SOME WEBHOOK PROVIDERS DON' T SIGN THEIR REQUESTS

Slide 26

Slide 26 text

¯ \_( ツ )_/¯

Slide 27

Slide 27 text

SHA RE SECRETS

Slide 28

Slide 28 text

PERFORMA NCE

Slide 29

Slide 29 text

BE GOOD TO YOURSELF A ND THE WEBHOOK

Slide 30

Slide 30 text

DELA Y LONG RUNNING TA SKS

Slide 31

Slide 31 text

IDEMPOTENCE

Slide 32

Slide 32 text

F( F( X)) = F( X)

Slide 33

Slide 33 text

RETRIES A RE WONDERFUL BUT...

Slide 34

Slide 34 text

SENDING HUNDREDS OF SMS IS NOT

Slide 35

Slide 35 text

Webhooks •  Use Webhooks instead of polling •  Use ngrok, or similar, for development •  Secure your Webhooks! •  Respond quickly to Webhooks •  Idempotence (idempotence, idempotence...)

Slide 36

Slide 36 text

Image credits •  Polling Station - secretlondon123

Slide 37

Slide 37 text

Help me! On a scale of 0 to 10, how likely is it that you would recommend this talk to a friend or colleague? (+48) 732 483 234

Slide 38

Slide 38 text

Thanks! @philnash http://philna.sh philnash@twilio.com On a scale of 0 to 10, how likely is it that you would recommend this talk to a friend or colleague? (+48) 732 483 234