Hi, I'm looking for an example of the scatter gather pattern. Is there a policy to do that?
basically, I'm looking for a policy or example to do something like this:
- 1 endpoint that internally calls 2 endpoints concurrently.
- The endpoint waits until all the responses are fulfilled.
- then the endpoint code or policies put a response together based on response 1 and response 2.
From what I understand you are trying to combine results from multiple backend targets. You should look at JS http client for mashups and the policy composition pattern. Reference below:
https://docs.apigee.com/api-platform/samples/cookbook/api-proxy-cookbook-patterns.html
User | Count |
---|---|
3 | |
2 | |
1 | |
1 | |
1 |