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

How should we track history? #29

Open
scott2b opened this issue Mar 24, 2017 · 0 comments
Open

How should we track history? #29

scott2b opened this issue Mar 24, 2017 · 0 comments
Labels

Comments

@scott2b
Copy link
Member

scott2b commented Mar 24, 2017

Issues #26 and #6 depend on some concept of tracking historical data. What approach should we take to doing this?

Currently:

  • we broadcast individual network messages upon receipt
  • WiFi nodes post generated and received messages to the API individually upon generation/receipt
  • Logging nodes write message data individually upon generation
  • There is no concept of TX ACK. Ideally, bounced (network re-transmissions) messages would be read as an acknowledgement of network receipt of outbound messages

We want to consider what it might mean to batch data where possible and also to track whether individual messages have been received by adjacent nodes. A likely historical structure might be a simple array of structs. Something like:

{
    Message * msg;
    bool ack;
}

But will this be sufficient for batching and tracking? Consider sketching a functional API of how this historical structure will be used by code.

Also consider how this might affect the current concept of max ID for a given node. Should this be tracked within this structure? Is there a better way to keep track of message ID numbers?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant