~/talk

New in Spring 5: Functional Web Framework

Talkat Spring I/O 2017 · 2017-05-18..05-19· [java, web-platform]
slides:none on file

Spring 5 adds a parallel, functional web API that maps requests to RouterFunction and responds with Mono/Flux streams; the demo implements a Person repository (Mono for single, Flux for all) and handler functions that build immutable ServerRequest/ServerResponse objects, nest routes, apply composable predicates and filters, and run on Spring Boot or standalone on Reactor Netty/Tomcat/Undertow. It avoids reflection, favors Java 8 method references and immutability, and includes test support via WebTestClient; example code is on GitHub.

AI-written summary · about

  1. 0:00Intro
  2. 0:39About Arjen
  3. 1:43I do like annotations...
  4. 2:16but there are downsides
  5. 4:35Design Goals
  6. 7:19Immutability
  7. 8:40First-class Functions
  8. 10:28Pure Functions
  9. 17:23Server Request
  10. 18:47Server Response
  11. 31:27RouterFunction
  12. 33:06Request Predicates
  13. 45:38Handler Filter Function
  14. 46:52Running Router Functions
~/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.