Server-Sent Event + Spring Boot | Part 1
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.
Good job man, one of the best tutorials about SSE :D
Welcome Sire, it's a pleasure.
Very good tutorial. Thank you so much
Great video my friend, it helped me a lot.
Great video on sse emitters, thanks
Welcome Sir !
Very good guy, best tutorial about sse!!!
Thanks for your feedback !
Good job.Please keep posting such useful videos
Thanks for support bro inchallah new tutorials !
Very helpful, thanks
Thanks for support friend !
thank you from korea ㅎㅎㅎ
How will this work in multiple pots, how this this arraylist value will be captured in another pots
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)
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
Hey better use kafka for real World usecase
I have subscribed 😇, before even watching the video
Thanks for support Sire !
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?
Thanks for support. If many users you have yo use kafka or rabbitmq but in my opinion you shoudlt better use kafka
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 ?
Corona is still not over :O
Hahaha in the next Tutorial we will try something to remove it !
Hope the event "Corona is ending ..." reaches god. ❣❣
Thanks for your feedback !
Hi javagrowth,
Wonderful explanation , Is SSE suitable for multi instance environment..?
Ye Sire, but i recommand Kafka :), i didn't use SSE in multi instance environment, but Kafka is Born for multi instance !
Can this be used to share the status of asynchronous task running in background.
yes but take a look at RabbitMQ and other Pub / Sub stuffs because you can't handle all on your running Spring Boot instances.
How to use SSE for windows notification?
on Windows OS ? like basic desktop notification ?
If it's the case you have to use other environment like SWT / JFace ...
I subscribed, so new videos of you can be dispatched to me ;)
Thanks for support bro. New tutorials are coming !
21:47 😂😂
Good example to learn basics of Sse but it is full of worst practices. This can't be used in production.
Thanks for your feedback !