Configuring the stream

Stream DSL can be used to configure a stream--a simple example has been shown here to connect app1 to app2. The messages put on the output channel by app1 will be received on the input channel of app2:

app1 | app2

We would want to connect the three applications. The following snippet shows an example of a DSL used to connect the preceding applications:

#source | processor | sinksignificant-stock-change-source|stock-intelligence-processor|event-store-sink

This indicates the following:

  • The output channel of the source should be linked to the input channel of processor
  • The output channel of the processor should be linked to the input channel of sink

The entire command to create a stream is shown as follows:

stream create ...

Get Mastering Spring 5.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.