Reactive programming with Spring boot 2

Reactive programming with Spring boot 2

An introduction to reactive programming with project reactor and Spring boot 2.0.

804116bef2aa0a22789514d3b7a8f520?s=128

Dimitri

March 30, 2018
Tweet

Transcript

  1. AN INTRODUCTION TO SPRING BOOT 2.0

  2. WHAT IS SPRING BOOT? - Framework to build production-ready applications

    - Based on Spring framework - Version 2.0 released this month
  3. None
  4. WHAT IS NEW IN 2.0? - Spring 5 - Project

    Reactor - Java 9 support - Kotlin integration - ...
  5. REACTIVE STREAMS

  6. - Non-blocking - Data streams - Back pressure - Asynchronous

    REACTIVE STREAMS
  7. KEY COMPONENTS Publisher<T> Mono<T> Flux<T> Operators Subscriber

  8. KEY COMPONENTS

  9. SPRING MVC

  10. WEBFLUX

  11. ROUTER FUNCTION

  12. TRADITIONAL REPOSITORY

  13. REACTIVE REPOSITORY

  14. WEBCLIENT

  15. LIVE CODING TIME

  16. WHY ADAPT? - When writing new projects - When moving

    to Java 9 - When you want to use Spring 5 - When you want to use Kotlin
  17. 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
  18. WHY NOT REACTIVE? - When expected to make blocking calls

  19. ANY QUESTIONS?* * Make sure to ask them in a

    reactive way. Don’t block your brains when you’re waiting for an answer.
  20. 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
  21. THE END