Skip to main content
New: the Agentic AI Academy, 5 courses on running AI agents in production.Start free →
intermediate

Feature Flags Without Lock-In: OpenFeature in Java

A feature flag starts as a glorified conditional and ends as production configuration with a lifecycle. This course builds that lifecycle in Java with OpenFeature, the CNCF standard for feature flags: one evaluation API, a safe default on every call, providers you can swap, evaluation context for targeting, and hooks that send every evaluation to OpenTelemetry. It follows Simon Schrottner's talk at the Amsterdam Java User Group, as Luca Berton wrote it up on lucaberton.com, and his Udienza interview.

You type every command yourself, break a flag on purpose to see the default win, move the same flag from flagd to self-hosted Flagsmith without touching the calls, and find a flag nobody evaluates any more before you delete it.

The narration is a synthetic voice made from the author's own voice.

6 lessons31mUpdated November 2026

What you'll learn

  • Tell release, ops, experiment and permission flags apart, and how long each should live
  • Evaluate flags through the OpenFeature Java SDK, and rely on the mandatory default when anything goes wrong
  • Swap the flag provider from flagd to Flagsmith without changing the evaluation calls
  • Target users and regions with evaluation context, and predict the result from the merge order
  • Send every flag evaluation to OpenTelemetry with a hook
  • Find obsolete flags from telemetry and remove them safely

Who this is for

  • • DevOps engineers deepening their expertise
  • • SREs building production-grade systems
  • • Backend developers expanding into infrastructure

Prerequisites

  • • A Mac with Apple silicon, Docker through Colima, and a Java 25 JDK
  • • Basic Java: classes, methods and running a program from the terminal
  • • No feature-flag product is needed: the course runs flagd and Flagsmith locally

Course content

2 modules, 6 lessons, 31m of video

Module 1

3 lessons, 16 min
1

5 min

See why a repurposed flag can cost a company, sort flags into four kinds, and evaluate a flag through the OpenFeature Java SDK with flagd reading a JSON file. Then change the flag in the file, not in the code. The narration is a synthetic voice made from the author's own voice.

2
The default is mandatory

5 min

Break a flag four ways: an unreachable provider, a mistyped key, a wrong type and an evaluation error. Read the evaluation details each time, and watch the default keep the service answering.

3
Change the provider, not the code

7 min

Run Flagsmith on your Mac with Docker Compose, create the same flag in its dashboard, and switch the provider in one class. The evaluation calls stay the same, and a toggle in the dashboard changes the running service at its next request, with no restart.

Module 2

3 lessons, 15 min
4
Targeting with evaluation context

5 min

Set context globally, per client and per call, write a flagd rule that targets a region and then ten percent of the other users, and predict which value wins from the merge order.

5
Hooks and OpenTelemetry

7 min

Write a small hook for each stage of an evaluation, then add OpenTelemetry's traces and metrics hooks, and find every evaluation, with its flag key and variant, in Jaeger.

6
Find and remove an obsolete flag

5 min

Give flags an owner and an expiry, ask Jaeger's query API whether anyone still evaluates a flag, and remove it from the code before you remove it from the provider.

Get started

Start Free Lesson

First lesson is always free — no signup required

This course includes

6 hands-on lessons
Intermediate level
31m total
Final assessment

Every lesson, with Pro

All 6 lessons of this course and every other course.

$25 a month billed yearly, or $29 month to month

Until 30 November: $210 for the first year, or $14.50 for the first month, with code LAUNCH.

See plans →

Your instructor

Luca Berton

Founder and CEO, Open Empower. About the author

More in Foundations

All courses in this track