Closed mrphoebs closed 10 years ago
It would be better to create a sub-type to HystrixTaskHandler like RequestCachingHystrixTaskHandler and have the logic there. This would minimize regressions and implementations that require this behavior can use it. Rejecting this pull request.
handlers extending HystrixTaskHandler to implement request caching. This would also necessiate that HystrixRequestContext be initialized and shutdown for each request that triggers the task handler. I've demonstrated the usage of the above by making changes to HttpProxyExecutor and RoutingHttpChannelHandler.