Skip to content

Conversation

@ali-behjati
Copy link
Collaborator

The existing code creates futures for publish_batch with delays to spread the rpc load evenly in the publish interval however due to the Rust async design those futures do not get started unless they are awaited. This results in additional deterministic latency of almost the publish_interval especially for the publishers who publish many prices.

This change removes the code as even the intended behaviour adds latency and disrupts the publish interval (the last publish_batch can block the actor loop).

The existing code creates futures for publish_batch with delays to
spread the rpc load evenly in the publish interval however due to the
Rust async design those futures do not get started unless they are
awaited. This results in additional deterministic latency of almost the
publish_interval especially for the publishers who publish many prices.

This change removes the code as even the intended behaviour adds latency
and disrupts the publish interval (the last publish_batch can block the
actor loop).
@ali-behjati ali-behjati force-pushed the fix/remove-batch-update-delay branch from b5d0327 to 954e31e Compare February 23, 2024 18:59
Copy link
Contributor

@guibescos guibescos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ali-behjati ali-behjati merged commit f839f01 into main Feb 25, 2024
@ali-behjati ali-behjati deleted the fix/remove-batch-update-delay branch February 25, 2024 11:16
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.

3 participants