I have 2 Servers, the 1st is runing a PHP-Script, the 2nd contents a Java-Program to analyse pictures, which needs more performance.
I want to make the PHP-Script use this Java Program, at first time i decided to use SOAP-Connection between the 2 servers, then i though maybe it will be better and faster to use it as it is on the same server and mounted this using Samba
mount cifs -t smb://IP/path/to/java/process
so now i'm wondering which CPU performance will be used when runing the script locally ? the CPU where is the Java-Program or the PHP-Script.