Search code examples
springload-balancingspring-xd

How does Spring XD load balance between instances of the same module in different containers


I have read this post but it's not my case and not enough clear:

How does load balancing in Spring XD get done?

I have a composed job with different instances of the same sub-jobs deployed in different containers. My composed job is scheduled to run periodically. I need to know how Spring XD choose the sub-jobs instances to invoke for every new request to the composed job.

The same question for a stream triggered every X minutes.


Solution

  • It's handled by the transport (rabbit, redis).

    Each downstream module competes for messages - with rabbit it will generally be round robin; with redis it will be more random.