~/talk

JAX-RS and CDI Bike the Reactive Bridge!

Talkat Devoxx Belgium 2017 · 2017-11-06..11-10· [java, reactive-programming]
slides:none on file

JAX-RS 2.1 plus CDI 2.0 and Java 8 CompletionStage let synchronous REST code become nonblocking by replacing blocking get/callback patterns with composable futures. The client reactive invoker returns CompletionStage chains using thenApply/thenCompose/thenCombine to parallelize per-destination weather/quote calls, gather many sub-futures into one, and handle errors with exceptionally/handle/whenComplete. Server resource methods return CompletionStage or use AsyncResponse.resume so request threads free quickly. Jersey also exposes JAX-RS 2.1 reactive invoker and adapters for Guava/RxJava and supports CDI asynchronous events.

AI-written summary · about

  1. 0:00Start
  2. 3:06The Reactive Manifesto
  3. 5:18Client-Side Api of Jax-Rs
  4. 5:50Web Target
  5. 8:53Invocation Callback
  6. 12:04Using the Jax-Rs-Api
  7. 13:25Reactive Invoker
  8. 20:32Apply Method
  9. 25:16Levels of Computable Futures
  10. 28:50Execute Execution Flow
  11. 34:14End all Exception
  12. 39:07Synchronous Event
  13. 47:43The Jax-Rs Specification
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.