demo-sse-spring-boot icon indicating copy to clipboard operation
demo-sse-spring-boot copied to clipboard

Spring Boot (1.3.0.M1) Demo for Server Sent Events

Simple Spring SSE Demo

SSE is for Server Sent Events.

Requirements

  • jdk8
  • Maven3

Run

mvn spring-boot:run

Open localhost:8080

Takeaways

  • the timeout for the SSE - Emitters needs to be raised.
  • emitters need to be manually removed when the listener dies or on completion
  • SSE with Spring Boot is practically a no-brainer