1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/README.md

102 lines
6.4 KiB
Markdown
Raw Normal View History

2016-12-05 10:55:11 +01:00
# Unleash
2014-11-10 16:25:22 +01:00
[![Build Status](https://travis-ci.org/Unleash/unleash.svg?branch=master)](https://travis-ci.org/Unleash/unleash) [![Coverage Status](https://coveralls.io/repos/github/Unleash/unleash/badge.svg?branch=master)](https://coveralls.io/github/Unleash/unleash?branch=master) [![Dependency Status](https://david-dm.org/Unleash/unleash.svg)](https://david-dm.org/Unleash/unleash) [![devDependency Status](https://david-dm.org/Unleash/unleash/dev-status.svg)](https://david-dm.org/Unleash/unleash?type=dev) [![Greenkeeper badge](https://badges.greenkeeper.io/Unleash/unleash.svg)](https://greenkeeper.io/) [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://www.heroku.com/deploy/?template=https://github.com/Unleash/unleash)
2014-11-10 16:39:17 +01:00
2020-01-17 14:02:03 +01:00
Unleash is a open source feature flag & toggle system, that gives you a great overview over all feature toggles across all your applications and services. It comes with official client implementations for Java, Node.js, Go, Ruby, Python and .NET Core.
## Unleash-enterprise [:link:](https://www.unleash-hosted.com/open-source)
Unleash is also available in an enterprise edition, which builds on top of the open-source version, with additional features. Go to [unleash-hosted.com](https://www.unleash-hosted.com/open-source) to learn more about the enterprise offering.
## What is a feature toggle?
2016-12-03 13:23:08 +01:00
2018-11-22 11:20:28 +01:00
The main motivation for doing feature toggling is to decouple the process for deploying code to production and releasing new features. This helps reducing risk, and allow us to easily manage which features to enable
2016-12-03 13:23:08 +01:00
2017-01-13 07:22:55 +01:00
> Feature toggles decouple **deployment** of code from **release** of new features
2016-12-03 13:23:08 +01:00
2018-11-22 11:20:28 +01:00
This repo contains the unleash-server, which contains the admin UI and a place to ask for the status of features. In order to make use of unleash you will also need a client implementation.
2016-12-03 13:23:08 +01:00
<img src="https://github.com/Unleash/unleash/raw/master/docs/assets/dashboard_new.png" alt="Unleash UI" width="600" />
2016-12-23 11:20:51 +01:00
[Online demo version available on heroku](https://unleash.herokuapp.com/#/features).
2016-12-23 11:20:51 +01:00
2016-12-03 13:23:08 +01:00
## Activation strategies
2018-11-22 11:20:28 +01:00
It's fine to have a system for turning stuff on and off. But some times we want more granular control, we want to decide who to the toggle should be enabled for. This is where activation strategies comes in to the picture. Activation strategies take arbitrary config and allows us to enable a toggle in various ways.
2016-12-03 13:23:08 +01:00
Common activation strategies includes:
2018-11-22 11:20:28 +01:00
2016-12-03 13:23:08 +01:00
- Active For users with a specified userId
- GradualRollout to X-percent of our users
- Active for our beta users
2018-11-22 11:20:28 +01:00
- Active only for application instances running on host x.
2016-12-03 13:23:08 +01:00
2016-12-03 13:25:50 +01:00
Read more about activation strategies in [docs/activation-strategies.md](./docs/activation-strategies.md)
2016-12-03 13:23:08 +01:00
2020-01-17 14:02:03 +01:00
## Variants
Sometimes you need more control than just a boolean flag. Variants provides this and can be used in combination of feature toggles and allow you to return multiple variants from a feature toggle, if it is enabled.
2016-12-03 13:23:08 +01:00
## Client implementations
2018-11-22 11:20:28 +01:00
2019-08-24 13:08:59 +02:00
We have official SDK's for Java, Node.js, Go, Ruby and Python. And we will be happy to add implementations in other languages written by you! These libraries makes it very easy to use Unleash in you application.
2019-08-24 13:08:59 +02:00
Official client SDK's:
2018-11-22 11:20:28 +01:00
2017-12-05 08:47:13 +01:00
- [unleash/unleash-client-java](https://github.com/unleash/unleash-client-java)
- [unleash/unleash-client-node](https://github.com/unleash/unleash-client-node)
- [unleash/unleash-client-go](https://github.com/unleash/unleash-client-go)
2018-06-27 11:36:27 +02:00
- [unleash/unleash-client-ruby](https://github.com/unleash/unleash-client-ruby)
- [unleash/unleash-client-python](https://github.com/Unleash/unleash-client-python)
- [unleash/unleash-client-dotnet](https://github.com/Unleash/unleash-client-dotnet)
2017-12-05 08:47:13 +01:00
2018-11-22 11:20:28 +01:00
Clients written by awesome enthusiasts: :fire:
- [cognitedata/unleash-client-rust](https://github.com/cognitedata/unleash-client-rust) (Rust)
- [silvercar/unleash-client-kotlin](https://github.com/silvercar/unleash-client-kotlin) (Kotlin)
2020-05-06 08:12:18 +02:00
- [uekoetter.dev/unleash-client-dart](https://pub.dev/packages/unleash) (Dart)
- [minds/unleash-client-php](https://gitlab.com/minds/unleash-client-php) (PHP)
- [afontaine/unleash_ex](https://gitlab.com/afontaine/unleash_ex) (Elixir)
- [mikefrancis/laravel-unleash](https://github.com/mikefrancis/laravel-unleash) (Larvel - PHP)
2017-11-30 21:48:58 +01:00
2017-12-05 08:49:53 +01:00
### The Client API
The client SDKs provides a simple abstraction making it easy to check feature toggles in your application. The code snippet below shows how you would use `Unleash` in Java.
2016-12-03 13:23:08 +01:00
```java
if (unleash.isEnabled("AwesomeFeature")) {
2016-12-03 13:23:08 +01:00
//do some magic
} else {
//do old boring stuff
}
```
# Running Unleash Service
2016-12-02 17:47:13 +01:00
## Run it yourself
2016-12-02 17:47:13 +01:00
2019-05-31 09:16:22 +02:00
Unleash is open source and you are free to run your own instance. Please refer to the [getting-started-guide](https://unleash.github.io/docs/getting_started) to learn how to run the Unleash Service.
2016-12-02 17:47:13 +01:00
2019-05-31 09:16:22 +02:00
We have made a separate project which runs Unleash inside docker. Please see [unleash-docker](https://github.com/Unleash/unleash-docker) for details
2016-12-02 17:47:13 +01:00
## Unleash as a Service (SaaS)
2016-12-02 17:47:13 +01:00
2019-05-31 09:16:22 +02:00
After numerous request we have created a separate company, Unleash-hosted, which offer Unleash as a Service. Unleash-hosted allows you to focus on you core business and have someone else taking care of hosting and maintaining Unleash.
2019-08-24 13:08:59 +02:00
Go to [unleash-hosted.com](https://www.unleash-hosted.com/open-source) to learn more about this offering and start using Unleash today. This service also includes official support.
2017-02-25 14:26:46 +01:00
# Developer Guide
2018-11-22 11:20:28 +01:00
If you want to contribute to this project you are encouraged to send issue request, or provide pull-requests. Please read the [unleash developer guide](./docs/developer-guide.md) to learn more on how you can contribute.
# I Need help
2019-10-02 19:43:57 +02:00
- [Join Unleash on Slack](https://join.slack.com/t/unleash-community/shared_invite/enQtNjUxMjU2MDc0MTAxLTJjYmViYjkwYmE0ODVlNmY1YjcwZGRmZWU5MTU1YTQ1Nzg5ZWQ2YzBlY2U1MjlmZDg5ZDRmZTMzNmQ5YmEyOGE) if you want ask open questions about Unleash, feature toggling or discuss these topics in general.
- [Create a issue request](https://github.com/Unleash/unleash/issues/new) if you have found a bug or have ideas on how to improve Unleash.
## Other resources
2018-11-22 11:20:28 +01:00
- [Unleash-hosted - Unleash as a Service](https://www.unleash-hosted.com)
- [Medium blog](https://medium.com/unleash-hosted)
2017-02-25 14:27:48 +01:00
- [Blog: Unleash your features gradually!](http://bytes.schibsted.com/unleash-features-gradually/)
- [Presentation: Unleash your features gradually!](http://ivarconr.github.io/feature-toggles-presentation/sch-dev-lunch-2017/#1)
2017-02-25 14:26:46 +01:00
- http://martinfowler.com/bliki/FeatureToggle.html