sch39
Articles
About
ID
☾
Articles
All
spring-boot
14
go
9
go-engineering-notes
9
java-reactive-microservices-engineering-notes
7
webflux
5
apache-kafka-engineering-notes
4
grpc
3
java
3
sinks
1
+62 more
Functional Endpoints: Routes, Manual Validation, and Streaming with Sinks
Oct 2026
This article builds a movies-review-service with RouterFunction and HandlerFunction, runs Bean Validation manually because there are no annotated parameters, then broadcasts new reviews via Sinks and Server-Sent Events. Tests prove an invalid body yields 400, an unknown route yields 404, and two reviews sent after the client connects arrive in order on the SSE stream.