Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Webhooks - The API strikes back
Phil Nash
March 23, 2015
Programming
1
150
Webhooks - The API strikes back
Phil Nash
March 23, 2015
Tweet
Share
More Decks by Phil Nash
See All by Phil Nash
Four steps from JavaScript to TypeScript
philnash
2
130
JavaScript Apps Go Intl - GIDS Live 2021
philnash
1
46
You're on Mute! WebRTC and our Lives on Screen - GIDS Live 2021
philnash
1
48
Better API DX with a CLI - APIdays Jakarta
philnash
0
140
The trouble with webhooks - at Apidays Live Hong Kong
philnash
2
49
Four steps from JavaScript to TypeScript
philnash
0
190
Fantastic passwords and where to find them - at NoRuKo
philnash
27
1.6k
The trouble with webhooks - at APIdays Singapore
philnash
0
93
What's going on with Project Fugu? at DevTalks Reimagined
philnash
0
130
Other Decks in Programming
See All in Programming
ゴーファーくんと辿るプログラミング言語の歴史/history-of-programming-languages-with-gopher
iwasiman
11
5k
Scaling Productivity- How we have improved our dev experience
sockeqwe
1
120
Efficient UI testing in Android
alexzhukovich
1
120
Pluggable Storage in PostgreSQL
sira
1
190
FutureCon 2022 FlutterアプリのPerformance測定
harukafujita
0
140
VIMRC 2022
achimnol
0
130
パラメタライズドテスト
ledsun
0
220
SGGとは
inoue2002
0
430
WindowsコンテナDojo: 第4回 Red Hat OpenShift Localを使ってみよう
oniak3ibm
PRO
0
180
ストア評価「2.4」だったCOCOARアプリを1年で「4.4」になんとかした方法@Cloud CIRCUS Meetup #2
1901drama
0
180
Lookerとdbtの共存
ttccddtoki
0
630
20220706_Google Apps Scriptを実演で学ぶ~ GAS × Slack ~
apachan
2
620
Featured
See All Featured
Infographics Made Easy
chrislema
233
17k
Rebuilding a faster, lazier Slack
samanthasiow
62
7.3k
A designer walks into a library…
pauljervisheath
196
16k
WebSockets: Embracing the real-time Web
robhawkes
57
5.5k
Building an army of robots
kneath
298
40k
A Tale of Four Properties
chriscoyier
149
21k
The Straight Up "How To Draw Better" Workshop
denniskardys
225
120k
Why You Should Never Use an ORM
jnunemaker
PRO
47
7.6k
GitHub's CSS Performance
jonrohan
1020
420k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
14
3.8k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
151
13k
Visualization
eitanlees
125
12k
Transcript
WeB HookS
The api StrikeS bacK
Phil Nash @philnash http:/ /philna.sh philnash@twilio.com
WeB HookS
WEBHOOKS
Webhooks • What are webhooks? • Developing with webhooks •
Webhook best Practices
WHAT ARE WEBHOOKS?
I COULD TELL YOU...
+447903517178
WEBHOOKS
QUESTIONS?
Webhooks everywhere • Twilio • GoCardless • GitHub • Mandrill
• Stripe • MailChimp • HipChat • SendGrid • DropBox • Slack
WHY WEBHOOKS?
None
WORKING WITH WEBHOOKS
None
NGROK
BECOMING AN API
Becoming an API • Security • Performance • Idempotence
SECURITY
None
USE HTTPS
WEBHOOK PROVIDERS SIGN THEIR REQUESTS
VERIFY THE SIGNATURE
SOME WEBHOOK PROVIDERS DON'T SIGN THEIR REQUESTS
¯\_( ツ)_/¯
SHARE SECRETS
PERFORMANCE
BE GOOD TO YOURSELF AND THE WEBHOOK
DELAY LONG RUNNING TASKS
IDEMPOTENCE
F(F(X)) = F(X)
RETRIES ARE WONDERFUL BUT...
SENDING HUNDREDS OF SMS IS NOT
Webhooks • Use webhooks instead of polling • Use ngrok,
or similar, for development • Secure your webhooks! • Respond quickly to webhooks • Idempotence (idempotence, idempotence...)
None
The modern communications conference http:/ /signal.twilio.com Get 20% off with
code NASH20
Image credits • Polling Station - secretlondon123 • Stevie Graham
- Stevie Graham
Help me! On a scale of 0 to 10, how
likely is it that you would recommend this talk to a friend or colleague? +447903517178
Thanks! @philnash http:/ /philna.sh philnash@twilio.com Help me! On a scale
of 0 to 10, how likely is it that you would recommend this talk to a friend or colleague? +447903517178