Skip to content

This project simplify the Server Sent Events in Spring WebFlux

Notifications You must be signed in to change notification settings

SaraKhild/sse-stream-springwebflux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Server Sent Events in Spring WebFlux


Overview

In the world of web development, real-time communication between a server and its clients is crucial.
This brings us to SSE is a standard that allows a server to push updates to a client whenever there’s new data available.

In this project, I have implemented a simple example that provides updates about the current temperature, humidity, and wind speed of the weather. These updates are sent to the client every second.


Usages

  • Spring WebFlux
  • Lombok

Architecture of the Project

1-src folder

  • EndPoint
  • Model
  • Service

2-Maven pom.xml


 <dependencies>
   		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-webflux</artifactId>
			<optional>true</optional>
		</dependency>
		<dependency>
			<groupId>org.projectlombok</groupId>
			<artifactId>lombok</artifactId>
			<optional>true</optional>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-test</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>io.projectreactor</groupId>
			<artifactId>reactor-test</artifactId>
			<scope>test</scope>
		</dependency>
 </dependencies>

Output 🤩
Weather.by.SSE.mov

About

This project simplify the Server Sent Events in Spring WebFlux

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages