JAX-RS 2.1 Reloaded
summary
JAX-RS 2.1 adds concrete async/reactive pieces: direct support for CompletionStage (JDK 8) and an extension point to plug libraries like RxJava, a new client/server SSE API with SseEventSource and SseBroadcaster types, and a proposal to enable Flow-based non-blocking I/O (publisher/subscriber/processor model) for streaming collections and large payloads. Existing StreamingOutput stays blocking so the new flow types target real NIO integration; work targets a public release around mid‑2017 with adapters for third‑party flow types.
AI-written summary · about
chapters (24)
- 0:00Introduction
- 1:42Reactive Extensions
- 3:20Future
- 7:09Use Cases
- 7:39Completion Stage
- 9:44Registration
- 11:11Summary
- 12:50ClientSent Events
- 14:26SSC Event Sync
- 16:10SSC Broadcaster
- 18:36SSC Summary
- 18:57Other Questions
- 19:35Nonblocking IO
- 20:27StreamingOutput
- 21:32StreamOutput Extender
- 22:27Limitations
- 23:28Flows
- 27:24IO Example
- 30:19Processor
- 31:51Integration
- 35:46Vocabulary
- 36:59API
- 37:35IO Summary
- 38:56Conclusion
related talks
52mJAX-RS and CDI Bike the Reactive Bridge!
43mRESTEasy beyond JAX-RS 2.1: reactive, non-blocking IO and more
17mJAX-RS 2.1: Preview and Practical Insights on the New REST Service APIs
01h 01mReactive web services
01h 01mThirst Quenching Streams for the Reactive Mind
35mFlow and the Future of Reactive Systems on the JVM
47mReactive Spring
24mBringing Reactive Programming to Java and Microservices
