MaDHaN MinHo
MaDHaN MinHo

Reputation: 529

How to pick one response from multiple responses using aggregator in camel?

suppose a user hitting a rest service url and i want to send the request to multiple rest services and using some rule in aggregator i want to pick best response which matching the rule and send that response back to user?

use case browser url - a rest request multicast - to send to multiple services aggregator - pick the best response send back best response to browser url.

But im getting only latest multicast response not best one from aggregator. any help?

Upvotes: 0

Views: 143

Answers (1)

ltsallas
ltsallas

Reputation: 1948

Have a look at the Scatter-Gather EIP example here

Upvotes: 2

Related Questions