No description
  • Java 47.2%
  • HTML 28.5%
  • JavaScript 24.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ralph Schaer 5bc9e3b0ff upgrade
2026-10-04 10:03:55 +02:00
.mvn/wrapper upgrade 2026-05-31 15:44:09 +02:00
client upgrade 2026-10-04 10:03:55 +02:00
src upgrade 2026-09-06 21:18:54 +02:00
.gitignore upgrade 2026-09-06 21:18:54 +02:00
compose.yml initial commit 2026-04-22 10:34:29 +02:00
LICENSE initial commit 2026-04-22 10:34:29 +02:00
mvnw initial commit 2026-04-22 10:34:29 +02:00
mvnw.cmd initial commit 2026-04-22 10:34:29 +02:00
pom.xml upgrade 2026-09-25 06:37:35 +02:00
README.md upgrade 2026-09-06 21:18:54 +02:00
Taskfile.yml upgrade 2026-09-06 21:18:54 +02:00

Distributed SSE EventBus demo

This demo runs two Spring Boot nodes connected through Valkey Pub/Sub. A browser connects to both nodes and shows that an event sent to either node is delivered to clients connected to both.

Development

Install Task and Docker, then run:

task demo

Open http://localhost:5173. The task starts Valkey, both Spring Boot nodes, and the Vite development server.

Packaged application

Build a self-contained executable jar that includes the frontend:

task package
java -jar target/sse-eventbus-demo-distributed.jar

The packaged application runs one node on http://localhost:8080. Run a second jar with the node-b profile to demonstrate distribution:

java -jar target/sse-eventbus-demo-distributed.jar --spring.profiles.active=node-b

Valkey must be available on localhost:6379.

License

Code released under the Apache License.