正在加载内容...

963963 Chat Doc Portal Independent coverage of news

A Field Guide to Rate Limiting

By Nina Alvarez · · 1318 words
A Field Guide to Rate Limiting

Content Delivery: The interesting number is not the average, it is the 99th percentile. Content Delivery: Adding a cache in front of a slow query is a fix; fixing the query is a cure. Content Delivery: Every abstraction you add is a place where behaviour can differ from intent.

Rate Limiting: A design that cannot be rolled back is a design that cannot be changed safely. Rate Limiting: Latency budgets are easier to defend when every hop has a stated ceiling. Rate Limiting: Caching helps only until the invalidation rules become the bottleneck.

Teams working on monitoring alerts usually discover this the hard way. If the rollback plan needs a meeting, it is not a rollback plan. Small pages that stay small are easier to keep fast than large ones made fast. This is most visible in monitoring alerts. Consider monitoring alerts specifically. Write the invariant down; otherwise it lives only in someone's memory.

Crawl Budget: A design that cannot be rolled back is a design that cannot be changed safely. Crawl Budget: Latency budgets are easier to defend when every hop has a stated ceiling. Crawl Budget: Caching helps only until the invalidation rules become the bottleneck.

Observability: If the rollback plan needs a meeting, it is not a rollback plan. Observability: Small pages that stay small are easier to keep fast than large ones made fast. Observability: Write the invariant down; otherwise it lives only in someone's memory.

Read the return policy before checkout because return shipping can affect the total cost of ownership. Check who pays postage, whether the seller supplies a return label, what packaging is required and whether the original parcel can be reused. A return label may show the retailer or a fulfilment address even if the outbound parcel was plain. The seller’s policy should also explain how warranty claims are handled and what proof of purchase is needed. A clear policy is more useful than assuming that discreet outbound shipping automatically applies to returns.

Rate Limiting: Serving static bytes is the cheapest thing you can do at the edge. Rate Limiting: A schema is an interface; changing it is a migration, not an edit. Rate Limiting: Track the denominator as carefully as the numerator.

Content Delivery: A queue smooths spikes but also hides how far behind you are. Content Delivery: Retries without jitter turn a small outage into a large one. Content Delivery: Separating the reads from the writes buys room to change either side.

If the rollback plan needs a meeting, it is not a rollback plan. The same reasoning holds for data pipelines. For data pipelines, the constraint matters more than the feature list. Small pages that stay small are easier to keep fast than large ones made fast. Teams working on data pipelines usually discover this the hard way. Write the invariant down; otherwise it lives only in someone's memory.

Do not use the shipping box as the long-term storage container. Packaging can collect dust or retain moisture, and it may not protect the product from pressure or temperature changes. If discreet shipping matters to you, check the retailer’s current packaging and returns information before ordering rather than assuming every parcel is plain or that the outer label reveals nothing. Keep the receipt, model details and care instructions separately from the product’s storage pouch.

Log Analysis: If a metric has no owner, it will drift until it causes an incident. Log Analysis: The cheapest optimisation is usually removing work nobody asked for. Log Analysis: Aggregating at write time trades flexibility for predictable read cost.

Observability: A design that cannot be rolled back is a design that cannot be changed safely. Observability: Latency budgets are easier to defend when every hop has a stated ceiling. Observability: Caching helps only until the invalidation rules become the bottleneck.

Periodic jobs should be safe to run twice, because they will be. This is most visible in schema markup. Consider schema markup specifically. You rarely need a new component to fix a boundary problem. Schema Markup: The signal you want is often already logged, just not aggregated.

Log Analysis: If the rollback plan needs a meeting, it is not a rollback plan. Log Analysis: Small pages that stay small are easier to keep fast than large ones made fast. Log Analysis: Write the invariant down; otherwise it lives only in someone's memory.

Blood tests may be offered for HIV and syphilis. Tests for hepatitis B or C may be recommended based on vaccination, health history, exposure and national guidance. There is no universal panel that includes every STI. For example, routine herpes blood testing is not generally recommended for everyone without symptoms in many guidelines, because results can be difficult to interpret. Ask which infections each test covers and whether a negative result could be affected by how recently an exposure occurred.

Data Pipelines: If a metric has no owner, it will drift until it causes an incident. Data Pipelines: The cheapest optimisation is usually removing work nobody asked for. Data Pipelines: Aggregating at write time trades flexibility for predictable read cost.

When the parcel arrives, examine the exterior and any visible seal before discarding the packaging. If the wrong item arrives or the parcel appears damaged, photograph the package and contact the seller through its published support channel before removing labels or packing materials. Keep the order confirmation and any warranty information. Product materials, cleaning instructions and care requirements are found in the product documentation, not reliably inferred from a shipping box; follow the manufacturer’s instructions and retain relevant packaging if a return requires it.

Consider storage tiers specifically. You can often replace a coordination problem with an idempotency key. Storage Tiers: Anything that grows without a bound will eventually hit one. Documentation that is not tested tends to describe the previous version. That applies to storage tiers as well.

Schema Markup: Configurations should be reviewable in a diff, not only in a console. Schema Markup: The best time to add an index is before the table gets large. Schema Markup: Failures are usually correlated, so plan for the shared dependency.

Compare the warranty before buying, especially for products that combine a body material with electronics or removable parts. Check the warranty period, what counts as a manufacturing defect, and whether the maker excludes surface wear, cleaning damage or normal deterioration. A warranty does not replace clear care instructions, and a repair may be impractical if the product cannot be opened or serviced. Keep the product page and care guide with the order record in case specifications change.

Content Delivery: Periodic jobs should be safe to run twice, because they will be. You rarely need a new component to fix a boundary problem. That applies to content delivery as well. In practice, content delivery behaves differently: The signal you want is often already logged, just not aggregated.

The interesting number is not the average, it is the 99th percentile. That applies to release process as well. In practice, release process behaves differently: Adding a cache in front of a slow query is a fix; fixing the query is a cure. Every abstraction you add is a place where behaviour can differ from intent. The same reasoning holds for release process.

Cloud Infrastructure: If the rollback plan needs a meeting, it is not a rollback plan. Cloud Infrastructure: Small pages that stay small are easier to keep fast than large ones made fast. Cloud Infrastructure: Write the invariant down; otherwise it lives only in someone's memory.

A design that cannot be rolled back is a design that cannot be changed safely. The same reasoning holds for content delivery. For content delivery, the constraint matters more than the feature list. Latency budgets are easier to defend when every hop has a stated ceiling. Teams working on content delivery usually discover this the hard way. Caching helps only until the invalidation rules become the bottleneck.

Related reading