Re:Simple Way to Extract GET Params from a JavaScript Script...
by melvin on Friday June 11, 2010 @10:26PM
(#1425435)
I was seeking to avoid the same thing recently. Instead of adding more JavaScript, I decided to use PHP. While we're using Rails, it's very inefficient to fire up the whole engine to do something as simple as outputting a script with a few interpolated variables. A simple PHP script can put out 2-3 times as many requests per second as Rails/Django for a task like that.
[ Parent
| on HN ]
Re:Simple Way to Extract GET Params from a JavaScript Script...
by patio11 on Friday June 11, 2010 @11:32PM
(#1425496)
Rack Metal was pretty much made for that. I wouldn't use either until I had evidence that it was a bottleneck, but if you do, then it would let you do a few simple requests quickly without needing to swap stacks. (I run PHP and Rails concurrently for one application, but only because I had to be able to get Wordpress working.)