Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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]
- Host: GitHub
- URL: https://github.com/unexist/showcase-feature-flags
- Owner: unexist
- License: apache-2.0
- Created: 2024-06-19T07:23:32.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-06-21T09:52:04.000Z (5 months ago)
- Last Synced: 2024-10-02T05:21:54.483Z (about 2 months ago)
- Topics: gin-gonic, podman, unleash
- Language: Go
- Homepage: https://hg.unexist.dev/showcase-feature-flags
- Size: 248 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
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