{
  "id": 22111366,
  "title": "Updating a public counter every 5 minutes on a free plan",
  "url": "https://urgent.news/2026/11/27/updating-a-public-counter-every-5-minutes-on-a-free-plan",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-27T04:17:36.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/arlts/updating-a-public-counter-every-5-minutes-on-a-free-plan-3pon"
  },
  "original_language": "en",
  "account": "The ARLTS public \"impact board\" now updates every 5 minutes instead of hourly, with no additional cost. This was achieved by modifying a cloud function that retrieves visitor statistics from the analytics tool PostHog. The function can operate in \"quick mode,\" requesting only the two lightest questions about all-time visitors and active users, which reduces the load. The updated board displays visitor numbers within about 11 minutes, a significant improvement from previous updates that took up to an hour.",
  "summary": "ARLTS has a public \"impact board\" at arlts.org/impact: how many people have visited, and how many were active today, this week, and this month. The numbers come from our analytics tool (PostHog). The board used to update once an hour. Now the user counts update every 5 minutes, and it costs nothing extra. How it worked A timer in the database ( pg_cron ) calls a little cloud function once an…",
  "key_points": [
    "ARLTS public \"impact board\" now updates every 5 minutes",
    "Modification of cloud function reduces load by requesting only two lightest questions",
    "Visitor numbers displayed within 11 minutes, improvement from hourly updates"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}