Feature Toggle from Scratch

Episode #458 by Teacher's Avatar David Kimura

Summary

In this episode, we build a feature toggle system from scratch without using external dependencies like Redis. We'll create an endpoint to enable or disable specific parts of an application dynamically, focusing on a maintainable approach for future extensions.
rails model service objects 15:42

Chapters

  • Introduction (0:00)
  • Database Migration (1:06)
  • Generating the controller (4:03)
  • Index Action and View (4:34)
  • Feature partial (5:52)
  • Feature toggle (8:04)
  • Building the feature check (9:52)
  • Consuming the feature flag (13:26)
  • Demo (13:46)
  • Final thoughts (14:16)
Student & Teacher
$ 9 /mo

Valid School Email Required

Same Access as Pro

Subscribe Now
Pro Monthly
$ 19 /mo

Access to Pro Episodes

Invite to Slack Channel

Priority Suggestions

Ad Free

Subscribe Now
Pro Annual
Autumn Sale
$ 144 190 /yr

Access to Pro Episodes

Invite to Slack Channel

Priority Suggestions

Ad Free

Subscribe Now
Teams
$ 57 /mo

3 Users Minimum

$19.00 / user / month

Same Access as Pro

Subscribe to Teams