webhooksserver-side

What is the difference between server side event and Web hook [Reverse API]?


What is the difference between Server side events SSE and Web hook?


Solution

  • The difference is:

    1) using SSE you pull updates to your Front-End.

    2) using Web-hook you pull updates to your Back-End.

    The first is simplier, easier to implement and manage. The second is more secure/reliable.

    Also, some server may implement long-polling, which will delay response until new data arrives, so it might be used instead of SSE.