Spring Tips: Server Sent Events (SSE) in Spring MVC and Spring WebFlux

Sdílet
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

Komentáře • 16

  • @PhilipStarritt
    @PhilipStarritt Před 7 lety +3

    Thanks Josh, really enjoyed the tutorial 👍

  • @cafeta
    @cafeta Před 7 lety +3

    Very good tutorial from the master!

  • @user-dp1xb9pl5x
    @user-dp1xb9pl5x Před 7 lety +6

    not very clear why the sink.serialize been called, would you like to give me more detail explainations,

  • @SuperDanny1016
    @SuperDanny1016 Před 7 lety +1

    Cool stuff! 👌

  • @thatguyscottcom
    @thatguyscottcom Před 7 lety

    Sigh... I have so much to learn. lol Thanks so much for the info.

  • @AnandCRockzz
    @AnandCRockzz Před 7 lety +1

    Nice one, tnq

  • @naveennishad
    @naveennishad Před 5 lety

    Is it mandatory to return SseEmitter object in rest response?

  • @dmitrykovalchuk9705
    @dmitrykovalchuk9705 Před 7 lety +2

    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?

    • @coffeesoftware
      @coffeesoftware Před 7 lety +4

      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).

    • @dmitrykovalchuk9705
      @dmitrykovalchuk9705 Před 7 lety +1

      Thanks for pretty exhaustive explanation

  • @masterubibi9218
    @masterubibi9218 Před 7 lety

    Good

  • @saadli
    @saadli Před 6 lety

    nice one. If you ever get super popular, Jesse Eisenberg will play you in a movie :P

  • @petmik5022
    @petmik5022 Před 6 lety

    talk too fast to understand, next time more slowly my brain is not robot