Stream API
- Spring Boot 2.0.0
- Spring WebFlux
- Server-Sent Events (SSE)
- Functional Style Routes
- Use of Server-Sent Events (SSE) rendered in HTML by Thymeleaf from a reactive data stream.
- Use of Server-Sent Events (SSE) rendered in JSON by Spring WebFlux from a reactive data stream.
- Reactive Netty as a server
- Dockerized - Docker deployment
use
./gradlew
instead ofgradle
if you didn't installedgradle
gradle stream-service:bootRun
# run with `docker` profile.
SPRING_PROFILES_ACTIVE=docker gradle stream-service:bootRun
gradle stream-service:test
gradle stream-service:build -x test
# continuous build with `-t`.
gradle -t stream-service:build
# build docker image
gradle stream-service:docker -x test
deploying app to Cloud
# tag and puch to cassandra-data-service
docker login
docker push
http://localhost:8082/sse/quotes
http://localhost:8082/sse/fibonacci
http://localhost:8082/sse/logs
http://amritb.github.io/socketio-client-tool/
Connect URL: http://localhost:8082/websocket/echo [TODO]