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

"less than 100ms" #134

Open
KevinColemanInc opened this issue Sep 8, 2022 · 4 comments
Open

"less than 100ms" #134

KevinColemanInc opened this issue Sep 8, 2022 · 4 comments

Comments

@KevinColemanInc
Copy link

handle sending and receiving data across the world in less than 100ms.

The read me says that it sends and receives data in less than 100ms, but I am very curious how y'all are able to go faster than the speed of light, since round trip time at the speed of light from across the world is 133ms.

Or does "across the world" mean really mean a shorter distance, like from one end of a building to another. Which wouldn't be very impressive.

@nicolascian
Copy link

That's if you need to do a full loop around the world, but the furthest away you can be from a server is the other side of the planet, so if you took the shortest path it will be half that time 67ms 😄

@KevinColemanInc
Copy link
Author

True. But I thought they were using tcp or quic, not UDP.

any ideas why they would choose UDP for this protocol considering the client won’t know if the message is delivered?

@KevinColemanInc
Copy link
Author

KevinColemanInc commented Apr 28, 2024

@nicolascian I did a quick check on this sdk and it looks like they are using http (code), which would have a round trip time of over 100ms.

Can you link to the code that uses non-tcp/quic protocols?

@nicolascian
Copy link

I was joking 😅 but at least the Gem page says it's 250ms, maybe that's more realistic.
https://rubygems.org/gems/pubnub

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

No branches or pull requests

2 participants