All Projects → launchdarkly → java-server-sdk

launchdarkly / java-server-sdk

Licence: other
LaunchDarkly Server-Side SDK for Java

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to java-server-sdk

ruby-server-sdk
LaunchDarkly Server-side SDK for Ruby
Stars: ✭ 25 (-64.79%)
Mutual labels:  feature-flags, feature-toggles, launchdarkly, launchdarkly-sdk
js-client-sdk
LaunchDarkly Client-side SDK for Browser JavaScript
Stars: ✭ 93 (+30.99%)
Mutual labels:  feature-flags, feature-toggles, launchdarkly, launchdarkly-sdk
erlang-server-sdk
LaunchDarkly Server-Side SDK for Erlang/Elixir
Stars: ✭ 16 (-77.46%)
Mutual labels:  feature-flags, feature-toggles, launchdarkly, launchdarkly-sdk
ios-client-sdk
LaunchDarkly Client-side SDK for iOS (Swift and Obj-C)
Stars: ✭ 45 (-36.62%)
Mutual labels:  feature-flags, feature-toggles, launchdarkly, launchdarkly-sdk
php-server-sdk
LaunchDarkly Server-side SDK for PHP
Stars: ✭ 31 (-56.34%)
Mutual labels:  feature-flags, feature-toggles, launchdarkly, launchdarkly-sdk
ld-redux
A library to integrate launch darkly with react redux
Stars: ✭ 33 (-53.52%)
Mutual labels:  feature-flags, feature-toggles, launchdarkly
jest-launchdarkly-mock
Easily unit test LaunchDarkly feature flagged components with jest
Stars: ✭ 14 (-80.28%)
Mutual labels:  feature-flags, feature-toggles, launchdarkly
ld-scheduler
Schedule Launch Darkly flags on or off
Stars: ✭ 14 (-80.28%)
Mutual labels:  feature-flags, feature-toggles, launchdarkly
react-client-sdk
LaunchDarkly Client-side SDK for React.js
Stars: ✭ 42 (-40.85%)
Mutual labels:  feature-flags, feature-toggles, launchdarkly-sdk
Flipper
Flipper is a simple and useful tool to deal with feature toggles
Stars: ✭ 64 (-9.86%)
Mutual labels:  feature-flags, feature-toggles
Molasses
Feature toggle library for elixir
Stars: ✭ 70 (-1.41%)
Mutual labels:  feature-flags, feature-toggles
Flagsmith Frontend
Web App and Mobile App for Flagsmith
Stars: ✭ 86 (+21.13%)
Mutual labels:  feature-flags, feature-toggles
Unleash Client Python
Unleash client for Python 💡💡💡
Stars: ✭ 44 (-38.03%)
Mutual labels:  feature-flags, feature-toggles
Javascript Client
NodeJS and Browser SDK client for Split Software
Stars: ✭ 30 (-57.75%)
Mutual labels:  feature-flags, feature-toggles
Unleash Client Go
Unleash Client for Go
Stars: ✭ 78 (+9.86%)
Mutual labels:  feature-flags, feature-toggles
Featuretoggle
Simple, reliable feature toggles in .NET
Stars: ✭ 641 (+802.82%)
Mutual labels:  feature-flags, feature-toggles
Flagr
Flagr is a feature flagging, A/B testing and dynamic configuration microservice
Stars: ✭ 1,776 (+2401.41%)
Mutual labels:  feature-flags, feature-toggles
Piranha
A tool for refactoring code related to feature flag APIs
Stars: ✭ 1,840 (+2491.55%)
Mutual labels:  feature-flags, feature-toggles
Fun with flags
Feature Flags/Toggles for Elixir
Stars: ✭ 554 (+680.28%)
Mutual labels:  feature-flags, feature-toggles
Flipt
An open-source, on-prem feature flag solution
Stars: ✭ 1,623 (+2185.92%)
Mutual labels:  feature-flags, feature-toggles

LaunchDarkly Server-side SDK for Java

Circle CI Javadocs

LaunchDarkly overview

LaunchDarkly is a feature management platform that serves over 100 billion feature flags daily to help teams build better software, faster. Get started using LaunchDarkly today!

Twitter Follow

Supported Java versions

This version of the LaunchDarkly SDK works with Java 8 and above.

Distributions

Two variants of the SDK jar are published to Maven:

  • The default uberjar - this is accessible as com.launchdarkly:launchdarkly-java-server-sdk:jar and is the dependency used in the "Getting started" section of the SDK reference guide as well as in the hello-java sample app. This variant contains the SDK classes and all of its required dependencies. All bundled dependencies that are not surfaced in the public API have shaded package names (and are not exported in OSGi), so they will not interfere with any other versions of the same packages.
  • The "thin" jar - add <classifier>thin</classifier> in Maven, or :thin in Gradle. This contains only the SDK classes, without its dependencies. Applications using this jar must provide all of the dependencies that are in the SDK's build.gradle, so it is intended for use only in special cases.

Previous SDK versions also included a third classifier, all, which was the same as the default uberjar but also contained the SLF4J API. This no longer exists because the SDK no longer requires the SLF4J API to be in the classpath.

Getting started

Refer to the SDK reference guide for instructions on getting started with using the SDK.

Logging

By default, the LaunchDarkly SDK uses SLF4J if the SLF4J API is present in the classpath. SLF4J has its own configuration mechanisms for determining where output will go, and filtering by level and/or logger name.

If SLF4J is not in the classpath, the SDK's default logging destination is System.err.

The SDK can also be configured to use other adapters from the com.launchdarkly.logging facade. See LoggingConfigurationBuilder. This allows the logging behavior to be completely determined by the application, rather than by external SLF4J configuration.

For an example of using the default SLF4J behavior with a simple console logging configuration, check out the slf4j-logging branch of the hello-java project. The main branch of hello-java uses console logging that is programmatically configured without SLF4J.

All loggers are namespaced under com.launchdarkly, if you are using name-based filtering.

Be aware of two considerations when enabling the DEBUG log level:

  1. Debug-level logs can be very verbose. It is not recommended that you turn on debug logging in high-volume environments.
  2. Potentially sensitive information is logged including LaunchDarkly users created by you in your usage of this SDK.

Using flag data from a file

For testing purposes, the SDK can be made to read feature flag state from a file or files instead of connecting to LaunchDarkly. See FileData for more details.

DNS caching issues

LaunchDarkly servers operate in a load-balancing framework which may cause their IP addresses to change. This could result in the SDK failing to connect to LaunchDarkly if an old IP address is still in your system's DNS cache.

Unlike some other languages, in Java the DNS caching behavior is controlled by the Java virtual machine rather than the operating system. The default behavior varies depending on whether there is a security manager: if there is, IP addresses will never expire. In that case, we recommend that you set the security property networkaddress.cache.ttl, as described here, to a number of seconds such as 30 or 60 (a lower value will reduce the chance of intermittent failures, but will slightly reduce networking performance).

Learn more

Check out our documentation for in-depth instructions on configuring and using LaunchDarkly. You can also head straight to the complete reference guide for this SDK or our code-generated API documentation.

Testing

We run integration tests for all our SDKs using a centralized test harness. This approach gives us the ability to test for consistency across SDKs, as well as test networking behavior in a long-running application. These tests cover each method in the SDK, and verify that event sending, flag evaluation, stream reconnection, and other aspects of the SDK all behave correctly.

Contributing

We encourage pull requests and other contributions from the community. Check out our contributing guidelines for instructions on how to contribute to this SDK.

About LaunchDarkly

  • LaunchDarkly is a continuous delivery platform that provides feature flags as a service and allows developers to iterate quickly and safely. We allow you to easily flag your features and manage them from the LaunchDarkly dashboard. With LaunchDarkly, you can:
    • Roll out a new feature to a subset of your users (like a group of users who opt-in to a beta tester group), gathering feedback and bug reports from real-world use cases.
    • Gradually roll out a feature to an increasing percentage of users, and track the effect that the feature has on key metrics (for instance, how likely is a user to complete a purchase if they have feature A versus feature B?).
    • Turn off a feature that you realize is causing performance problems in production, without needing to re-deploy, or even restart the application with a changed configuration file.
    • Grant access to certain features based on user attributes, like payment plan (eg: users on the ‘gold’ plan get access to more features than users in the ‘silver’ plan). Disable parts of your application to facilitate maintenance, without taking everything offline.
  • LaunchDarkly provides feature flag SDKs for a wide variety of languages and technologies. Read our documentation for a complete list.
  • Explore LaunchDarkly
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].