2 ms·
For developers/engineers who have never seen it, SSE is a nice way to get going with streaming (slightly different from long polling, it's server-push) easily -
by hardwaresofton 5y ago
For developers/engineers who have never seen it, SSE is a nice way to get going with streaming (slightly different from long polling, it's server-push) easily -- there's no need to jump to tools like websocket/gRPC streaming if you don't need to:
https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#sending_events_from_the_server https://developer.mozilla.org/en-US/docs/Web/API/Server-sent...
Obviously long polling will work in more places but SSE is great if the server side needs to do the pushing.
Also for syncing stripe in particular you might want to check out the work done by Supabase (still experimental):
https://github.com/supabase/stripe-sync-engine https://github.com/supabase/stripe-sync-engine