Hands-on reactive programming with Reactor : build reactive and scalable microservices using the Reactor framework /
Hands-On Reactive Programming with Reactor presents a variety of examples which show how to use the Reactor framework to handle asynchronous code. In reactive programming, Reactor is a foundation for all its asynchronous applications on the JVM.
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham, UK :
Packt Publishing,
2018.
|
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- Cover; Title Page; Copyright and Credits; Packt Upsell; Contributors; Table of Contents; Preface; Chapter 1: Getting Started with Reactive Streams; Technical requirements ; Reactive architecture; Reactive programming; ReactiveX; Composite streams; Flexible operators; Reactive Streams; Asynchronous processing; Subscriber backpressure; David Karnok's classification; Zero generation; First generation; Second generation; Third generation; Fourth generation; Fifth generation; Reactor; Infinite data streams; Push-pull model; Concurrency agnostic; Operator vocabulary; Project setup; Summary.
- QuestionsFurther reading; Chapter 2: The Publisher and Subscriber APIs in a Reactor; Technical requirements; Stream publisher; Stream subscriber; Subscription; Reactive Streams comparison; The Observable interface; Java Messaging Service API; Learning about the Reactor Core API; The Flux API; Generating the Flux API; The Flux.just method; The Flux.from methods; Utility methods; The Flux.generate method; SynchronousSink; Flux.create; The Mono API; Generating a Mono; The Mono.just method; The Mono.from method; Utility methods; Mono.create; Building subscribers to Flux and Mono; Lifecycle hooks.
- Trying a hands-on projectSummary; Questions; Further reading; Chapter 3: Data and Stream Processing; Technical requirements; Generating data; Filtering data; The filter() operator; The take operator; The skip operator; Converting data; The map() operator; The flatMap operator; The repeat operator; The collect operator; The collectMap operator; The reduce operator; Conditional tests; Appending data; The concatWith operator; Summary; Questions; Chapter 4: Processors; Technical requirements ; An introduction to processors; Understanding processor types; The DirectProcessor type.
- The UnicastProcessor typeThe EmitterProcessor type; The ReplayProcessor type; The TopicProcessor type; The WorkQueueProcessor type; Hot versus Cold publishers; Summary; Questions; Chapter 5: SpringWebFlux for Microservices; Technical requirements; Introduction to SpringWebFlux; Configuring annotations; SpringBoot Starter; Adding a controller; Method parameters; Exception handling; Configuring functions; The handler function; The router function; HandlerFilter; HttpHandler; Fibonacci functional router; Summary; Questions; Chapter 6: Dynamic Rendering; Technical requirements ; View templates.
- Resolving viewsFreemarker; Thymeleaf; Scripting; Mustache; Learning about static resources; WebClient; Summary; Questions; Chapter 7: Flow Control and Backpressure; Technical requirements; Flow control; The groupBy operator; The buffer operator; The window operator; The sample operator; Backpressure; OnBackpressure; Summary; Questions; Chapter 8: Handling Errors; Technical requirements; Generating errors; Checked exceptions; The doOnError hook; The doOnTerminate hook; The doFinally hook; Error recovery; The onErrorReturn operator; The onErrorResume operator; The onErrorMap operator; Timeout.