Skip to content

Make the device listener feature #5

@needmorecowbell

Description

@needmorecowbell

Come up with a way to reliably hit a callback function on new entry in the logs table. Every new entry must be sent to HQ Control to see which device listeners must react to the new entry.

One possible solution:

The issue with doing it this way is that we are essentially duplicating the database over a notification channel. Will it scale effectively?

Another possible solution:

  • Come up with queries that looks at the count of logs from a device, and if it's higher than the number before, that means it's x amount of entries behind for that device.
  • this seems like a terrible solution that would mean polling hq-core very frequently

Overall, this is a blocking issue that needs to be solved before development can meaningfully continue

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions