Spring Boot Server Sent Events Example | Unidirectional Streams | Tech Primers

Sdílet
Vložit
  • čas přidán 2. 07. 2024
  • This video covers the implementation of Server Sent Events using Spring Boot APIs. There are 2 ways in which we can achieve them, both are shown here.
    🔗Github link for code: github.com/TechPrimers/server...
    📌 Chapter Timestamps
    ====================
    00:00 - Intro & Setting context
    00:34 - Sprint Boot Implementation
    09:22 - Output using CURL
    10:37 - Output using browser
    📌 Previous Videos
    =================
    🔗 HTTP Long Polling vs Server Sent Events vs Websockets: • HTTP Long Polling vs S...
    🔗 Websockets example using Spring Boot: • WebSockets using Sprin...
    Join this channel by contributing to the community:
    / @techprimers
    📌 Related Links
    =============
    🔗 Terraform Getting Started: • Terraform Primer | Get...
    🔗 Terraform Architecture: • Terraform Primer | Ter...
    🔗 Terraform setup: www.terraform.io/downloads.html
    🔗 Github code: github.com/TechPrimers/terraf...
    🔗 Terraform Providers: registry.terraform.io/browse/...
    📌 Related Playlist
    ================
    🔗 Terraform Playlist - • Terraform Primers
    🔗Spring Boot Primer - • Spring Boot Primer
    🔗Spring Cloud Primer - • Spring Cloud Primer
    🔗Spring Microservices Primer - • Spring Microservices P...
    🔗Spring JPA Primer - • Spring JPA Primer
    🔗Java 8 Streams - • Java 8 Streams
    🔗Spring Security Primer - • Spring Security Primer
    💪 Join TechPrimers Slack Community: bit.ly/JoinTechPrimers
    📟 Telegram: t.me/TechPrimers
    🧮 TechPrimer HindSight (Blog): / techprimers
    ☁️ Website: techprimers.com
    💪 Slack Community: techprimers.slack.com
    🐦 Twitter: / techprimers
    📱 Facebook: TechPrimers
    💻 GitHub: github.com/TechPrimers or techprimers.github.io/
    🎬 Video Editing: FCP
    ---------------------------------------------------------------
    🔥 Disclaimer/Policy:
    The content/views/opinions posted here are solely mine and the code samples created by me are open sourced.
    You are free to use the code samples in Github after forking and you can modify it for your own use.
    All the videos posted here are copyrighted. You cannot re-distribute videos on this channel in other channels or platforms.
    #ServerSentEvents #SpringBoot #TechPrimers
  • Jak na to + styl

Komentáře • 23

  • @prabhakarkevat6846
    @prabhakarkevat6846 Před rokem +1

    Excellent video

  • @aswarthanarayanareddyb176

    Server Sent Events can be very helpful for the building stock pricing applications. thanks

    • @TechPrimers
      @TechPrimers  Před rokem

      Yes, you are right Aswarth. i have shown how Zerodha (Trading application) uses it my previous comparison video

  • @JaNaMSoNi
    @JaNaMSoNi Před rokem +1

    Thank you

  • @girishanker3796
    @girishanker3796 Před 4 měsíci +1

    Informative

  • @ngonimugandani4504
    @ngonimugandani4504 Před 2 měsíci

    great staff, so if we were getting the data from say a database that is being continuously inserted data by some application, when we reach completed in our stream, and new data gets inserted what happens?

  • @t0khyo
    @t0khyo Před 4 měsíci

    how can i make a notification service in spring? it looks like sse is perfect for this but i still cannot figure out how a full service will look like

  • @user-zu1is4yr1g
    @user-zu1is4yr1g Před 5 měsíci

    Quick question. Is this applicable in non reactive paradigm where I am not going to use FLux?

  • @yogeshchaudhari9971
    @yogeshchaudhari9971 Před rokem +1

    Hi dear... I follow all ur knowledge videos since years and they are best....Can you please make some tutorials on elastic search programming with java... Like how to retrieve... Update... Delete... Load data in elastic using java program.....
    Elastic is very much used in IT this days

    • @TechPrimers
      @TechPrimers  Před rokem +1

      Hi Yogesh thank you. there is a series on that. Can you check it out. Spring Data Elasticsearch

    • @yogeshchaudhari9971
      @yogeshchaudhari9971 Před rokem

      @@TechPrimers thanks a lot Ajay... I found it .... Appreciate u for all your knowledge sharing....

  • @hasinuralam1552
    @hasinuralam1552 Před rokem

    Hi, can we implement this while fetching data from relational database or do we need to use R2DBC driver as well, it would be really helpful if you please make server side streaming video with any relational databases, thank you

  • @saurabh9446
    @saurabh9446 Před rokem +1

    Would be helpful if you share nodejs example

    • @TechPrimers
      @TechPrimers  Před rokem

      Its almost similar to this one. Take a look at this sample - www.digitalocean.com/community/tutorials/nodejs-server-sent-events-build-realtime-app

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

    But how can I integrate this with a client like a ReactJS frontend? I am confused. What benefit are we having after using spring webflux like this? Can someone help me understand, please?

    • @Majko61
      @Majko61 Před 5 měsíci

      I think that SSE should be used together with rest mapping and no as webflux..

  • @kgdsharma
    @kgdsharma Před 8 měsíci +1

    Hi @Tech Primers, Great video. Hey, I am wondering if you have thoughts around how does SSE performs with a huge volume when server end up sending multiple events to many clients at the sametime? Perhaps, a comparison between SSE and Websocket will be a good one

  • @diogennesthesinope61
    @diogennesthesinope61 Před rokem

    Thanks. Why not use boot3?

    • @TechPrimers
      @TechPrimers  Před rokem

      Spring Boot 3 videos are coming.. I just wanted Spring Boot 3 to be GAed and run for couple of months before i upgrade. Any specific video you are looking for with Spring Boot 3?

    • @diogennesthesinope61
      @diogennesthesinope61 Před rokem

      @@TechPrimers Thanks. Maybe on spring cloud stream, kafka and this topic. U made a great video on kafka streams but now, maybe an upgrade to boot3 will be great?

    • @TechPrimers
      @TechPrimers  Před rokem

      sure. will do it. thank you