-
Notifications
You must be signed in to change notification settings - Fork 17
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
feat: add specific use cases #174
Changes from all commits
b7fa42b
b1cd280
a7de531
0873512
8084acb
e5e0c81
e6b632c
f27a17c
92f25d0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
--- | ||
title: CloudNative | ||
description: This document describes how Flipt thrives in a CloudNative environment. | ||
mode: wide | ||
--- | ||
|
||
## Overview | ||
|
||
Flipt is a CloudNative feature flag solution. While Flipt can run in almost any environment, it is especially well suited for CloudNative environments. | ||
Check failure on line 9 in usecases/cloudnative.mdx
|
||
|
||
CloudNative means different things to different people. We define CloudNative as an environment that is: | ||
Check failure on line 11 in usecases/cloudnative.mdx
|
||
|
||
- **Containerized** - Flipt is distributed as a container image and can be deployed to any container orchestration platform. | ||
- **Dynamic** - Flipt is designed to be deployed and updated with minimal downtime. | ||
- **Scalable** - Flipt is designed to scale horizontally and vertically. | ||
- **Observable** - Flipt is designed to be observable. It exposes Prometheus metrics and logs in a structured format. | ||
- **Stateless** - Flipt is designed to be stateless. It supports multiple storage backends, including cloud object storage and SQL databases. | ||
|
||
## Kubernetes and Helm | ||
|
||
Flipt is mainly distributed as a container image. While it is a single binary and can run easily on bare metal, most users choose to deploy Flipt to a container orchestration platform such as Kubernetes. | ||
Check failure on line 21 in usecases/cloudnative.mdx
|
||
|
||
To deploy Flipt to Kubernetes, use our Helm chart as described in our [Kubernetes](/self-hosted/kubernetes) documentation. | ||
|
||
Flipt also integrates directly with Kubernetes service account tokens for authentication. This allows services deployed into the same Kubernetes cluster as Flipt to automatically gain authenticated access to the Flipt API without additional management of static client tokens. | ||
|
||
See our [Kubernetes Authentication](/authentication/methods#kubernetes) documentation for more information on how to configure Kubernetes service account authentication. | ||
|
||
## Metrics and Observability | ||
|
||
### Metrics | ||
|
||
Flipt exposes Prometheus metrics on the `/metrics` endpoint. These metrics are designed to be scraped by Prometheus and visualized in external tools such as Grafana. | ||
|
||
See the [Metrics Configuration](/configuration/observability#metrics) documentation for more information on the metrics exposed by Flipt and how to configure them. | ||
|
||
### Logging | ||
|
||
Flipt writes structured logs in JSON format. These logs are designed to be ingested by external log aggregation tools such as Elasticsearch, Splunk, and Grafana Loki. | ||
|
||
For more information on the logs exposed by Flipt and how to configure them, see the [Logging Configuration](/configuration/observability#logging) documentation. | ||
|
||
### Tracing | ||
|
||
Flipt exposes tracing information in the OpenTelemetry format. This allows you to trace requests through Flipt and into your application. Flipt also annotates the traces with information such as the feature flag and variant that was evaluated. | ||
|
||
For more information on the tracing exposed by Flipt and how to configure it, see the [Tracing Configuration](/configuration/observability#tracing) documentation. | ||
|
||
## Storage | ||
|
||
Flipt is designed to be stateless. It supports multiple storage backends, including cloud object storage, git, OCI, and SQL databases. | ||
|
||
Our [declarative storage](/configuration/storage#declarative) also allows you to easily migrate between storage backends. For example, you can start with a local SQLite database and migrate to a cloud object storage backend as your usage grows. | ||
|
||
## Security and Performance | ||
|
||
### Security | ||
|
||
Flipt supports multiple authentication methods, including static tokens, Kubernetes service account tokens, JWT, and OIDC. | ||
|
||
See our [Authentication](/authentication) documentation for more information on the authentication methods supported by Flipt. | ||
|
||
### Performance | ||
|
||
Flipt is written in Go and is designed to be performant. It's horizontally scalable and can be deployed to multiple replicas to handle increased load. | ||
|
||
Flipt also supports caching of feature flag evaluations. This allows you to cache the results of feature flag evaluations in memory to reduce the load on your storage backend. | ||
|
||
Finally, Flipt's GRPC API is meant to be used in a cloud environment such as Kubernetes. This allows you to deploy Flipt in the same Kubernetes cluster as your applications and take advantage of the low latency and high throughput of the Kubernetes network. | ||
|
||
See our [Architecture](/operations/architecture) and [Deployment](/operations/deployment) documentation for more information on how to deploy Flipt for performance and scalability. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
title: Edge/IoT | ||
description: This document describes how Flipt can be used in edge and IoT computing environments. | ||
mode: wide | ||
--- | ||
|
||
## Overview | ||
|
||
Flipt is designed to be able to be used in an edge computing environment. This means that Flipt can be deployed to a device that's close to the end user. This is in contrast to a centralized computing environment where the application is deployed to a data center that's far away from the end user, such as a cloud provider. | ||
|
||
Because of Flipt's small footprint and single binary deployment, it's well suited for edge computing environments. Also, since the Flipt server is stateless, it can be deployed in a highly available configuration. This means that multiple Flipt servers can be deployed to the edge and requests can be load balanced across them, providing a highly available service to the end user. | ||
|
||
Our [Deployment](/operations/deployment) documentation provides more information on how to deploy Flipt in a highly available configuration. | ||
|
||
## Storage | ||
|
||
Flipt supports a variety of storage backends, allowing it to be deployed to a variety of edge computing environments. | ||
|
||
### Edge-Compatible Databases | ||
|
||
Flipt's pluggable data store architecture allows it to be deployed to a variety of edge computing environments without requiring traditional server-based relational databases. Specifically, Flipt's support for SQLite, [LibSQL](https://turso.tech/libsql), and [Turso](https://turso.tech/) allow it to run in environments where a traditional database is not available. | ||
Check failure on line 21 in usecases/edge.mdx
|
||
|
||
See the [Database Support](/configuration/storage##relational-database) section for more information on Flipt's relational database support. | ||
|
||
### Declarative Storage | ||
|
||
Flipt's declarative storage backends allow it to run without a database at all. Flipt can be configured to load its feature flag data in the following ways: | ||
|
||
- From a file on the local filesystem | ||
- From a remote git repository | ||
- From an OCI compliant container image registry | ||
- From any of the 3 major cloud computing object storage services (AWS, Google Cloud, and Azure) | ||
|
||
These backends allow you to deploy Flipt to the edge and evaluate feature flags close to your end user. | ||
|
||
See the [Declarative Storage](/configuration/storage#declarative) section for more information on Flipt's declarative storage backends. | ||
|
||
## GRPC API | ||
|
||
GRPC is a high performance, open source, universal RPC framework. Flipt's GRPC API allows it to run in environments where HTTP isn't available or practical. This is especially useful in environments that require low latency and high throughput, such as IoT devices. | ||
|
||
See our [Architecture](/operations/architecture) section for more information on Flipt's GRPC API and overall architecture. | ||
|
||
## Client Side Evaluation | ||
|
||
Flipt's client-side evaluation SDKs allow feature flag evaluation to be performed directly from edge clients, without the need of making evaluation requests to the central Flipt server. This is especially useful in environments where the edge client isn't always connected to the internet, such as IoT devices. | ||
|
||
Client side evaluation has shown to be up to 1000x faster than traditional server side evaluation, and as such greatly decreases the number of network requests required. This is especially useful in environments where network bandwidth is limited (such as IoT devices), where there is sensitivity to latency (e.g. high throughput services), or on critical paths where transient failures must be avoided at all costs (e.g. during transaction processing). | ||
|
||
See our [Client Side Integration](/integration/client) documentation for more information. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
Check warning on line 1 in usecases/gitops.mdx
|
||
title: GitOps | ||
description: This document describes how Flipt can be used with GitOps workflows | ||
mode: wide | ||
--- | ||
|
||
## Overview | ||
|
||
GitOps is a way to do Continuous Delivery, it works by using Git as a single source of truth for declarative infrastructure and applications. With Git at the center of your delivery pipelines, developers can make pull requests to accelerate and simplify application deployments. | ||
|
||
Flipt is uniquely suited to work with GitOps workflows because of our declarative backends and ability to be configured completely via YAML, or JSON. | ||
Check warning on line 11 in usecases/gitops.mdx
|
||
|
||
We believe that feature flags are a form of configuration and should be treated as such. This means that feature flags should be able to be stored in the same repository as the code that uses them. This allows developers to make changes to both the code and the feature flags in the same pull request. This also allows developers to use the same GitOps tooling to deploy both their code and their feature flags to production. | ||
Check warning on line 13 in usecases/gitops.mdx
|
||
|
||
## Git Backend | ||
Check warning on line 15 in usecases/gitops.mdx
|
||
|
||
Flipt's declarative storage backends allow it to run without a database at all. Flipt can be configured to load its feature flag data in the following ways: | ||
|
||
- From a file on the local filesystem | ||
- From a remote **git repository** | ||
- From an OCI compliant container image registry | ||
- From from any of the 3 major cloud computing object storage services (AWS, Google Cloud, and Azure) | ||
|
||
Our git support enables you to evaluate feature flags across different branches and tags. This allows developers to test feature flags in a staging environment before merging them into production, or leverage preview environments to test feature flags in isolation. | ||
Check warning on line 24 in usecases/gitops.mdx
|
||
|
||
Read our [Get Going with GitOps](https://www.flipt.io/docs/guides/get-going-with-gitops) guide to learn how to get started with GitOps and Flipt. | ||
Check warning on line 26 in usecases/gitops.mdx
|
||
|
||
## CI/CD Integration | ||
Check warning on line 28 in usecases/gitops.mdx
|
||
|
||
Our [GitHub Action](/tooling/github-actions) allows you to easily integrate Flipt into your CI/CD pipelines. This allows you to install Flipt into your CI pipeline and run tests against your feature flags before deploying your code to production. | ||
|
||
You can either import your feature flag data from your repository into Flipt using our [Import Command](/cli/commands/import) or run Flipt over your repository directly using our [Local storage](/configuration/storage#local-2) backend. | ||
|
||
This allows you to import your feature flag data into Flipt before running your tests. | ||
|
||
## Validation | ||
|
||
Flipt's [Validate Command](/cli/commands/validate) allows you to validate your feature flag data against a schema. This allows you to ensure that your feature flag data is valid before deploying it to production. This is especially useful when using Flipt with GitOps workflows because it allows you to catch errors in your configuration in the CI stage. | ||
|
||
You can also add your own custom validation rules to the schema to ensure that your feature flag data is valid for your specific use case. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could additionally add that the same goes for the declarative backends. They allow you to deploy Flipt to edge locations, much like putting a CDN infront of an s3 bucket. You can deploy Flipt infront of object storage and evaluate at the edge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah i moved the section on declarative storage up and put them both under the same heading