title: How to pass data from business method to fallback method while using spring-boot circuit breaker (Hystrix)?
body: <p>In official <a href="https://spring.io/guides/gs/circuit-breaker/" rel="nofollow noreferrer">https://spring.io/guides/gs/circuit-breaker/</a> manual there are </p>
  
  <ol>
  <li>business method (readingList)</li>
  <li>fallback method (reliable)</li>
  </ol>
  
  <blockquote>
  <pre><code>@HystrixCommand(fallbackMethod = "reliable")
    public String readingList() {
      URI uri = URI.create("http://localhost:8090/recommended");
  
      return this.restTemplate.getForObject(uri, String.class);
    }
  
    public String reliable() {
      return "Cloud Native Java (O'Reilly)";
    }
  </code></pre>
  </blockquote>
  
  <p>How to pass data from business method to fallback method? Use ThreadLocal, immutable collections, concurrent collections, any ideas/best practice?</p>