Skip to content

Lower RTT with Meteor.call #35

@nilnullzip

Description

@nilnullzip

I find that a simple Meteor.call ping runs with about half the RTT of TimeSync. So to meteor.com, I'm seeing something like 150ms vs 300 for TimeSync. Locally, I see 3ms vs 25ms. I think perhaps the difference is due to the WebSocket on the DDP call. In fact if I disable web sockets locally, I see RTT of 35ms with the Meteor.call vs TimeSync's 25ms. All this was on a non-SSL connection.

Are there perhaps other advantages to the WebApp/HTTP method employed by TimeSync?

ping_RTT = new ReactiveVar()
Meteor.setInterval ->
  # ping_RTT.set undefined
  t1 = Date.now()
  Meteor.call 'ping', t1, (e, t)->
    t2 = Date.now()
    ping_RTT.set t2 - t1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions