Загрузка...

What is webhook? | How webhook works #webhook #coding #systemdesign #programming

What is a Webhook?

A Webhook is an event-based HTTP callback that automatically sends real-time data from one application to another when a specific event occurs.

🔄 Webhook Flow Explained Step by Step

1️⃣ Client/Frontend – User initiates an action (like making a payment from a web or mobile app).

2️⃣ Backend (API Server) – The frontend sends a purchase request to your backend server.

3️⃣ Stripe Server (Payment Processing) – Your backend calls Stripe API to process the payment.

4️⃣ Event Triggered – After payment success or failure, Stripe creates an event internally.

5️⃣ Webhook Call (HTTP POST) – Stripe sends that event data to your webhook endpoint (e.g., /api/webhook).

6️⃣ Your Server (Webhook Handler) – Your backend receives the webhook request and verifies the event signature.

7️⃣ Business Logic Execution – Based on the event type (payment success, failure, refund), your server runs logic.

8️⃣ Action Layer – The system updates the database, sends email confirmation, or triggers notifications.

#systemdesigninterview #webhook #backend #fullstackdeveloper #codingreels #codingshorts #javascripttutorial #webdevelopment #programming

Видео What is webhook? | How webhook works #webhook #coding #systemdesign #programming канала CodeWithVivek
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять