# Quarkus feature flags

DevFeed: [Quarkus feature flags](<https://devfeed.tech/articles/quarkus-feature-flags-43870.md>)

Original publisher: [Read original article](<https://quarkus.io/blog/quarkus-feature-flags/>)

Author: Martin Kouba (https://twitter.com/martunek)

Published: 2025-12-15T00:00:00Z

Content type: tutorial

Language: en

Sources: [Quarkus - Supersonic Subatomic Java](<https://devfeed.tech/sources/quarkus-supersonic-subatomic-java.md>)

Topics: [feature flags](<https://devfeed.tech/topics/feature-flags.md>), [Quarkus](<https://devfeed.tech/topics/quarkus.md>), [API](<https://devfeed.tech/topics/api.md>), [Object-relational mapping](<https://devfeed.tech/topics/orm.md>), [Security](<https://devfeed.tech/topics/security.md>), [interface](<https://devfeed.tech/topics/interface.md>), [identifier](<https://devfeed.tech/topics/identifier.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [feature-flags](<https://devfeed.tech/tags/feature-flags.md>), [hibernate](<https://devfeed.tech/tags/hibernate.md>), [identifier](<https://devfeed.tech/tags/identifier.md>), [interface](<https://devfeed.tech/tags/interface.md>), [quarkus](<https://devfeed.tech/tags/quarkus.md>), [security](<https://devfeed.tech/tags/security.md>)

## AI overview

This article introduces Quarkus Feature Flags, a lightweight and extensible Quarkus extension for enabling, disabling, and configuring application functionality. It describes its APIs, flag providers, integrations with configuration, in-memory storage, Hibernate ORM, security, Qute templates, and CRON expressions, while noting that it is not intended to replace OpenFeature or Unleash.

## Source excerpt

Feature flags are a proven and popular technique. In essence, a feature flag makes it possible to turn on-off and/or configure a specific functionality in your application. It is also referred to as toggles or switches. There are many types of feature flags. You may have heard of a "killer switch" that simply disables a problematic feature instantly. Feature flags can be used to implement "gradual rollout" to deliver new features gradually to small groups of users (aka beta testers). Permission flags are used to control access for different users. And so on. However, that's not the subject of this blogpost. We would like to introduce Quarkus Feature Flags - a Quarkiverse project that aims to provide a lightweight and extensible feature flags Quarkus extension. More specifically, it provides: A blocking/non-blocking API to access feature flags. A non-blocking SPI to provide flags and externalize the computation of a flag value. Several built-in flag providers: Quarkus config can be used to define feature flags, An in-memory flag repository which is useful for testing and dynamic registration of flags. Hibernate ORM module, where feature flags are mapped from an annotated entity and are automatically loaded from the database. Security module, so that it's possible to evaluate flags based on the current SecurityIdentity. Qute module, so that it's possible to use the flags directly in templates. CRON module with a flag evaluator that matches a specific CRON expression. Note that the goal of this extension is not to replace robust solutions such as OpenFeature and Unleash. Instead, we would like to offer a flexible option that integrates well with other parts of the Quarkus ecosystem. Flag In this extension, a feature flag is represented by the io.quarkiverse.flags.Flag interface. It refers to a specific feature with a string identifier and provides several convenient methods to compute the current value. The value of a feature flag can be represented as boolean, string