Call : (+91) 968636 4243
Mail : info@EncartaLabs.com
EncartaLabs

Reactive Spring

( Duration: 5 Days )

This Reactive Spring training course focuses on providing an understanding of the fundamental principles and technologies that are used in reactive programming. This understanding is critical to being able to diagnose, troubleshoot, tune, and perform other lifecycle activities. Geared for experienced Java developers with basic Spring experience, this course explores concurrent, asynchronous and reactive programming APIs and techniques using Spring. Throughout the hands-on course, you will explore reactive programming essentials, Reactive Streams and the Project Reactor APIs, as well as how these APIs are integrated into Spring. Spring 5 includes Spring WebFlux, providing a reactive programming model for web applications, as well as support for Reactive REST APIs.

You will also learn about Spring WebSocket, which assists in the creation of web applications to provide a full-duplex, two-way communication between client and server. The course also covers Spring Data, which implements database operations relying on Reactive Programming APIs. While the Spring R2DBC initiative aims to bring reactive programming to relational databases, several NoSQL databases already provide this possibility. Along with an introduction to NoSQL and the MongoDB, this courses also explores the APIs available to communicate with this NoSQL database using both blocking and reactive APIs.

By attending Reactive Spring workshop, delegates will learn to:

  • Understand the ReactiveX specification
  • Understand the basics of Reactive Programming
  • Discuss the advantages and limitations of Observables
  • Write a client application capable of handling Reactive events
  • Apply operators to event streams to filter, modify and combine the objects emitted by event publishers
  • Select the appropriate type of Event Source
  • Use both Cold and Hot Observables
  • Deal with backpressure problems in reactive programming
  • Develop a reactive web application using Spring WebFlux
  • Define application flows of a WebFlux application
  • Use the WebClient API to work with both synchronous and streaming APIs
  • Develop Unit and Integration tests to test WebFlux endpoints
  • Creating a reactive REST endpoint
  • Become familiar with the basics of WebSockets
  • Create a WebSocket endpoint using Spring
  • Create a WebSocket client
  • Understand the basics of NoSQL
  • Become familiar with the basics of MongoDB
  • Understand how the data in MongoDB can be retrieved using a Reactive API
  • Define Spring Data MongoDB repositories
  • Query the MongoDB using Spring Data
  • Define a reactive repository using MongoDB
  • Explore the experimental Spring Data R2DBC API to perform reactive CRUD operations against a relational database

  • Experience with Spring Core, Spring Boot & Spring Batch
  • Experience with Spring Boot 2.x and Spring Data

The Reactive Spring class is ideal for:

  • Intermediate-skilled Java developers with incoming Spring experience.

COURSE AGENDA

1

Introduction to Reactive Programming

  • Reactive Manifesto,
  • Introduce ReactiveX
  • ReactiveX implementations
  • The Observer and Iterator pattern and functional programming
  • Discuss hot and cold observables
2

Reactive Streams API

  • Introduce the Reactive Streams specification
  • Publisher and Subscribers
  • java.util.concurrent.Flow
  • Transformation of Messages (Processor)
  • Controlling messages
3

Introduction to Project Reactor

  • Introduce the Reactor Building blocks
  • Flux and Mono
  • Creating observables
  • Subscribing to a stream
4

Reactive Operators

  • Introduce Operators
  • Show the use of RxMarbles (marble diagrams)
  • Explain some commonly used operators
  • Callback operators
5

Schedulers (Multithreading)

  • Thread usage of subscriber and consumer
  • Using the subscribeOn method
  • Introduce the Scheduler interface
  • Using the observeOn method
6

Backpressure

  • Strategies for dealing with Backpressure
  • “reactive pull” backpressure
  • ConnectableFlux
  • Throtteling
7

Exception Handling

  • Handling errors in onError
  • Exception handling strategies
  • Using onErrorReturn or onErrorNext operators
  • Using the retry operators
  • The Global Error Handler
8

Introduction to Spring WebFlux

  • Annotated Controllers
  • Functional Endpoints
  • WebFlux configuration
  • Defining reactive web endpoints
9

View Technologies

  • View technologies
  • Using Thymeleaf to create the view
  • View Configuration
10

Defining flows

  • Defining the application flow
  • Actions
  • Defining decision
  • Navigating flows
  • RouterFunction
11

Introduction to WebClient

  • Working with asynchronous and streaming APIs
  • Making requests
  • Handling the response
12

WebTestClient

  • Testing WebFlux server endpoints
  • Testing controllers or functions
  • Define integration tests
13

Reactive REST services

  • Creating a reactive REST endpoint
  • Creating a reactive client for Reactive streams
14

Introduction to Spring Reactive WebSockets

  • Be familiar with the basics of WebSockets
  • Understand the HTTP handshake and upgrade
  • Name some of the advantages of WebSockets
15

Defining the WebSocket

  • WebSocket Message Handling
  • WebSocketSession
  • Implemeting the WebSockethandler
  • Creating a Browser WebSocket Client
16

BigData

  • Introduce Big Data
  • Explain the need for enhanced data storage
17

Introduction to NoSQL

  • Introduce NoSQL
  • Discuss different types of data stores
  • ACID vs BASE
  • CAP (Brewer’s) Theorem
  • Eventual Consistency
18

Introduction to MongoDB

  • JavaScript Object Notation Overview
  • Introduce Binary JSON (BSON)
  • Starting the database
  • Creating Collections and Documents
  • Executing ‘simple’ database commands
  • Introduce the ObjectID
  • Searching for documents using query operators
  • Updating and deleting documents
  • MongoDB Compass
19

Spring and MongoDB

  • MongoDB Support in Spring Data
  • MongoClient and MongoTemplate
  • Spring Data MongoDB configuration
  • Adding documents to the database
  • The @Document and @Field annotations
  • Polymorphism and the _class property
20

Spring Data MongoDB

  • MongoRepository
  • @EnableMongoRepositories
  • Field naming strategy
21

Spring MongoDB Queries

  • Using JSON queries to find documents
  • The Criteria object
  • The @PersistenceConstructor annotation
22

Reactive Repositories with MongoDB

  • Using Reactive repositories
  • ReactiveMongoTemplate
  • ReactiveCrudRepository
23

Spring Data R2DBC

  • Reactive Relational Database Connectivity
  • DatabaseClient
  • Performing CRUD operations
  • Reactive Query annotated methods

Encarta Labs Advantage

  • One Stop Corporate Training Solution Providers for over 6,000 various courses on a variety of subjects
  • All courses are delivered by Industry Veterans
  • Get jumpstarted from newbie to production ready in a matter of few days
  • Trained more than 50,000 Corporate executives across the Globe
  • All our trainings are conducted in workshop mode with more focus on hands-on sessions

View our other course offerings by visiting https://www.encartalabs.com/course-catalogue-all.php

Contact us for delivering this course as a public/open-house workshop/online training for a group of 10+ candidates.

Top
Notice
X