I do not understand the real difference between webhooks and traditional pooling of endpoints because to me webhooks still require pooling.
**Traditional case: Client asks, server tells ** In a package delivery application, the authenticated user calls server endpoints to check the status of the package delivery, this happens at specific frequency.
** Webhooks case: Server tells, client does ** In a package delivery application:
Watched youtube videos Asked chatgpt
I expected clarity got complexity instead
A webhook is a way for your backend to get notify when an operation is completed. you provide the webhook API with a webhook URL , and then the API sends the data to that URL once the operation happend.
the frontend doesnt have direct way to receive these notifications, because webhooks are HTTP requests sent to a server endpoint. If you want the client to know about the change in real time without pooling your backend must forward the update using techniques like WebSockets, Server-Sent Events (SSE)