1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/README.md

198 lines
11 KiB
Markdown
Raw Normal View History

2021-06-04 19:38:35 +02:00
<div align="center">
2021-06-04 19:31:28 +02:00
![Build & Tests](https://github.com/Unleash/unleash/workflows/Build%20%26%20Tests/badge.svg?branch=main) [![Coverage Status](https://coveralls.io/repos/github/Unleash/unleash/badge.svg?branch=main&)](https://coveralls.io/github/Unleash/unleash?branch=main) [![npm](https://img.shields.io/npm/v/unleash-server)](https://www.npmjs.com/package/unleash-server) [![Docker Pulls](https://img.shields.io/docker/pulls/unleashorg/unleash-server)](https://hub.docker.com/r/unleashorg/unleash-server)
[![Deploy to Heroku](./.github/deploy-heroku-20.png)](https://www.heroku.com/deploy/?template=https://github.com/Unleash/unleash) [![Deploy to DigitalOcean](./.github/deploy-digital.svg)](https://cloud.digitalocean.com/apps/new?repo=https://github.com/Unleash/unleash/tree/main&refcode=0e1d75187044) [![Twitter Follow](https://img.shields.io/twitter/follow/getunleash)](https://twitter.com/intent/follow?screen_name=getunleash)
2021-06-21 20:08:58 +02:00
<a href="https://getunleash.io" title="Unleash - Create with freedom. Release with confidence">
2021-06-04 23:17:40 +02:00
<img src="./.github/Logo_DarkBlue_Transparent_Portrait.svg" width="200">
2021-06-04 19:39:04 +02:00
</a>
2021-06-04 23:17:40 +02:00
2021-06-04 19:38:35 +02:00
</div>
2021-06-04 19:31:28 +02:00
Unleash is an open-source feature management platform. It provides a great overview of all feature toggles/flags across all your applications and services. Unleash enables software teams all over the world to take full control of how they enabled new functionality to end-users.
2021-06-04 19:31:28 +02:00
Unleash comes with [official client SDKs](https://docs.getunleash.io/sdks) for all the popular languages.
## Features
2021-06-08 22:35:51 +02:00
**Open-Source**
2021-06-13 23:26:14 +02:00
2021-06-04 19:31:28 +02:00
- Boolean feature toggles (on/off)
- Canary release (Gradual rollout)
- Targeted release
- Experimentation (A/B testing)
- Kill Switches
- Custom activation strategies
- Privacy first (GDPR) where end-user data never leaves your application
- Audit logs
- Addons integrating with other popular tools (Slack, Teams, Datadog, etc.)
- It is secure (Enable Secure Headers with strict HTTPS only mode)
- Extremely scalable with evaluations on the client-side. Used in enterprises handling more than 10k req/s. [Read more about our architecture](https://docs.getunleash.io/)
2021-06-04 19:31:28 +02:00
- Dashboard to manage technical debt
- Admin APIs
2021-06-04 23:17:40 +02:00
- Flexible architecture and can be hosted anywhere
- [Docker image available](https://hub.docker.com/r/unleashorg/unleash-server)
2021-06-04 19:31:28 +02:00
2021-06-13 23:26:14 +02:00
**Enterprise**
[Unleash Enterprise](https://www.getunleash.io/plans) builds directly on top of the Open-Source (open-core) and provides additional advanced functionality:
2021-06-04 19:31:28 +02:00
- Project support
- Advanced segmentation
2021-06-08 22:35:51 +02:00
- Environments (unlimited)
2021-06-04 19:31:28 +02:00
- SSO (SAML 2.0, OpenID Connect, etc)
2021-06-13 23:26:14 +02:00
- A cloud offering where the Unleash team host, monitor, scale, patches, upgrades and take full backups for you
- Self-hosted possible
- SLA guarantees
- Support
2021-06-04 19:31:28 +02:00
2021-06-14 21:35:19 +02:00
## Unleash SDKs
2021-06-04 19:31:28 +02:00
In order to connect your application to Unleash you need to use a client SDK for your programming language.
2021-06-04 19:31:28 +02:00
**Official Server SDKs**:
2014-11-10 16:25:22 +01:00
- [Go SDK](https://docs.getunleash.io/sdks/go_sdk)
2021-06-04 19:31:28 +02:00
- [Java SDK](https://docs.getunleash.io/sdks/java_sdk)
- [Node.js SDK](https://docs.getunleash.io/sdks/node_sdk)
- [Python SDK](https://docs.getunleash.io/sdks/python_sdk)
2021-08-19 13:34:05 +02:00
- [PHP SDK](https://docs.getunleash.io/sdks/php_sdk)
- [Ruby SDK](https://docs.getunleash.io/sdks/ruby_sdk)
- [Rust SDK](https://github.com/unleash/unleash-client-rust)
- [.NET SDK](https://docs.getunleash.io/sdks/dot_net_sdk)
2014-11-10 16:39:17 +01:00
2021-06-14 21:35:19 +02:00
**Official Frontend SDKs:**
The frontend SDKs connects via the [Unleash Proxy](https://docs.getunleash.io/sdks/unleash-proxy) in order to ensure Privacy, scalability and security.
2020-01-17 14:02:03 +01:00
2021-06-04 19:31:28 +02:00
- [Android SDK](https://docs.getunleash.io/sdks/android_proxy_sdk)
2021-06-14 21:35:19 +02:00
- [iOS SDK](https://docs.getunleash.io/sdks/proxy-ios)
- [Javascript SDK](https://docs.getunleash.io/sdks/proxy-javascript)
- [React SDK](https://docs.getunleash.io/sdks/proxy-react)
2021-06-14 21:35:19 +02:00
**Community SDKs**
2020-09-18 09:10:40 +02:00
2021-06-08 22:35:51 +02:00
In addition there exists a good list of [community developed SDKs](https://docs.getunleash.io/sdks/community), so there might already exist an implementation for your favorite programming language (e.g. [Rust](https://github.com/cognitedata/unleash-client-rust), [Elixir](https://gitlab.com/afontaine/unleash_ex), [Dart](https://pub.dev/packages/unleash), [Clojure](https://github.com/AppsFlyer/unleash-client-clojure), [NestJS](https://github.com/pmb0/nestjs-unleash), [Kotlin](https://github.com/silvercar/unleash-client-kotlin), [PHP](https://gitlab.com/minds/unleash-client-php) and more.)
2020-01-17 14:02:03 +01:00
2021-06-14 21:35:19 +02:00
## Architecture
<img src="./.github/Unleash_architecture.svg" title="Unleash System Overview" />
[Read more in the Unleash documentation](https://docs.getunleash.io/)
2020-01-17 14:02:03 +01:00
## What is a feature toggle?
2016-12-03 13:23:08 +01:00
2021-07-23 14:23:43 +02: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, and have full control of how we exposed the new feature for.
2016-12-03 13:23:08 +01:00
2022-01-27 16:56:15 +01:00
> Feature toggles decouple **deployment** of code from **release** of new features.
2016-12-03 13:23:08 +01:00
This repo contains the unleash-server, which contains the Unleash Admin UI and the Unleash API. To make use of unleash you will also need a client SDK.
2016-12-03 13:23:08 +01:00
2021-06-04 19:31:28 +02:00
<img src="./.github/dashboard.png" alt="Unleash Admin UI" />
2016-12-23 11:20:51 +01:00
2021-06-04 19:39:51 +02:00
[Online demo](https://app.unleash-hosted.com/demo)
2016-12-23 11:20:51 +01:00
2021-06-14 21:35:19 +02:00
## Segmentation
2018-11-22 11:20:28 +01:00
It's fine to have a system for turning stuff on and off. But sometimes we want more granular control, we want to decide who the toggle should be enabled for. This is where activation strategies come into the picture. Activation strategies take arbitrary config and allow us to enable a toggle to a specific subset of your users (segment).
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
2021-05-27 23:06:01 +02:00
Read more about [activation strategies in our docs](https://docs.getunleash.io/docs/user_guide/activation_strategy).
2016-12-03 13:23:08 +01:00
2021-06-04 19:31:28 +02:00
## The Client API
2020-01-17 14:02:03 +01:00
2021-06-04 19:31:28 +02:00
The [client SDKs](https://docs.getunleash.io/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
}
```
2021-06-04 23:17:40 +02:00
# Running Unleash
2016-12-02 17:47:13 +01:00
2021-06-04 23:17:40 +02:00
The are numbers of ways you can run Unleash.
2016-12-02 17:47:13 +01:00
1. Unleash Enterprise - Cloud hosted by the Unleash Team. [see plans](https://www.getunleash.io/plans)
2021-06-13 23:26:14 +02:00
2. Unleash Open-Source - Self host with Docker. [Guide](https://docs.getunleash.io/deploy/getting_started#start-unleash-server)
3. Unleash Open-Source - Self host with Node.js [Guide](https://docs.getunleash.io/deploy/getting_started#start-unleash-server)
4. Unleash Open-Source - Helm chart [artifacthub.io](https://artifacthub.io/packages/helm/unleash/unleash)
### Run from Docker
1. Create a network by running the following command:
2021-06-13 23:26:14 +02:00
```sh
docker network create unleash
```
2021-06-13 23:26:14 +02:00
2. Start a postgres database:
```sh
docker run -e POSTGRES_PASSWORD=some_password \
-e POSTGRES_USER=unleash_user -e POSTGRES_DB=unleash \
--network unleash --name postgres postgres
```
3. Start Unleash via docker:
```sh
docker run -p 4242:4242 \
-e DATABASE_HOST=postgres -e DATABASE_NAME=unleash \
-e DATABASE_USERNAME=unleash_user -e DATABASE_PASSWORD=some_password \
-e DATABASE_SSL=false \
--network unleash unleashorg/unleash-server
```
The first time Unleash starts it will create a default user which you can use to sign-in to your Unleash instance and add more users with:
2021-06-13 23:26:14 +02:00
- username: `admin`
- password: `unleash4all`
2016-12-02 17:47:13 +01:00
2021-06-13 23:26:14 +02:00
# Users of Unleash
2021-06-04 23:17:40 +02:00
2021-06-13 23:26:14 +02:00
Unleash is trusted by thousands of companies all over the world (we are tracking more than 90 countries already). Proud Open-Source users:
2016-12-02 17:47:13 +01:00
2021-06-14 21:35:19 +02:00
<a href="https://www.nav.no" title="NAV.no"><img src="./.github/ext-logos/nav.jpg" height="70" style="padding: 10px; border: 1px solid silver"></a> <a href="https://www.otovo.com" title="Otovo"><img src="./.github/ext-logos/otovo.png" height="70" style="padding: 10px; border: 1px solid silver"></a> <a href="https://www.amedia.no/" title="Amedia"><img src="./.github/ext-logos/amedia-logo.png" height="70" style="padding: 10px; border: 1px solid silver"></a> <a href="https://budgets.money" title="Budgets"><img src="./.github/ext-logos/budgets.png" height="70" style="padding: 10px; border: 1px solid silver"></a> <a href="https://www.finn.no" title="FINN.no"><img src="./.github/ext-logos/finn.jpg" height="70" style="padding: 10px; border: 1px solid silver"></a>
2019-05-31 09:16:22 +02:00
2021-06-13 23:26:14 +02:00
_(PS! feel free to submit your logo!)_
2017-02-25 14:26:46 +01:00
2021-06-04 23:17:40 +02:00
# Contribute to Unleash
Unleash has been built with the help of many smart individuals. This ensures that we build a product that solves real problems for people. If you want to contribute to this project you are encouraged to send issue requests, or provide pull-requests.
1. Read [CONTRIBUTING.md](./CONTRIBUTING.md) to learn more on how you can contribute
2021-10-25 18:54:46 +02:00
1. Browse the [developer-guide](./website/docs/contributing/developer-guide.md) for tips on environment setup, running the tests, and running Unleash from source.
2018-11-22 11:20:28 +01:00
2021-06-14 21:35:19 +02:00
# Community and Help
We know that learning a new tool can be hard and time-consuming. We have a growing community that loves to help out. Please don't hesitate about reaching out to get 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.
2021-06-14 21:35:19 +02:00
- [Follow Unleash on Twitter](https://twitter.com/getunleash) if you want to stay updated on the latest progress of the Unleash project.
2021-06-04 23:17:40 +02:00
# In the media
2022-01-27 16:56:15 +01:00
- [Free Code Camp: Feature toggles - Why and how to add to your software](https://www.youtube.com/watch?v=-yHZ9uLVSp4)
2021-08-25 13:40:13 +02:00
- [Feature toggling transient errors in load tests](https://nrkbeta.no/2021/08/23/feature-toggling-transient-errors-in-load-tests/) (English)
2021-06-13 23:26:14 +02:00
- [The Code Kitchen Episode 7: Feature flags with Unleash](https://share.fireside.fm/episode/zD-4e4KI+Pr379KBv) (English)
- [Utviklerpodden, 1 - Feature Flags og Unleash med Fredrik Oseberg](https://pod.space/utviklerpodden/feature-flags-og-unleash-med-fredrik-oseberg) (Norwegian)
- [Node Weekly issue 380](https://nodeweekly.com/issues/380)
2021-06-04 19:31:28 +02:00
- [Console 42 - The open-source newsletter](https://console.substack.com/p/console-42)
2021-03-01 22:03:11 +01:00
- [This Week in Rust 340](https://this-week-in-rust.org/blog/2020/05/27/this-week-in-rust-340/)
- [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