Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 769
محمد قاسم Avatar asked Oct 25 '25 06:10

محمد قاسم


1 Answers

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.

like image 143
Michael Quad Avatar answered Oct 28 '25 04:10

Michael Quad



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!