Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the session with Astarte #389

Open
joshuachp opened this issue Oct 29, 2024 · 0 comments
Open

Improve the session with Astarte #389

joshuachp opened this issue Oct 29, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@joshuachp
Copy link
Collaborator

There are some improvements we can make when connecting with Astarte, to make sure we use the least amount of traffic:

  • Keep track of the current introspection across restarts
    So only if it was changed (OTA update) we need to make a full connection to Astarte.
  • Check the status of the store, if it's missing (probably a new start, manual deletion or factory
    reset) we need to do the full handshake
  • Keep track of the completed handshake with Astarte (introspection sent, empty ...), with the full
    handshake completed and session-present true we don't need to send additional data

On a first connection or when we receive a session-present false, we still need to do the full handshake:

  • introspection
  • empty cache
  • purge device properties
  • send device properties
@joshuachp joshuachp added the enhancement New feature or request label Oct 29, 2024
@harlem88 harlem88 added this to the v0.10 milestone Dec 2, 2024
@lucaato lucaato self-assigned this Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants