# Getting response from multiple upstreams

**URL:** <https://discuss.konghq.com/t/getting-response-from-multiple-upstreams/5682>\
**Category:** Questions\
**Created:** [March 2, 2020, 9:05am UTC](https://discuss.konghq.com/t/getting-response-from-multiple-upstreams/5682 "2020-03-02T09:05:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Siddhartha\_Singh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/siddhartha_singh/32/1752_2.png) [@Siddhartha\_Singh](https://discuss.konghq.com/u/Siddhartha_Singh)\
**Post date:** [March 2, 2020, 9:05am UTC](https://discuss.konghq.com/t/getting-response-from-multiple-upstreams/5682/1 "2020-03-02T09:05:31Z")

</div>

Lets say Application sends a request to Kong. And kong has to talk to Service-1, get response from it, extract one information say session id and then attach this to header and pass it to another service Service-2. Finally send back the response of Service-2 to the application.  
Any idea how to do this using builtin plugins. If not then how.

---

<div class="post-metadata">

**Author:** ![taotao](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/taotao/32/2131_2.png) [@taotao](https://discuss.konghq.com/u/taotao)\
**Post date:** [March 2, 2020, 10:36am UTC](https://discuss.konghq.com/t/getting-response-from-multiple-upstreams/5682/2 "2020-03-02T10:36:20Z")

</div>

using resty.http

request client —\> kong— \> service1 —\> plugin(get response and resty.http) —\> service2—\>plugin(get to response)—\> client

---

<div class="post-metadata">

**Author:** ![Siddhartha\_Singh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/siddhartha_singh/32/1752_2.png) [@Siddhartha\_Singh](https://discuss.konghq.com/u/Siddhartha_Singh)\
**Post date:** [March 2, 2020, 11:56am UTC](https://discuss.konghq.com/t/getting-response-from-multiple-upstreams/5682/3 "2020-03-02T11:56:33Z")

</div>

Can you show the code please.

---

<div class="post-metadata">

**Author:** ![madhankumarbics](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@madhankumarbics](https://discuss.konghq.com/u/madhankumarbics)\
**Post date:** [July 11, 2024, 7:06am UTC](https://discuss.konghq.com/t/getting-response-from-multiple-upstreams/5682/4 "2024-07-11T07:06:09Z")

</div>

Did you got any workaround for this use case?

---

<div class="post-metadata">

**Author:** ![SVS\_Aditya](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/svs_aditya/32/2928_2.png) [@SVS\_Aditya](https://discuss.konghq.com/u/SVS_Aditya)\
**Post date:** [July 23, 2024, 5:03am UTC](https://discuss.konghq.com/t/getting-response-from-multiple-upstreams/5682/5 "2024-07-23T05:03:53Z")

</div>

To orchestrate, you need to write a custom plugin for this scenario.
