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
2026-11-23 20:32:57 +01:00
.github Configure weekly grouped Dependabot updates 2026-10-25 09:21:36 +01:00
.mvn/wrapper upgrade maven wrapper 2026-11-23 20:32:57 +01:00
client upgrade 2026-11-14 09:51:29 +01: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 upgrade maven wrapper 2026-11-21 21:17:27 +01:00
mvnw.cmd upgrade maven wrapper 2026-11-21 21:17:27 +01:00
pom.xml upgrade 2026-11-21 20:30:09 +01: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.