Server-Sent Event + Spring Boot | Part 1

Sdílet
Vložit
  • čas přidán 17. 04. 2020
  • Thanks for watching and welcome to my channel. If you liked this tutorial, make sure to subscribe for more !
    - Create an EventSource to Subscribe to Spring Boot Application endpoint
    - Create Java Sseemitter, and handle completion, errors, and timeout
    - Remove stored emitter when it's not reached anymore
    - Dispatch Events to all clients
    - Use Postman to send Rest Requests
    This tutorial is on Spring Tool a Spring eclipse Wrapper.

Komentáře • 39

  • @wiktorsadowski4797
    @wiktorsadowski4797 Před 3 lety +5

    Good job man, one of the best tutorials about SSE :D

  • @prakashkoppal2614
    @prakashkoppal2614 Před 6 měsíci +1

    Very good tutorial. Thank you so much

  • @juanpablovillegasgomez33
    @juanpablovillegasgomez33 Před 11 měsíci +1

    Great video my friend, it helped me a lot.

  • @yuktigirdhar
    @yuktigirdhar Před 3 lety +1

    Great video on sse emitters, thanks

  • @rodrigomartins9115
    @rodrigomartins9115 Před rokem +1

    Very good guy, best tutorial about sse!!!

  • @rahulmakwana663
    @rahulmakwana663 Před 2 lety +1

    Good job.Please keep posting such useful videos

    • @javagrowth6221
      @javagrowth6221  Před 2 lety +1

      Thanks for support bro inchallah new tutorials !

  • @vitamin2845
    @vitamin2845 Před 2 lety +1

    Very helpful, thanks

  • @taeyeongyoo2358
    @taeyeongyoo2358 Před 9 měsíci +1

    thank you from korea ㅎㅎㅎ

  • @user-xf4tw3pk3v
    @user-xf4tw3pk3v Před 2 měsíci +1

    How will this work in multiple pots, how this this arraylist value will be captured in another pots

  • @prasannanjaneyadachineni8570
    @prasannanjaneyadachineni8570 Před 11 měsíci +1

    Very good tutorial. Can this pattern be used for exchanging large data over http ?(instead of using kafka - as it is not forever subscription and , Instead of waiting for response on restAPI which might take long time)

  • @centurion3708
    @centurion3708 Před 3 lety +1

    I've a couple of events that should trigger different callback, but when i add more than one listener to the eventsource, only the first listener works, the other two are never trigered

  • @asadkhandadlo6572
    @asadkhandadlo6572 Před 3 lety

    I have subscribed 😇, before even watching the video

  • @englishchannel216
    @englishchannel216 Před 2 lety +1

    Is a grade video tutorials for SSE in spring. but i confused something there. We are storing SseEmitter in List and add SseEmitter object on "/subscribe". but what will happen if there are million of user subscribe the sse and List will take large memory resource until they unsubscribe SSE. or is there a way to store these List for more efficient way?

    • @javagrowth6221
      @javagrowth6221  Před 2 lety +1

      Thanks for support. If many users you have yo use kafka or rabbitmq but in my opinion you shoudlt better use kafka

  • @prakashkoppal2614
    @prakashkoppal2614 Před 6 měsíci

    If I hit from postman then only 'dispatchEvent' method is working. But If I call the same method using Kaka , it is not working. Please help me how to solve it ?

  • @kokomoko2539
    @kokomoko2539 Před 3 lety +2

    Corona is still not over :O

    • @javagrowth6221
      @javagrowth6221  Před 2 lety +1

      Hahaha in the next Tutorial we will try something to remove it !

  • @divyanshkumar3612
    @divyanshkumar3612 Před rokem +1

    Hope the event "Corona is ending ..." reaches god. ❣❣

  • @raveendras7474
    @raveendras7474 Před rokem +1

    Hi javagrowth,
    Wonderful explanation , Is SSE suitable for multi instance environment..?

    • @javagrowth6221
      @javagrowth6221  Před rokem

      Ye Sire, but i recommand Kafka :), i didn't use SSE in multi instance environment, but Kafka is Born for multi instance !

  • @kiranchoudhari81
    @kiranchoudhari81 Před 4 lety

    Can this be used to share the status of asynchronous task running in background.

    • @javagrowth6221
      @javagrowth6221  Před 2 lety

      yes but take a look at RabbitMQ and other Pub / Sub stuffs because you can't handle all on your running Spring Boot instances.

  • @hardikjotangia2642
    @hardikjotangia2642 Před 3 lety +1

    How to use SSE for windows notification?

    • @javagrowth6221
      @javagrowth6221  Před 2 lety +1

      on Windows OS ? like basic desktop notification ?
      If it's the case you have to use other environment like SWT / JFace ...

  • @JannisAdmek
    @JannisAdmek Před 3 lety +1

    I subscribed, so new videos of you can be dispatched to me ;)

    • @javagrowth6221
      @javagrowth6221  Před 2 lety

      Thanks for support bro. New tutorials are coming !

  • @Darkveiga
    @Darkveiga Před rokem +1

    21:47 😂😂

  • @abdulrahmanelrawas2029
    @abdulrahmanelrawas2029 Před rokem +2

    Good example to learn basics of Sse but it is full of worst practices. This can't be used in production.