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

feat: added mongo db query required for offset-based sse #33

Merged
merged 6 commits into from
Nov 28, 2024

Conversation

mherwig
Copy link
Contributor

@mherwig mherwig commented Nov 28, 2024

Due to the nature of SSE (Server-Sent Events) being based on the HTTP protocol, data loss cannot be completely ruled out. For example, if a client abruptly disconnects from an SSE connection, it is possible that data might be successfully written to the TCP buffer of the underlying operating system, but never reach the client. The server, however, has no direct way of responding to any outstanding acknowledgements from the client and assumes in such cases that the message was successfully delivered. This can lead to data loss, which we aim to prevent within the scope of this epic.

To address this, this PR introduces a new MongoDB query which allows to search for entries that are newer than a given timestamp. This is a requirment for offset-based event-streaming in Horizon Pulsar.

@mherwig mherwig requested a review from a team as a code owner November 28, 2024 14:39
@mherwig mherwig requested review from Th3Shadowbroker, julian-spierefka and WRichter72 and removed request for a team November 28, 2024 14:39
Copy link

Overall Project 25.06%

There is no coverage information present for the Files changed

@mherwig mherwig requested review from Schnix84 and hegbers and removed request for Th3Shadowbroker and julian-spierefka November 28, 2024 14:56
@mherwig mherwig merged commit 258619d into main Nov 28, 2024
3 checks passed
@mherwig mherwig deleted the feature/offset-based-sse branch November 28, 2024 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants