You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 😄
Activity
nicolascian commentedon Apr 26, 2024
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 commentedon Apr 27, 2024
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 commentedon 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 commentedon Apr 29, 2024
I was joking 😅 but at least the Gem page says it's 250ms, maybe that's more realistic.
https://rubygems.org/gems/pubnub
mohitpubnub commentedon Oct 13, 2026
For more information regarding latency, please see the PubNub documentation.