Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/unexist/showcase-feature-flags

Showcase for Feature Flags [MIRROR]
https://github.com/unexist/showcase-feature-flags

gin-gonic podman unleash

Last synced: about 1 month ago
JSON representation

Showcase for Feature Flags [MIRROR]

Awesome Lists containing this project

README

        

= Showcase for feature flags

This project is a showcase for feature flags

== Modules

- *infrastructure* - Showcase for arc42
- *todo-service-unleash* - Showcase for Unleash on GinGonic +Updated Golang

== How to use

Once the infrastructure is set up the examples requires the creation of a
feature flag called `app.NewHello` with a proper deployment strategy.

It pretty much works with every default, it just has to be set up like this:

image::docs/feature_flag.png[]

And a simple distribution strategy like this:

image::docs/feature_flag_strategy.png[]

The endpoint provides a different route aptly named hello to answer with well
a hello:

[source,shell]
----
$ make hello
{
"hello": "Hey!"
}
----

The activation can be done via webinterface:

image::docs/feature_flag_strategy.png[]

And after a short delay to propagate the changes the hello changes slightly:

[source,shell]
----
$ make hello
{
"hello": "Howdie!"
}
----

== Under the hood

The magic basically happens here:

[source,go]
include::todo-service-unleash/adapter/TodoResource.go[tag=unleash,indent=2]

== Links

- https://github.com/Unleash/unleash
- https://www.getunleash.io/
- https://featureflagsbook.com/
- https://slumber.lucaspickering.me/book/introduction.html