Search code examples
spring-integrationmicroservicesspring-cloud-dataflow

Spring Integration or Spring Cloud Data Flow


I'm in the process of moving some of my application to microservices. One example service is a RSS crawler which uses Spring Integration to send items to Kafka. I also see there is Spring Cloud Data Flow which uses Spring Integration and Spring Batch under the hood.

If I used Spring Cloud Data Flow, would I use this within each microservice or is it used as orchestration between microservices?

I'm trying understand the benefits of introducing Spring Cloud Data Flow as opposed to keeping the microservices as light as possible using Spring Integration.

Any advice would be appreciated.


Solution

  • Right, you use Spring Integration within you Microservices and Data Flow to connect and orchestrate them. That is just a side effect that Spring Cloud Data Flow uses Spring Integration and Spring Batch for its internal logic.

    In this picture you might just miss the fact of the Spring Cloud Stream level in between: https://cloud.spring.io/spring-cloud-stream/