SShortSingh.
Back to feed

Implementing Node.js Feature Flags — Backend API Rollout Evidence for SaaS

0
·1 views

A Node.js feature flags backend API becomes dangerous when its current value is the only fact left after an incident. For a developer-tools SaaS, rollback safety depends on retaining the decision that exposed each account, the configuration that produced it, and the outcome that followed. TL;DR: manage simple flags in the backend, use deterministic account assignment for percentage exposure, and poll for configuration changes. Before enabling the first account, write an append-only release-evidence record outside the flag store. Infrai can suit a small control plane that benefits from a broad

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Preserve plus signs and ampersands in demo search URLs

Build search parameters from raw values with URLSearchParams so a plus sign or ampersand in the user's input survives the round trip. A prototype may work with a single word and fail with a team name such as C++ & design. Concatenating that value into a query string gives punctuation another job: an ampersand can separate parameters, and a plus sign in form-style query syntax can be decoded as a space. Rehearse a value that contains both characters. Use a URL object for the full address, then set the unencoded input value on its searchParams.

0
ProgrammingDEV Community ·

Running AWS Strands Decider 2B Locally: A Complete Setup Guide for AI Routing & Multi-RAG Systems

🚀 Running AWS Strands Decider 2B Locally for Multi-RAG and Agentic AI Applications As GenAI applications become more sophisticated, one challenge continues to surface: How do we make reliable decisions before invoking an LLM? For example: Which datasource should answer this question? Should I query PLM, Jira, or Confluence? Do I have enough context to answer confidently? Should an AI agent invoke a tool or ask a clarification question?

0
ProgrammingDEV Community ·

Retry Storms: How a 502 Fix Created a Thousand Duplicate Orders

Retry Storms: How a 502 Fix Created a Thousand Duplicate Orders In modern distributed systems, transient failures are inevitable. Timeouts, circuit breakers, and retries are standard defense mechanisms. But when idempotency—the guarantee that processing the same request multiple times has the same effect as processing it once—is skipped, retries turn into a destructive force. This isn’t a theoretical scenario. It’s a real incident that unfolded in a production e-commerce system, where a single upstream timeout cascaded into thousands of duplicate orders.

0
ProgrammingDEV Community ·

Topic 13: Shortest Path Algorithms 🚀

Now we move deeper into graphs. The key interview question is: Given a graph, how do I find the minimum-cost path from one node to another? The correct algorithm depends mainly on edge weights. Memorize this table: Graph Algorithm Unweighted graph BFS Weights are only 0 and 1 0-1 BFS Non-negative weights Dijkstra Negative weights possible Bellman-Ford All-pairs shortest paths Floyd-Warshall DAG Topological-order shortest path Unweighted → BFS Non-negative weighted → Dijkstra Negative edges → Bellman-Ford You already saw this with BFS. Example: 0 --- 1 --- 2 | 3 Every edge has equal cost.