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

Design the device messaging concept #137

Open
Koufan-De-King opened this issue Feb 18, 2025 · 0 comments · May be fixed by #138
Open

Design the device messaging concept #137

Koufan-De-King opened this issue Feb 18, 2025 · 0 comments · May be fixed by #138
Assignees
Labels

Comments

@Koufan-De-King
Copy link
Collaborator

Koufan-De-King commented Feb 18, 2025

There are three primary paradigms for retrieving messages from the system:

  • Pull: The device explicitly requests its messages by providing the timestamp of the last received message. The system then returns all messages received after that timestamp.

  • Push: The system actively sends messages to the device as they become available, without requiring a request from the device. This typically relies on mechanisms like WebSockets or Firebase Cloud Messaging (FCM).

  • Poll: The device periodically checks for new messages at regular intervals, without specifying a timestamp. This approach reduces the need for a persistent connection but may introduce slight delays.

Implementation Considerations

  • Messages should be stored in a dedicated table, including the deviceId of the associated device and other relevant message metadata.
  • Clients should be able to retrieve messages for a specific deviceId using secure, well-defined API endpoints.
  • The system should ensure proper authentication and authorization to prevent unauthorized access to messages.
@Koufan-De-King Koufan-De-King changed the title Design the device notification concept Design the device messaging concept Feb 18, 2025
@Koufan-De-King Koufan-De-King transferred this issue from ADORSYS-GIS/webank-OnlineBanking Feb 18, 2025
@Koufan-De-King Koufan-De-King linked a pull request Feb 18, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant