Libray13 14 : Web Spring Boot Project WebFlux - AlbertProfe/cifojava2022-5 GitHub Wiki

Welcome to the cifojava2022-5 wiki!

Web Spring Boot Project WebFlux

Base project

  • Base project:

    • List books
    • POM with dependencies:
      • ThymeLeaf dependency
      • Webflux dependency
  • To work from base-project

    • Reactive Paradigm:
    • Spring Boot Webflux : article and book
    • Spring Data Mongo: Spring Data Mongo provides reactive variants of MongoTemplate and MongoRepository, aka ReactiveMongoTemplate and ReactiveMongoRepository which have reactive capabilities.
    • Reactive manifesto

New tools

  • Reactive Paradigm: Reactive programming is a programming paradigm that helps to implement
    • non-blocking,
    • asynchronous,
    • and event-driven or message-driven data processing.
    • It models data and events as streams that it can observe and react to by processing or transforming the data.
  • Spring Boot Webflux:
    • Spring introduced a Multi-Event Loop model to enable a reactive stack known as WebFlux.
    • It is a fully non-blocking and annotation-based web framework built on Project Reactor which allows building reactive web applications on the HTTP layer.

Reactive programming

Versions

library13

  • version 1.0 : very basic project List to send async objects to TH:

library14

  • version 1.0 : very basic project with MongoDB local reactive
  • version 2.0 : evolution wiht audit, configuration, builder commandlinerunner and others