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

Unknown delay when delivering chunked messages #235

Open
antulik opened this issue Sep 20, 2020 · 1 comment
Open

Unknown delay when delivering chunked messages #235

antulik opened this issue Sep 20, 2020 · 1 comment

Comments

@antulik
Copy link

antulik commented Sep 20, 2020

When using long polling I discovered there is a significant delay when message is written to client's IO

client.synchronize do
client << msg
end

and when the message is sent through the network. It varies but usually within the range 300-1000ms.

ActionController::Live in comparison sends data as soon as it is written (0ms delay)

Do you have any clues where that delay might come from?

I tried locally with Rails development and production mode on MacOS.

@antulik
Copy link
Author

antulik commented Sep 20, 2020

Tested on heroku, seems like it's not the case there. At least the range is much smaller.

When compared to ActionCable implementation, MessageBus has additional 50ms delay

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

No branches or pull requests

1 participant