Ruby on Rails Podcast - Memorable Tips for Working Remotely
p/ruby-on-rails-podcast-memorable-tips-for-working-remotely
Learn to be an effective remote team member, and how to bui…
Mike Coutermarsh
Ruby on Rails Podcast - 205: Webhooks 101 & 202 β€” Implementing & scaling webhooks at GitHub
Featured
2
β€’
Replies
Mike Coutermarsh
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). 😎
Sean Devine
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.