惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
Y
Y Combinator Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Hugging Face - Blog
Hugging Face - Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Cloudflare Blog
L
LangChain Blog
美团技术团队
N
Netflix TechBlog - Medium
量子位
酷 壳 – CoolShell
酷 壳 – CoolShell
B
Blog
博客园 - 司徒正美
爱范儿
爱范儿
D
DataBreaches.Net
月光博客
月光博客
U
Unit 42
B
Blog RSS Feed
Engineering at Meta
Engineering at Meta
Apple Machine Learning Research
Apple Machine Learning Research
Jina AI
Jina AI
MongoDB | Blog
MongoDB | Blog
腾讯CDC

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Redis just became your feature flag system. Yes, really! 🚀
sgs246 · 2026-05-18 · via DEV Community

Every time I looked at feature flag SaaS pricing, I had the same thought: I already run Redis. Why am I paying $500/month for a server I don't need?

Feature flags are not complicated. A flag is enabled or disabled. A user gets it or they don't. That's it.

So I built redis-feature-flags — a feature flag library backed by Redis you already run.

💰 No new server — cut your infrastructure costs
🔒 No data leaving your infrastructure — ever
📦 No monthly bill — completely free

If you're already running Redis, you're 60 seconds away from production-ready feature flags.

What is redis-feature-flags?

A Python and Java SDK that turns your existing Redis instance into a feature flag system.

  • Gradual rollout — release to 10% of users, then 50%, then 100%
  • User targeting — give specific users early access
  • Cohort targeting — target entire groups (beta testers, enterprise users)
  • Kill switch — disable any feature instantly, no redeploy needed
  • Flag expiry — auto-expire flags at a timestamp, no cleanup needed
  • Multiple environments — prod, staging, dev on one Redis instance
  • CLI included — manage flags from your terminal

Who is this for?

redis-feature-flags is ideal for:

  • Startups and small teams who already run Redis and want to avoid adding new infrastructure
  • Teams that are cost-conscious and want to eliminate SaaS subscriptions
  • Developers who want full control over their data — no third party ever sees your flag evaluations
  • Teams that value simplicity — no new service to deploy, monitor, or on-call for

If you already have Redis in your stack, this is a zero-overhead addition.

Get started in 60 seconds

pip install redis-feature-flags

Enter fullscreen mode Exit fullscreen mode

import redis
from redis_feature_flags import FeatureFlags

r = redis.Redis()
flags = FeatureFlags(r, env="prod")

flags.create("dark_mode", rollout=10)
flags.enable("dark_mode")

flags.is_enabled("dark_mode", user_id="alice")  # → True or False

Enter fullscreen mode Exit fullscreen mode

That's it. No API keys. No account. No configuration files. Just Redis.

Works when Redis is down

The SDK has a three-tier cache design:

Warm cache — flag data served from in-process memory. No Redis call. Sub-millisecond.

Cold cache — flag data fetched fresh from Redis. Still fast.

Stale cache — if Redis goes down, the last known flag state keeps serving. Your application never crashes because Redis is temporarily unavailable.

Redis up → warm cache or fetch fresh from Redis
Redis down → serve stale cache (last known state)
Redis down + nothing cached → return default value

🔒 Your flag data never leaves your infrastructure. Ever.

Well tested

  • Python SDK — 94 tests, 100% coverage
  • Python CLI — 68 tests, 95.83% coverage
  • Java SDK — 109 tests passing
  • E2e tests against real Redis — not mocks
  • Benchmarked — warm cache evaluation under 0.1ms

CI runs on every commit across Python 3.9, 3.10, 3.11, 3.12, 3.13 and Java 17.

Manage flags from your terminal

The CLI works with any language SDK. Create a flag with the CLI, evaluate it in Python or Java.

pip install redis-flags

redis-flags use prod
redis-flags create dark_mode --rollout 10
redis-flags enable dark_mode
redis-flags list
redis-flags inspect dark_mode

Enter fullscreen mode Exit fullscreen mode

The CLI auto-detects your OS username for audit trail. Every change is tracked.

Links

⭐ GitHub: https://github.com/sgs-97/redis-feature-flags

📦 Python SDK: https://pypi.org/project/redis-feature-flags

🖥️ CLI: https://pypi.org/project/redis-flags

☕ Java SDK: https://central.sonatype.com/artifact/io.github.sgs-97/redis-feature-flags

📖 Documentation: https://github.com/sgs-97/redis-feature-flags/blob/master/docs.md

📋 README: https://github.com/sgs-97/redis-feature-flags/blob/master/README.md

Contributions welcome. Especially TypeScript and Go SDKs.