I have a Solr server setup, working great, and sitting behind an Apache proxy server which limits access to a range of IP's.
To date our application(built in ZF/PHP) would use a PHP proxy function to query the Solr instance.(the ZF server's IP is allowed) however, I've been testing a new interface and have noticed querying Solr directly from JS is light-years faster than using PHP code to proxy things.
The page I'm testing runs 25+ solr queries per page load. Using pure JS this loads great, using PHP -not even close to usable.
Is there a way to proxy the client-side using jQuery or something much faster than PHP?
I've been searching for days, reading on various types of proxies, reverse proxies, securely querying webservices without exposing keys, etc.. But I'm still a bit lost as to the best way to query services using JS.
Any tutorials or advice would be much appreciated, cheers!