Web Hook

Introduction

  • It is in a publish-and-subscribe format

  • Client is required to enter endpoint url to web hook provider in order to subscribe the event

  • When there is a event, the provider will send the post request to the endpoint actively in order to publish the new message to the client

Web hook vs API

  • It can be treated as API in reverse, the server send to client actively , instead of client make a request to server

  • Once subscribed to provider, the provider will keep sending event to client continuously, instead of client send the request to server with constant time interval which is called polling

Last updated

Was this helpful?