cancel
Showing results for 
Search instead for 
Did you mean: 

java backed web scripts

koolalfdev
Champ in-the-making
Champ in-the-making
Just had a simple question? Are java backed web scripts controllers faster than java script web script controller

Thanks
2 REPLIES 2

rdanner
Champ in-the-making
Champ in-the-making
Just had a simple question? Are java backed web scripts controllers faster than java script web script controller

Thanks

Yes but you have to consider the trade-off you are making.  You are swapping agility of development for speed of code execution.  I think this is an important decision and one you should think hard about.  If you need really fast stuff because you are going to hammer on it and you can't get what you need from the js/freemarker executor the pure java will give you a boost but you will have to recompile and deploy on every change etc.

rogier_oudshoor
Champ in-the-making
Champ in-the-making
They are slightly faster for regular scipts, and massively faster if you're going to do a lot of work on the nodeService. For instance, if you're going to touch a lot of nodes, Java will be quicker - especially when you do a lot of processing in Java that otherwise would have been in FTL. Just keep in mind that the system itself is the bottleneck and you're using the same API - for a simple script, there won't be much of a difference.