Member-only story

Designing a scalable Webhook using AWS Serverless Stack

Vinod Kumar Nair
4 min readMar 3, 2024

We have often used Webhook a lot during our interactions with the systems unknowingly but do we know what exactly a Webhook is and how it is better than other system design patterns like short/long polling?

Webhook

A Webhook is an HTTP/S call that gets triggered between the two systems where the source system triggers a specific event that leads to the notification of the targeted application. A very common example is when you swipe your credit card at the merchant for a Point of Sale (POS) transaction, you receive a notification in your phone about the transaction that you made.

A typical point-of-sale transaction using a Webhook Pattern

Just think of the same scenario of using a Point of Sale (POS) transaction using the concept of a short/long polling pattern where the mobile application or client (in this above example) has to constantly poll the status of your bank account frequently to see any latest updates for any transaction. This leads to the wastage of computing power costing huge money to the company.

Benefits of using Webhooks

  1. Realtime communication
  2. Loose-coupled architecture

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Vinod Kumar Nair
Vinod Kumar Nair

Written by Vinod Kumar Nair

Cloud Architect (AWS) | Loves Kubernetes | Blogger | SaaS | Open Source Contributor | Cyclist

No responses yet

Write a response

Recommended from Medium

Lists

See more recommendations