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.
using resty.http
request client β> kongβ > service1 β> plugin(get response and resty.http) β> service2β>plugin(get to response)β> client
2 Likes
Can you show the code please.