SShortSingh.
Back to feed

How Lastyard.space Built Zero-Loss Telemetry Infrastructure for Endurance Athletes

0
·45 views

Lastyard.space has engineered a high-availability telemetry ingestion system that treats athlete workout data with the same rigor as production distributed infrastructure. The platform captures real-time metrics — including heart rate, cadence, elevation, and pace — from Apple Watch via a mobile edge collector, routing data through WireGuard tunnels and a Traefik ingress layer into a durable PostgreSQL event log. A core design principle is at-least-once delivery with idempotent writes, meaning duplicate or delayed samples from flaky mobile connections are merged rather than double-counted, using a composite primary key of athlete ID, workout ID, metric, and sample timestamp. The architecture separates the write ingestion path from live SSE read streams, ensuring dashboards and race control panels remain functional even under backend pressure. The system was validated against a real 21.1 km trail run logged on 12 September 2026, demonstrating stable data capture across 115 minutes of sustained metabolic load.

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 ·

Daily Puzzle Sites Must Treat Midnight Resets as Explicit Data, Not Browser Logic

A developer building a companion site for a daily music puzzle reports that the reset boundary, tied to midnight Eastern, has caused more bugs than any other component. Naive server-side date calculation breaks when responses are cached, served through CDNs, or viewed in tabs left open past midnight. The proposed fix stores each edition's date as data, dates every cache key by edition, and bases countdown timers on the server's declared window rather than the browser clock. The author also recommends displaying the edition date as visible text on the page so users and search engines can spot stale content. The piece notes that unlimited practice modes, which are not bound to the reset calendar, are where these design ideas get stress-tested.

0
ProgrammingDEV Community ·

Handoff docs fail because of missing templates, not missing tools

Engineers often leave without documenting how their systems work, because the blank page is too daunting to start. The author argues that a predefined skeleton with named sections and placeholders makes handoff documentation practical, since filling an outline is far easier than inventing one. The article describes HandoffKit, a paid $13 bundle of six Markdown and JSON templates plus a small bash CLI that copies them into a repository. The author measured the bundle's word counts and headings, and disclosed that two of the four CLI commands do not behave as the README describes. The piece is transparent that the author sells the product.

0
ProgrammingDEV Community ·

Five npm packages near 8,455 combined downloads as environmental-peek ships v0.5.1

A developer tracking five npm packages reported 8,455 combined downloads, up 71 from the previous day. The leading package, plumber-linter, gained 32 downloads to reach 2,572, while hexlens, react-dismiss, and environmental-peek also added modest numbers. The author set a goal of 10,000 total downloads, leaving 1,545 to go. The environmental-peek v0.5.1 release went out the previous afternoon, and its effect is expected to appear in the next day's figures because npm statistics lag by about a day.

0
ProgrammingDEV Community ·

Apify Actors Automate AI Search Readiness and EU EAA Accessibility Audits

A developer guide describes how teams can audit AI search readiness, covering AI crawler access in robots.txt, Schema.org JSON-LD validation, and llms.txt generation. It also covers accessibility checks against WCAG 2.2 AA and EN 301 549 ahead of EU European Accessibility Act deadlines. Four pay-per-event Apify Actors are presented as on-demand alternatives to subscription SaaS tools, triggerable via API, n8n, or MCP. The tools also cover sitemap redirect and canonical checks, plus bulk email DNS validation. The article notes that all four Actors can be tested on Apify's free tier.