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

fix: feed rpc responses and notifications instead of send and flush #135

Merged
merged 3 commits into from
Aug 1, 2024

Conversation

ali-bahjati
Copy link
Collaborator

@ali-bahjati ali-bahjati commented Aug 1, 2024

We might send thousands of messages per second to the clients and send method flushes each request which might take a longer time. This change changes our responses and notifications to feed and flushes the messages based on a configured interval (default: 100ms).

There is a small refactor of a config in the previous changes to make it match our configuration style.

@ali-bahjati ali-bahjati requested review from Reisen and cctdaniel August 1, 2024 10:23
@ali-bahjati ali-bahjati force-pushed the fix/feed-notifications-instead-of-flushing branch from cf646e5 to a5322cd Compare August 1, 2024 10:28
@ali-bahjati ali-bahjati changed the title fix: feed rpc notifications instead of send and flush fix: feed rpc responses and notifications instead of send and flush Aug 1, 2024
@ali-bahjati ali-bahjati force-pushed the fix/feed-notifications-instead-of-flushing branch 2 times, most recently from 44421f4 to e8716ad Compare August 1, 2024 10:33
@ali-bahjati ali-bahjati force-pushed the fix/feed-notifications-instead-of-flushing branch from e8716ad to 7ea4825 Compare August 1, 2024 10:34
config/config.toml Outdated Show resolved Hide resolved
@ali-bahjati ali-bahjati force-pushed the fix/feed-notifications-instead-of-flushing branch from 7ea4825 to 6067d5a Compare August 1, 2024 10:40
@ali-bahjati ali-bahjati merged commit 3852195 into main Aug 1, 2024
2 checks passed
@ali-bahjati ali-bahjati deleted the fix/feed-notifications-instead-of-flushing branch August 1, 2024 11:17
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