I am developing a web application which uses REST services. The requirement is that
- REST service has to be exposed to public
- Consumed by web application
The web application & REST service are two different war files. But will be deployed in same application server.
Since the REST service is deployed in the same server, instead of using http://localhost/services/rest
URI, can I use some different approach for better performance? I meant, instead of using HTTP is it possible to use TCP or some other methodology so that performance will be good, because both applications are deployed in same server.