r/java • u/sdeleuze • 23h ago
Stream-Source: Virtual-Thread Friendly Data Streaming
The Spring team is pleased to a announce stream-source, a small library that provides streaming APIs in a Virtual-Thread friendly way. It provides facilities to publish and consume streams in an imperative way, builtin adapters to/from Reactive Streams, and has only 2 dependencies: JSpecify and SLF4J, so it is usable by the wider JVM ecosystem.
https://spring.io/blog/2026/12/01/stream-source-announcement
39
Upvotes
3
u/nekokattt 19h ago
how do the adapters to reactive streams work if you do not have a dependency on any reactive stream library, out of curiosity?
Or do you just mean mandatory dependencies
3
u/kevinb9n 13h ago
Congrats!
6
u/t3mp-- 23h ago
Molto bene!
1
u/sdeleuze 16h ago
Related MCP Java SDK update : https://github.com/modelcontextprotocol/java-sdk/issues/778#issuecomment-7319916498
-2
u/neopointer 19h ago
Looks like they learned from their mistake with reactive stack. Looking forward to it