Save 37% off PRO during our Black Friday Sale! »

Webhooks - The API strikes back

Webhooks - The API strikes back

8ec1383b240b5ba15ffb9743fceb3c0e?s=128

Phil Nash

March 23, 2015
Tweet

Transcript

  1. WeB HookS

  2. The api StrikeS bacK

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

  4. WeB HookS

  5. WEBHOOKS

  6. Webhooks •  What are webhooks? •  Developing with webhooks •

     Webhook best Practices
  7. WHAT ARE WEBHOOKS?

  8. I COULD TELL YOU...

  9. +447903517178

  10. WEBHOOKS

  11. QUESTIONS?

  12. Webhooks everywhere •  Twilio •  GoCardless •  GitHub •  Mandrill

    •  Stripe •  MailChimp •  HipChat •  SendGrid •  DropBox •  Slack
  13. WHY WEBHOOKS?

  14. None
  15. WORKING WITH WEBHOOKS

  16. None
  17. NGROK

  18. BECOMING AN API

  19. Becoming an API •  Security •  Performance •  Idempotence

  20. SECURITY

  21. None
  22. USE HTTPS

  23. WEBHOOK PROVIDERS SIGN THEIR REQUESTS

  24. VERIFY THE SIGNATURE

  25. SOME WEBHOOK PROVIDERS DON'T SIGN THEIR REQUESTS

  26. ¯\_( ツ)_/¯

  27. SHARE SECRETS

  28. PERFORMANCE

  29. BE GOOD TO YOURSELF AND THE WEBHOOK

  30. DELAY LONG RUNNING TASKS

  31. IDEMPOTENCE

  32. F(F(X)) = F(X)

  33. RETRIES ARE WONDERFUL BUT...

  34. SENDING HUNDREDS OF SMS IS NOT

  35. Webhooks •  Use webhooks instead of polling •  Use ngrok,

    or similar, for development •  Secure your webhooks! •  Respond quickly to webhooks •  Idempotence (idempotence, idempotence...)
  36. None
  37. The modern communications conference http:/ /signal.twilio.com Get 20% off with

    code NASH20
  38. Image credits •  Polling Station - secretlondon123 •  Stevie Graham

    - Stevie Graham
  39. 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
  40. 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