Love this one π.
Kyle teaches us about webhooks at GitHub. All the way from what a webhook is... to how to best send them/process them and the problems that come up at scale.
My favorite take aways:
- If you're processing webhooks. Before you start building, send 1 hook. Get the actual payload, put it in a fixture (or whatever you use). Then develop based on that real payload. Because we all know the docs aren't always the best.
- Sidenote: my favorite tool for inspecting webhooks is request bin: https://www.producthunt.com/tech...
- When processing webhooks, do not do the processing inline. Always enqueue a background job when receiving a webhook and then respond with a 200. This makes the response as fast as possible and will help you handle large volumes of webhooks (btw: We do this at Product Hunt, works great).
π
I learned some things on this episode AND had fun. Would cohost again!
I'm particularly interested in what the JSON API standard means for webhook design. I like the idea of merging the two and haven't seen that out in the wild yet.
PlanetScale Boost