Deploying the Response Caching sample project

By following this guide, you can deploy and test the sample project Response Caching in IPS.

This document aims at providing project property configurations and steps involved in the testing process. In order to familiarize yourself with the overall deployment steps involved, please read the guide on How to Run a Sample Project.

Configurations

  1. No property changes are required for this sample. Simply click Next on the Configure page of the project wizard.

  2. During deployment, map port 8280 to an external port (e.g. 30040). Port 9000 does not need to be mapped.

Testing

After running the project, follow the documentation to test the sample, using the derived endpoint URL
http://vm-ip:port-mapped-for-8280/service/db-service.

Refer to Running a Sample to find out how to acquire the IPS virtual machine IP address (vm-ip).
You can use the UltraStudio toolbox HTTP client to view the headers returned with each response, to see the caching mechanism in action. For a given request, while the first response will contain the X-Forwarded-For and Host: localhost:9000 headers (indicating that it has been forwarded to the backend), repetition of the same request will return cached responses with a Host: vm-ip:port-mapped-for-8280 header indicating that it was generated the mediating IPS-Worker instance.
In this topic
In this topic
Contact Us