Spring Tips: Server Sent Events (SSE) in Spring MVC and Spring WebFlux
Vložit
- čas přidán 2. 07. 2024
- Speaker: Josh Long
/ starbuxman
Hi Spring fans! in this installment, we'll look at server sent events as implemented with Spring MVC and Spring WebFlux, the reactive web stack in the coming Spring Framework 5. - Věda a technologie
Thanks Josh, really enjoyed the tutorial 👍
Very good tutorial from the master!
not very clear why the sink.serialize been called, would you like to give me more detail explainations,
Cool stuff! 👌
Sigh... I have so much to learn. lol Thanks so much for the info.
Nice one, tnq
Is it mandatory to return SseEmitter object in rest response?
Thank you for this tip, Josh! I have a question regarding second part of the video. Do we really need to specify which mime type must be produced by request handler? It seems to me that spring should treat request handler that has Flux as a return type as text/event-stream by default. Is that a correct assumption?
Thanks for watching! It should be specified because if you return a Flux without a mimetype Spring WebFlux treats it like returning a Collection - it'll just visit and emit every record as a REST response (which is a different protocol than SSE).
Thanks for pretty exhaustive explanation
Good
nice one. If you ever get super popular, Jesse Eisenberg will play you in a movie :P
talk too fast to understand, next time more slowly my brain is not robot