smallrye / smallrye-stork

SmallRye Stork is a service discovery and client side-load balancing framework.

Home Page:http://smallrye.io/smallrye-stork/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there any way to get the host of the response?

cdmikechen opened this issue · comments

We currently use a combination of stork and rest-client with quarkus 2.16.6, and we use consul for service discovery.
Now we want to get the downstream host based on stork request, is there currently a way to get it via stork?
We tried to get the response and found that the only response we get via rest-client is the context-length and context-type.

Thanks

I don't totally understand what you are trying to achieve.

From what I understand:

  1. you have a rest client using Stork to discover the service instance (using consul)
  2. the rest client is used, the service instance is discovered (or cached), and the remote call happens
  3. you get the response

Do you need the service instance metadata in the response?

no feedback from reporter.