Skip to content

Server-Sent-Events with spring boot and web flux between two Java services

License

Notifications You must be signed in to change notification settings

IllusiveNetworks-Labs/spring-sse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-sse

This project is an example of how to use SSE (Server-Sent-Events) between a java to java service. This can be used for example to communicate between two services, within an asynchronous manner.

The project contains two sub-projects:

  1. spring-sse-client (8080 port by default) - which exposes a "web/test" endpoint. When accessed, it starts SSE communication with the other service and prints the output to the console.
  2. spring-sse-server (8081 port by default) - which exposes a "web/sse/test" endpoint. When accessed, it starts a thread that sends a string each 1 second.

Usage

Run both server and client projects. Access the url: http://localhost:8080/web/sse-example and watch the console output.

About

Server-Sent-Events with spring boot and web flux between two Java services

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages