You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#I have been getting different results when using the Ruby SDK.
System Info:
ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-darwin17]
Mac OS Sierra
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)
I have a user with key: tenant3 that was in variation = true.
I moved the user to be in variation = false for a feature-flag called "false"
Yes, best practice is to create a single client instance at the top and reuse it, as you were doing in Java.
As for why the original code would produce the results you saw: creating a lot of different client instances would mean making a lot of different streaming connections, and theoretically each of those could go to a different network endpoint due to load-balancing... and some of those might be slightly slower in receiving updates from LaunchDarkly than others. But I would only expect a very brief lag, not the longer inconsistency you saw. I was able to reproduce your output yesterday, but I can't today, so I wonder if there was a transient network issue causing longer lags.
Activity
abhimehta commentedon Feb 15, 2018
Found the issue.
It was with my code. I was initializing a client within the loop.
eli-darkly commentedon Feb 16, 2018
Yes, best practice is to create a single client instance at the top and reuse it, as you were doing in Java.
As for why the original code would produce the results you saw: creating a lot of different client instances would mean making a lot of different streaming connections, and theoretically each of those could go to a different network endpoint due to load-balancing... and some of those might be slightly slower in receiving updates from LaunchDarkly than others. But I would only expect a very brief lag, not the longer inconsistency you saw. I was able to reproduce your output yesterday, but I can't today, so I wonder if there was a transient network issue causing longer lags.
Merge pull request #95 from launchdarkly/eb/feature-store-unicode