title: Microservice feign infinite loop of invocations?
body: <p>I am confused about how an infinite loop of feign calls might behave.
  An example:
  Assume I have 2 APIs, A &amp; B.
  if I call API A, which in turn calls API B via a feign HTTP call, which in turn calls API A again via feign, will it recognize this and break the call chain?</p>
  
  <p>Quick flowchart of calls:
  A -> B -> A -> B ... Repeat infinitely?</p>
  
  <p>I have not tried this code, it is just an idea。
  But I am assuming that spring-cloud-starter-feign will provide some methods to resolve this problem? Is this assumption correct?</p>
  
  <pre class="lang-java prettyprint-override"><code>    @PostMapping(RestJsonPath.API_A)
      ResponseEntity&lt;byte[]&gt; apiA();
  
      @PostMapping(RestJsonPath.API_B)
      ResponseEntity&lt;byte[]&gt; apiB();
  </code></pre>
  
  <p>Will it execute until it times out or hystrix will stop it？</p>