jangala-dev / jangala-dev/devicecode-lua

Metrics can be lost if backhual is not available for more than 10 minutes [future issue]

Open
#97 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Lua
Stars
1
Forks
0
Avg merge
6d 8h
Merged PRs (30d)
6

Description

Given the current metrics service implementation if we cannot publish metrics over HTTP for more than 10 minutes we will start to lose metrics payloads, this can leave chunks of delta values missing which will cause future metrics to be incorrect. We need to think of a scalable way to preserve metrics if a publish fails, perhaps by cycling metrics back into the timed cache or processing cache if they cannot be immediately sent, an infinitely sized queue could also be used but this will not scale well

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the current metrics service implementation, especially the timed cache and processing cache used around HTTP publishing. Determine how failed publishes are handled and design a scalable preservation approach; done means metrics payloads are not lost during outages longer than 10 minutes and future delta values remain correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
embedded-iot, observability
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.