Re:Show HN: Reusing browser JavaScript code on server
by tfennelly on Thursday May 24, 2012 @11:23AM
(#4018837)
That's a really nice idea. How does doing this on the server side effect performance? Maybe ye can cache the result.
[ Parent
| on HN ]
Re:Show HN: Reusing browser JavaScript code on server
by zubairov on Thursday May 24, 2012 @11:28AM
(#4018863)
Yes. Good point. It's indeed quite expensive to do the graphic generation on the server.
We use a caching from Amazon CloudFront. They have a great feature 'custom origin'. We just put our heroku server URL as an origin for CloudFront and configured HTTP headers properly. After that we were able to significantly reduce the load on a server.
We also blogged about it: http://blog.elastic.io/post/22773181715