Recipe

Build a status badge from a cacheable read

Show a "systems normal" badge driven by a cacheable public read. Poll a cheap read like the loyalty tiers on a slow interval, cache the result, and flip the badge on a 200 with a fresh timestamp. It is a light-touch liveness signal that never trips the rate limit.

2 min read

slow pollEvery minute or two
cacheOne shared check
200+freshHealthy

Poll a cheap read

Call the loyalty endpoint from your server every minute or two — far under the 60/60 s limit — and cache the outcome for all page views to share.

Define the badge states

Green on a 200 with a recent generated timestamp; amber on a 429 (that is your probe, not the API — slow down); red on a 5xx or timeout.

Never probe writes

Drive the badge from a read only. Posting enquiries to check health pollutes real data and burns rate budget. See monitoring.

Why a read makes a good probe

A status badge is only trustworthy if the check behind it is cheap, honest and side-effect free. A cacheable read like the loyalty tiers fits perfectly: it changes nothing, carries no personal data, and returns a timestamp you can use to confirm freshness. Polling it slowly from your server — every minute or two — keeps you far below the rate limit while still catching a genuine outage quickly. The one trap to avoid is treating a 429 as a fault: that response means your own probe is calling too often, not that the platform is unwell, so the right reaction is to slow down rather than raise an alarm. Never drive a badge from a write endpoint, which would pollute real data.

Frequently asked questions

Will a status badge trip the rate limit?

Not if you poll a read every minute or two from your server and cache it. That is well under 60/60 s per IP.

Funding for UK limited companies

Credicorp lends to your company, not to you personally — short-term working capital with no personal guarantee. See what your business could access.