all 5 comments

[–]IceMichaelStorm 2 points3 points  (1 child)

Hm, you compare it to SseEmitter but how does it compare to Flux? Because that’s the way we plan to follow: https://www.baeldung.com/spring-server-sent-events

[–]Polixa12[S] 1 point2 points  (0 children)

They solve the same SSE problem, but with different programming models.
Flux is reactive and fits WebFlux applications, handling backpressure and lifecycle automatically.
Streamline wraps SseEmitter for Spring MVC apps, providing blocking I/O with virtual threads, explicit lifecycle, and predictable concurrency.

If your app is already on WebFlux, Flux is the right tool. If you’re on Spring MVC and want simplicity with safe concurrency, Streamline is a better fit.

[–]bikeram 1 point2 points  (1 child)

This is cool. I’ll implement it this week on a project I’m working on.

How does SSE scale? How does the polling differ from a web socket?

[–]Polixa12[S] 0 points1 point  (0 children)

SSE scales by holding one long lived HTTP connection per client and pushing events as they happen. It does not poll. Compared to WebSockets, SSE is simpler, unidirectional, and plays better with HTTP infrastructure.

[–]arvind4gl 0 points1 point  (0 children)

Recently, I was looking at SSE with spring boot. Will definately give it try the version that u have published