These are chat archives for spring-cloud/spring-cloud

28th
Aug 2017
Leisureroad
@Leisureroad
Aug 28 2017 01:08
Hi all, is there a way to do the data isolation via Eureka? e.g., we need to do the data isolation regarding to different tenant/domain. Appreciate any suggestions.
majidvodworks
@majidvodworks
Aug 28 2017 14:59

Hi All,
I'm trying to use use spring cloud hystrix with spring cachable annotation, it is not working.
following is code sample
var code = "formatted";

```
@Cacheable(value = "test", sync = true)
@HystrixCommand(fallbackMethod="recoverGetValue")
public String getValue(int id) {
    return id + "";
}

public String recoverGetValue(int id) {
    System.out.println("getting data from different resource");
    return id + "";
}

```

Cacheable annotation throws operationTimeoutException, but fallback method is not being called. How to solve this issue?