Skip to content

Reduce Websocket event pressure due attr/lastseen#8193

Merged
manup merged 1 commit into
dresden-elektronik:masterfrom
manup:master
Apr 29, 2025
Merged

Reduce Websocket event pressure due attr/lastseen#8193
manup merged 1 commit into
dresden-elektronik:masterfrom
manup:master

Conversation

@manup

@manup manup commented Apr 29, 2025

Copy link
Copy Markdown
Member

This PR changes Websocket events caused by attr/lastseen updates to only contain that value but not the full attr object.

This reduces traffic load on Websockets and also prevents the plugin to cycle through all ResourceItems and build the whole response.

The attr/lastseen might be emitted at most once per minute per device, which in a larger network causes quite some traffic.

This PR changes Websocket events caused by `attr/lastseen` updates to only contain that value but not the full `attr` object.

This reduces traffic size on Websockets and also prevents the plugin to cycle through all ResourceItems and build the whole response.

The `attr/lastseen` might be emitted at most once per minute per device, which in a larger network causes quite some traffic.
@manup manup added this to the v2.30.0-beta milestone Apr 29, 2025
@manup manup merged commit e894d0f into dresden-elektronik:master Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant