Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: Reusing browser JavaScript code on server (elastic.io)
7 points by zubairov on May 24, 2012 | hide | past | favorite | 3 comments


As an author of fabric.js, I'm glad to see you guys found it useful! Just wanted to mention that fabric's requirement for old Node.js is definitely something we can't wait to get rid of. As soon as we find a replacement to "o3-xml" package, you'll be able to take advantage of newer (and faster) Node versions.


That's a really nice idea. How does doing this on the server side effect performance? Maybe ye can cache the result.


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




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: