Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: hyper Flag service #616

Open
TillaTheHun0 opened this issue Dec 13, 2023 · 0 comments
Open

Proposal: hyper Flag service #616

TillaTheHun0 opened this issue Dec 13, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@TillaTheHun0
Copy link
Member

TillaTheHun0 commented Dec 13, 2023

With all of our customers, we advocate for trunk based development, and separating release from deployment; code ought to be continuously delivered, with features being shipped behind flags. The DORA metrics show that this is what high performing teams do.

Feature flags are so essential to this way of delivering, that it would make sense for the service framework to have a Flag service. The api would be really simple, basically a key-value store, but geared towards feature flags:

// Store api
create(name: string): Promise<{ ok: boolean }>
destroy(name: string): Promise<{ ok: boolean }>
// Flag api
get (name: string): Promise<{ ok: boolean, flag: any }>
set (name: string, value: any): Promise<{ ok: boolean }>
remove(name: string): Promise<{ ok: boolean }>

Since flags can be more than just booleans, it makes sense to allow the value to be anything. Maybe there are other apis, but this is simple, and general purpose, in the spirit of the framework.

This API could be implemented on so many technologies -- practically anything that can store key-value pairs. A sqlite adapter would be enough for most teams. Adapters could also be written on top of SaaS like LaunchDarkly, but starting out that'd most likely be overkill.

@TillaTheHun0 TillaTheHun0 added the enhancement New feature or request label Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant