What's the difference between webhook and sending an HTTP request to an endpoint exposed by client
Hi I'm learning about building web api at the moment. Came across this concept called webhook and is now confused.
What's the difference between webhook and sending an HTTP request to an endpoint exposed by client?
Theoretically I can keep a list of client endpoints and their interested events in the databse. When an event happens (eg. placing down an order), I can just send a HTTP request to all the clients that subscribe to this event. Why on earth do I need a webhook?
What's the difference between webhook and sending an HTTP request to an endpoint exposed by client?
Theoretically I can keep a list of client endpoints and their interested events in the databse. When an event happens (eg. placing down an order), I can just send a HTTP request to all the clients that subscribe to this event. Why on earth do I need a webhook?
