Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ff4j/ff4j
Feature Flags for Java made easy
https://github.com/ff4j/ff4j
feature flipping toggle
Last synced: 4 days ago
JSON representation
Feature Flags for Java made easy
- Host: GitHub
- URL: https://github.com/ff4j/ff4j
- Owner: ff4j
- License: apache-2.0
- Created: 2013-06-22T14:36:32.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2024-10-29T03:45:36.000Z (about 2 months ago)
- Last Synced: 2024-10-29T15:34:50.296Z (about 2 months ago)
- Topics: feature, flipping, toggle
- Language: Java
- Homepage: http://ff4j.org
- Size: 10.5 MB
- Stars: 1,380
- Watchers: 52
- Forks: 276
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- awesome-java - FF4J - Feature Flags for Java. (Projects / Miscellaneous)
README
# ✨✨✨ FF4J - Feature Flipping for Java ✨✨✨
![Build Status](https://github.com/ff4j/ff4j/actions/workflows/build_workflow.yml/badge.svg?branch=main)
[![Backers on Open Collective](https://opencollective.com/ff4j/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/ff4j/sponsors/badge.svg)](#sponsors) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.ff4j/ff4j-core/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.ff4j/ff4j-core/)
[![codecov](https://codecov.io/gh/ff4j/ff4j/branch/main/graph/badge.svg?token=qMQlFdPN80)](https://codecov.io/gh/ff4j/ff4j)[![Codacy Badge](https://app.codacy.com/project/badge/Grade/9eeaf11647704bb991243b9eb380efb0)](https://www.codacy.com/gh/ff4j/ff4j/dashboard?utm_source=github.com&utm_medium=referral&utm_content=ff4j/ff4j&utm_campaign=Badge_Grade)
[![chat](https://img.shields.io/badge/chat-on%20discord-blue?style=flat-square)](https://discord.gg/y8RMbHQR)
[![License Apache2](https://img.shields.io/hexpm/l/plug.svg)](http://www.apache.org/licenses/LICENSE-2.0)FF4j, is an implementation of the [Feature Toggle](http://martinfowler.com/bliki/FeatureToggle.html) pattern.
## 🤘Features
- **Feature Toggle:** Enable. and disable features at runtime - no deployments. In your code implement multiple paths protected by dynamic predicates (if/then/else).
- **Role-based Toggling:** Enable features not only with flag values but also drive access with roles and groups (Canary Release). Different frameworks supported starting by Spring Security.
- **Strategy-based Toggling:** Implement custom predicates (Strategy Pattern) to evaluate if a feature is enabled. Some are provided out of the box: White/Black lists ,Time based, Expression based. Connect external source like a Drools rule engine.
- **AOP-driven Toggling:** Keep your code clean and readable: Avoid nested if statements but use annotations. Thanks to Spring AOP target implementation is pick at runtime, and thus driven by feature statuses.
- **Features Monitoring:** For each features execution, ff4j evaluates the predicate therefore it's possible to collect and record events, metrics to compute nice dashboards or draw curves for features usage over time.
- **Audit Trail:** Each action (create, update, delete, toggles) can be traced and saved in the audit trail for troubleshooting. With permissions management (AuthorizationManager) it's possible to identify users.
- **Web Console:**
Administrate FF4j (including features and properties) with the web UI. Packaged as a servlet in the library you will expose it in your backend applications. Almost 10 languages available.- **Wide choice of Databases** Our proud: we support 20+ databases technologies to store your features, properties and events. Same business model, multiple implementations. Thanks to extension points it's easy to build your own.
- **Spring Boot Starter** Import ff4j-spring-boot-starter dependency in your microservices to get the web console and rest api working immediately. (To be used for the backend app. Now compliant with Spring Boot 2x: 👉 SAMPLES
- **REST Api** Operate FF4j through a WEB API. This is the way to go to use ff4j with others languages, specially javascript frontends.(also: leverage on FeatureStoreHttp to avoid microservices to directly connect to the DB.
- **Properties (CMDB)** Store not only feature statuses but any property value.. Create properties you can change at runtime . It is integrated with most used frameworks like Spring, Archaius, commons-config or Consul.
- **(Distributed) Cache** Evaluating predicates may put pressure on DB (high hit ratio). ff4j provides local and distributed caches to help. (edit feature also evict cache). Leveraging JSR-107 it supports most of cache solutions.
- **Command Line Interface** To automate things or because web ports may be blocked (you know, production...) you can work through SSH using our Command Line Interface (cli), our Shell #devOps. It will interact directly with storages.
- **JMX and MBeans** Limited set of operations can be performed through JMX. ff4j exposes some Mbeans to read metrics or toggle features from external tools (Nagios...). Not all applications are web based.(batches, shell, standalone...)
More information can be found at [ff4j.org](http://ff4j.org) or
[Reference Documentation](https://github.com/ff4j/ff4j/wiki) in the wiki.
## 🔨 Getting Started
[Check the Getting started here](http://ff4j.org/#10min)
## 👀 Screenshot
Home Page
Features
Monitoring
## 👤Contributors
This project exists thanks to all the people who contribute. [[Contribute]](CONTRIBUTING.md).
## Backers
Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/ff4j#backer)]
## Sponsors
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/ff4j#sponsor)]