SShortSingh.
Back to feed

Recording Feature Flag Decisions with Four Signals for Tenant Cost Allocation

0
·13 views

The author argues that a feature flag's enabled boolean alone cannot explain how experiment costs were distributed across tenants. Their approach records four signals with each evaluation: the evaluation result, flag version, tenant cohort, and a stable operation ID. The application needs a fast decision, while SRE and finance teams need the tenant, rule revision, and downstream work tied to that decision, so the author keeps the former in the response and the latter in structured telemetry. The article advises against high-cardinality or sensitive identifiers such as raw emails or tokens as correlation keys, and recommends keeping tenant-level detail in event logs rather than metric labels. It also notes that queue retries should reuse the original decision via the job payload with idempotent consumers, so a single operation produces one accounting event.

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 ·

Seven Resource Management Tools Compared for Balancing Staff, Equipment and Rooms

Overlapping project deadlines can clash even when each schedule seems reasonable, which is why resource management tools help teams see assignments and availability before taking on more work. The best fit depends on whether a team needs to schedule only people or also equipment, rooms, and other shared assets. The guide evaluates seven options against four practical needs: capacity forecasting, scheduling flexibility, fit with team size and operating model, and visibility into financial or time impact. ONES.com is highlighted for rebalancing workloads across projects or sprints, while Resource Guru is suited to booking people alongside equipment and meeting rooms. Other tools covered, such as Kantata, target professional-services organizations that require project accounting and PSA processes.

0
ProgrammingDEV Community ·

How to Write a Google Ads Campaign Brief That Keeps Ad Groups Tightly Focused

Many self-managed Google Ads campaigns end up with bloated ad groups, mediocre Quality Score, and unclear ad performance, usually because they were built without a proper brief. The author argues the brief should be written before touching the interface and should define one business goal per campaign, group buyers by search intent, map tight keyword themes to each segment, pair each theme with a dedicated landing page, and set a negative keyword list before launch. A SaaS example contrasts a weak single-audience approach with a segmented one that splits small-team buyers, competitor switchers, and bottom-of-funnel shoppers. The article also lists common mistakes, such as relying on keyword tools alone, running one ad group for a whole product, and writing the brief after launch. The piece is written by a team behind an AI tool that generates campaign briefs.

0
ProgrammingDEV Community ·

How Small Businesses Can Plan, Build and Launch a Website That Converts

A small business website should clearly explain the offer, build trust, and make it easy for customers to get in touch. The first step is choosing the primary action the site should drive, such as booking, requesting a quote, calling, or buying, and anticipating the questions visitors have before acting. Owners should choose a structure suited to their offerings, whether single-page, multi-page, or an online store, and build only what they can realistically maintain. Essential pages include Home, Services, About, and Contact, with authentic testimonials, case studies, and FAQs added where they answer real questions. The guide also stresses practical checks such as testing forms and navigation on phones, securing the site with HTTPS and backups, aligning privacy notices with actual data practices, and confirming ownership of the domain and content. After launch, the author recommends improving the site based on real customer questions rather than adding features for their own sake.

0
ProgrammingDEV Community ·

Zepto Scraper in Python: Pulling Category Listings, Prices and Stock Data

Zepto, the Indian 10-minute grocery app, shows selling price, MRP, discount and stock count on each product card, and a short Python workflow can export these to CSV. The site sits behind AWS WAF, so a plain requests call returns a 202 with an empty body, and checking only for errors with raise_for_status() would miss this. Routing requests through Scrape.do with no extra parameters returns the full page, and the product data is embedded in the HTML as Next.js stream chunks that can be decoded with a regular expression and JSON parsing. Out-of-stock cards use a different leading key, so anchoring the parser on only one key silently drops products. The article's fix is to anchor on both keys and deduplicate by variant ID.