Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up
for free
Reactive programming with Spring boot 2
Dimitri
March 30, 2018
Programming
1
71
Reactive programming with Spring boot 2
An introduction to reactive programming with project reactor and Spring boot 2.0.
Dimitri
March 30, 2018
Tweet
Share
More Decks by Dimitri
See All by Dimitri
g00glen00b
0
22
g00glen00b
0
32
g00glen00b
3
73
g00glen00b
1
45
g00glen00b
0
41
g00glen00b
3
230
g00glen00b
0
31
g00glen00b
0
32
Other Decks in Programming
See All in Programming
xrdnk
0
130
takutakahashi
3
300
ryosukes
0
1.4k
boriswilhelms
0
160
deepflow
9
3.5k
mihyaeru21
0
370
grapecity_dev
0
180
manfredsteyer
PRO
0
110
satoshun
0
100
hanasuke
1
640
coa00
2
130
aftiopk
0
130
Featured
See All Featured
cromwellryan
104
6.2k
addyosmani
311
21k
62gerente
587
200k
3n
163
22k
pedronauck
652
110k
mojombo
359
62k
morganepeng
18
1.2k
hursman
106
9.3k
schacon
145
6.6k
swwweet
206
6.9k
zakiwarfel
88
3.4k
trishagee
24
2.5k
Transcript
AN INTRODUCTION TO SPRING BOOT 2.0
WHAT IS SPRING BOOT? - Framework to build production-ready applications
- Based on Spring framework - Version 2.0 released this month
None
WHAT IS NEW IN 2.0? - Spring 5 - Project
Reactor - Java 9 support - Kotlin integration - ...
REACTIVE STREAMS
- Non-blocking - Data streams - Back pressure - Asynchronous
REACTIVE STREAMS
KEY COMPONENTS Publisher<T> Mono<T> Flux<T> Operators Subscriber
KEY COMPONENTS
SPRING MVC
WEBFLUX
ROUTER FUNCTION
TRADITIONAL REPOSITORY
REACTIVE REPOSITORY
WEBCLIENT
LIVE CODING TIME
WHY ADAPT? - When writing new projects - When moving
to Java 9 - When you want to use Spring 5 - When you want to use Kotlin
WHY REACTIVE? - When real time or event-driven communication is
important - When processing large, or infinite amounts of data - When you expect that there will be a large amount of traffic
WHY NOT REACTIVE? - When expected to make blocking calls
ANY QUESTIONS?* * Make sure to ask them in a
reactive way. Don’t block your brains when you’re waiting for an answer.
RESOURCES - Shameless self-promotion: https://g00glen00b.be/getting-started-spring-boot-2/ - More shameless self-promotion: https://blog.optis.be/spring-devoxx-7c0fa8a9dc9f
- Building a reactive RESTful service: https://spring.io/guides/gs/reactive-rest-service/ - Live demo code: https://github.com/optis/spring-boot-2-webflux
THE END