Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
syncing package metadata in poor internet: connection timeout #2777
The new Meteor 0.9.x build tools work very poorly for people who do not have access to low latency high grade connections (virtually all of Sub saharan Africa, including South Africa).
The inherent problem with the design of DDP is that latency is a huge issue with it. Even if there is no real intention to use it. There are no major data centers on the continent (unlike aws/do).
When connecting via DDP there is a 'handshake' for the initial websocket, then for the second layer on top (if its there, like SockJS via ws emulation), then for the DDP stack itself. Since Meteor has no servers close to Africa it becomes difficult to use.
In addition to latency the connections are very jittery and cut off often.
I see this in my logs:
I just modified my app's code, why would I need a DDP connection anyway? This process takes up to 20 seconds on a fresh simple project. Each simple small file change really adds up and it slowly becomes unrealistic to use Meteor. The old page refresh is much faster.
What I suggest is some kind of work around that allows it to work in this environment.
I've been using Meteor from the start and this really troubles me that I have to experience this.
Keep in mind I have tried this now in two countries (South Africa & Kenya) and I see the impact on both.
I've been getting a pretty consistent ~6 timeouts each time I build (I'm doing a bunch of
Running on OS X 10.10, Meteor 0.9.4
We just landed a fix that simplifies when refreshes are performed, so you certainly will not see 6 timeouts. (We will be opening known issues tickets to describe future optimizations.) Number of packages shouldn't affect "DDP connection timed out", I think. Maybe there's something else going here, hmm. We'll have an RC out shortly and I'll ask you if it makes it better.
I just gave this a go. The improvement is quite dramatic & meteor is once more very usable!
I'm not sure whether it was the timeouts because the time taken for meteor to reload has improved too. Were there any other changes other than the timeout?
I'll keep checking my internet's quite stable today (Sunday, so quite expected). But so far it looks really good.
Great! Glad to hear it, @Tarang.
There are several changes in 1.0-rc that should help:
Hopefully these changes combined make meteor usable even with slow internet.