A Few Hours of Webhook Research

I started my day off wanting to learn more about webhooks and what drives them. This led to a rabbit hole of sending, receiving, posting, pushing, and pulling data. Then to a cool tool that explains more about building a webhook endpoint. Then back to the CLI and comparing webhooks to piping.

The term webhook has always been confusing to me and the light clicked on the moment I read the words reverse API, in this article. All a webhook boils down to is it is a custom call back function that comes over HTTP. It could be from your source code or a third party, and will push data to your endpoint when an event is triggered. According to the same article above, it is usually used for small data sets, since it is event driven you only really want to know about the event and update what is connected to that event in your data.

This line of thought led to, "why wouldn't I use an API for that", and the answer is because I do not want to continuously make repetitive calls when a webhook will let me know. With an API I would have to make the call and wait for it to be returned, while with a webhook the third party will send the data to my endpoint when something changes. That something is an event that I can select, in my case from a list of predefined events, that will push an event object to my end-point that will then parse it and keep me up to date with the data I need.

This led to Stripes webhook docs where they have an interactive custom webhook endpoint builder. It walks you through setting up the endpoint, how to handle the requests and event, then explains how to test the endpoint you built.

In this interesting article by Jeff Lindsay he compares webhooks to piping in a Unix based terminal. Instead of polling for the data from a feed, Lindsay states webhooks are the high level of equivalent of piping, you wait for data to be pushed and modify it as you see fit.

To view or add a comment, sign in

More articles by Ronnie Young

  • First steps in the course Practical Deep Learning for Coders

    First steps in the course Practical Deep Learning for Coders

    You cannot be a part of the conversation if you do not start somewhere, so this is my starting point at machine…

  • Keep on Iterating

    Keep on Iterating

    I recently met with someone who was worried about feature adoption by users, and they were worried their engineers…

  • Practicing the cat command

    Practicing the cat command

    I wanted to challenge myself to learning how to use the Unix CLI better, so I am attempting to write this whole article…

  • Migrations and throwing your plans out the window

    Migrations and throwing your plans out the window

    My-Grations: A reflection on my week 09-12-20 Written from a Sublime Text Editor A data migration is a way to update…

  • Take Pride in Your Work

    Take Pride in Your Work

    When I was younger I use to watch my dad do a lot of manual labor. He was a “Jack of all trades” and I grew up watching…

  • Practice

    Practice

    The actual practice of development is the most concise mess I have ever experienced, and that is what makes it so much…

  • On Writing

    On Writing

    I began learning how to write code because some guy I worked with said it would look good on my resume, and he was…

    2 Comments
  • Cron VS Anacron

    Cron VS Anacron

    Cron jobs and anacron jobs are both ways to tell your computer they need to run a task every X amount of time ranging…

    6 Comments
  • My First Spin Class

    My First Spin Class

    This weekend I took my first spin class and it was an amazing experience. For those who do not know, or think it's…

    1 Comment
  • Modern Banking

    Modern Banking

    I have been in banking for a little over five years now. I actually was ecstatic to get out when I left Kansas City and…

Insights from the community

Others also viewed

Explore topics