need help : featurehub down scenario #546
-
Hi , i referred below example and created FetureHubSource singleton class. Its is not a springboot project , its web application with servlets only. i have loaded FetureHubSource .java(made as singleton) at startup. all working fine except featurehub down scenario. i was testing the scenario that when featurehub is down whether values are picking from local cache or not. if i am making featurehub down or stop , its stuck and no values are picking . flow is stuck in below line... what i am missing here?
FeatureHubSource.java
FeatureHub.java
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey there! The problem is you are using a Server Evaluated key for a web server, and thus every time the context changes it must block and change the context for the whole repository. A client evaluated key will bring all of the necessary context and strategies down to your web server app and any context change will be evaluated locally. The "build" method just returns straight away. I hope this helps? |
Beta Was this translation helpful? Give feedback.
Hey there!
The problem is you are using a Server Evaluated key for a web server, and thus every time the context changes it must block and change the context for the whole repository. A client evaluated key will bring all of the necessary context and strategies down to your web server app and any context change will be evaluated locally. The "build" method just returns straight away.
I hope this helps?