eurekastreams icon indicating copy to clipboard operation
eurekastreams copied to clipboard

Allow application to perform is memcache goes down

Open lmb244 opened this issue 14 years ago • 0 comments

Eureka does not function at all if memcached is not running. In the off-chance it goes down or there is a network hiccup the client is disconnect and all subsequent calls return hard errors that completely disrupt the web page. By obtaining the 'Future' object returned from memcached client calls, the method can be invoked and given a maximum timeout to wait. If this timeout is reached or any exceptions are thrown they can be handled properly (most likely to cancel the request and return a null to the app to force it to go to the dbase). For more information look at the memcached client's web page: http://dustin.github.com/java-memcached-client/apidocs/ Specifically this page: http://dustin.github.com/java-memcached-client/apidocs/net/spy/memcached/MemcachedClient.html

lmb244 avatar Jul 16 '10 02:07 lmb244