Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is there a way to integrate this module with any of the image manipulation packages like CamanJS? My knowledge of node.js is basically on the "I know it is some kind of Javascript-on-server thing which can make some Drupal modules really fast" level, so I am talking mostly about server-side alternative to GD or ImageMagick.
Currently working on Drupal project with some heavy image uploading feature and this could be some kind of alternative to doing it conventional way. Of course, manipulation of images in front end is also discussed option.
Does anyone ever thought about this?
Comments
Comment #1
tizzo CreditAttribution: tizzo commentedThe node.js integration module is mostly concerned with providing websockets for real time push updates from the server to the client. Node is faster than php mainly in cases where you can benefit from its concurrency (one process can be serving thousands of requests vs php where one process does one request at a time). Node also has the benefit of not having to re-bootstrap the application for each request the way PHP does which is especially expensive for Drupal.
For processor bound requests like image manipulation where the result can be cached and reused by apache (or even varnish) without needing any subsequent Drupal processing I don't think there's much of a case to be made for node. The integration would be complicated and I don't think it would be any faster.
Comment #2
tizzo CreditAttribution: tizzo commentedComment #3
PlayfulWolf CreditAttribution: PlayfulWolf commentedThank you. You made a point.