liveBook · Manning

Pipeline

As explained in Spring in Action, Sixth Edition

A pipeline is a sequence of processing components through which data or messages flow from an input toward an output.

A pipeline is a sequence of processing components through which data or messages flow from an input toward an output. Each component can alter the data, use it, or translate it between an external system and an application’s domain. section 10.0

Pipelines support two closely related ways of building applications:

  • Spring Integration assembles message-handling components with configuration, allowing data to move between external systems and application logic. section 10.0
  • Reactive programming declares a stream of transformations instead of a fixed sequence of imperative steps; data is processed as it becomes available. section 11.2 section 11.1
  • A reactive pipeline may process an ongoing or endless stream, and its operations are not assumed to run on one particular thread. section 11.2 section 11.1

Transforming a name into a greeting

A Reactor pipeline starts with one value, converts the name to uppercase, transforms it into a greeting, and subscribes to print the result. Mono represents a pipeline with no more than one item; Flux represents zero, one, many, or potentially infinite items. section 11.2

Mono.just("Craig")
    .map(n -> n.toUpperCase())
    .map(cn -> "Hello, " + cn + "!")
    .subscribe(System.out::println);

Inspect the complete Reactor example: just() supplies the value, map() applies each transformation, and subscribe() consumes the resulting greeting. section 11.2

How Spring in Action, Sixth Edition covers it

How deep it goes
Defines pipeline flow and contrasts imperative and reactive execution, but defers detailed operator behavior and configuration.
Examples
Uses a name-to-greeting transformation with uppercase conversion, mapping, subscription, and printing.
What it assumes
Assumes basic application data flow and Java familiarity while introducing reactive thinking through an imperative comparison.
What you can do after
Build it from scratch using Spring configuration or Reactor operators to connect processing stages into a data flow.
How it connects
Ties pipelines to Spring Integration, reactive programming, Reactor, Reactive Streams, Mono, Flux, and functional transformations.

Also explained in

Compare how 48 books explain pipeline →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Spring in Action, Sixth Edition. The section links point to the parts of the book it draws on.