Closed davpin closed 8 years ago
Portfolio is making 2 HTTP calls for each quote.
@HystrixCommand(fallbackMethod = "setDefaultHolding")
private void refreshHolding(Holding holding) {
//Quote quote = quoteService.getQuote(holding.getSymbol());
if (quoteService.getQuote(holding.getSymbol()).getStatus().equalsIgnoreCase(Quote.STATUS_SUCCESS)) {
holding.setCurrentValue(new BigDecimal(quoteService.getQuote(holding.getSymbol()).getLastPrice()));
}
}
Introduced in a073f7e
Portfolio is taking too long retrieving quotes which makes web timeout.