We have following scenario which fails with kong api gateway:
Service1 has an endpoint named “endpoint1” which gives hardware specific value in response.
We have say 2 hardware units (H1 and H2) inter-connected, with Service1 deployed on both.
Kong on unit H1 is fed the Service1 configuration as follows:
Service1 configuration from H1 with url as “localhost:port”
Service1 configuration from H2 with url as “H2_IP_Address:port”
However, kong on H1 stores service configuration for the latest config sent i.e. from H2 and always redirects the request to the service on H2.
It never hits the Service1 on H1 as the service configuration gets overwritten in kong for same Service1 name (even with different URLs for the service)
Please suggest if there is any way to handle this scenario with kong ?
Thanks.