0

Can we have multiple Sources in a single SpringCloudStream application, say on main class and three Source Class. Among one can 1.jdbc poller, 2.file poller and another a 3.simple payload class.

So when we define stream in DataFlowServer for as source, how will it interact and what will be the flow.

Suppose the sink is looking for data from 3rd source.

lmiguelvargasf
  • 63,191
  • 45
  • 217
  • 228
hollycode
  • 11
  • 3

1 Answers1

0

As a Spring Cloud Stream application, you can define multiple sources in a single application. You can see a sample application on this here

If you construct a Stream via Spring Cloud Data Flow DSL, multiple source configuration is not directly supported as the stream in Data Flow DSL connects a single destination in the | between the applications.

You can still use Named Destinations to perform some join operations. You can refer to this SO answer.

Ilayaperumal Gopinathan
  • 4,099
  • 1
  • 13
  • 12