Free up to 1MM monthly messages. No credit card required.
Closure + gzip -9 and Memcache
To squeeze the fast juice from our networks we did the following:
Also modify headers to a set of FOUR. Make sure there are no more than FOUR because headers are uncompressed.
Also consider adding Proxy Cache-Control header for extra chances of cached data on a local box for people who live in remote regions.
To test the amount of juice that can be sqeezed, run the following command:
This command will report a total byte count which tells the payload size. Under 4,000 bytes is the goal. Our PUBNUB Library is under 2,900 bytes.
Google Closure Compiler Advanced
To start, running Google Closure in Advanced Mode requires you to specify which object descendants must not be reduced to a single letter (‘object.apple’ to ‘o.a’).
These are important to identify especially if JSON + AJAX is invovled. JSON accessed by the compiled code is not referencable.
The Solution is to wrap the descendants name with [‘some_val’]
Otherwise this will happen:
Now you can safely execute Google Closure Compiler with Advanced Optimizations.
Google App Engine CDN
send-optimized.sh has every server IP and access key for ssh access. Or in the case of GAE, a secure custom delivery API.
CDN Other than Google
If you are using another CDN, you’ll need to forget about the memcache step listed above. However choosing a CDN over Memcache is much better especially if your audience is international. Your send-optimized.sh script will instead deliver the gzipped file to your CDN gateway.
Fast is Important
Page delivery speed is crucial and has direct correlation with revenue. In the case of Google, adding only 100ms to each page request drops revenue several percent. That will be a large number for Google.
Take into account all the mobile users and growing network congestions. Slow network speeds can be improved by following Closure + Gzip + Memcache + CDN + Header changes.
Don’t forget international! With all these Optimizations, your friends in other countries can enjoy a speedy web experience too.
A roundtable discussion led by PubNub’s COO, Casey Clegg, exploring the topics of what it means to be human in a virtual world.
Dr. Joe Kvedar, Chair of the Board for the American Telemedicine Association, joins our COO, Casey Clegg, to discuss why...
Today, we are glad to announce that we are currently in the process of implementing ISO-27001 security standards.