five.tooSlow = function() {
var returnIn = new Date(new Date().valueOf() + 555);
do {} while(new Date() < returnIn);
return five();
};
Finally a way to escape callback hell. I think somebody should write a jQuery.ajax plugin that calls the function repeatedly until a request is finished.
I poked around at the source code and this really doesn't seem to be web scale at all. Please look into mongodb to store the five, maybe throw in Redis to cache five in memory, and consider using a real-time processing framework like Storm to implement mapping and reducing five.
Until then I'm afraid this is just far too slow to consider using seriously in my web-scale project. This probably cant even handle 100M+ requests/second. Right now, its just me and grandma so I need 2 requests/sec, but this really doesn't seem scalable.
[+] [-] filearts|11 years ago|reply
[+] [-] joezo|11 years ago|reply
[+] [-] morley|11 years ago|reply
[+] [-] jgillich|11 years ago|reply
[+] [-] sfeng|11 years ago|reply
You can make synchronous requests already though:
[+] [-] zaptheimpaler|11 years ago|reply
Until then I'm afraid this is just far too slow to consider using seriously in my web-scale project. This probably cant even handle 100M+ requests/second. Right now, its just me and grandma so I need 2 requests/sec, but this really doesn't seem scalable.
[+] [-] mooreds|11 years ago|reply
Sigh. I suppose I'll have to submit an issue and pull request.
[+] [-] hacliff|11 years ago|reply
[+] [-] unknown|11 years ago|reply
[deleted]
[+] [-] talles|11 years ago|reply
[+] [-] andrey-p|11 years ago|reply
[+] [-] neals|11 years ago|reply
[+] [-] dclowd9901|11 years ago|reply
[+] [-] Softcadbury|11 years ago|reply
Number.prototype.amIFive = function(){ return this.valueOf() == 5; }
5..amIFive();
[+] [-] phpnode|11 years ago|reply
[+] [-] saraid216|11 years ago|reply
http://principiadiscordia.com/book/23.php
[+] [-] timme|11 years ago|reply
[+] [-] oakesm9|11 years ago|reply
[+] [-] nateguchi|11 years ago|reply
[+] [-] weddpros|11 years ago|reply
[+] [-] unknown|11 years ago|reply
[deleted]
[+] [-] sramsay|11 years ago|reply
[+] [-] assertnotnull|11 years ago|reply