The previous recipe, presented how to improve the performance by using cache. But although everything is working fine, how can we measure the gaining performance from cache usage? This recipe will present you an execution of a Gatling project to measure the token validation process with and without cache.
To run this recipe, you will need the remote-authserver
,remote-resource
and cache-introspection
applicationscreated for the previous two recipes. At first, we will run the load test against remote-authserver
and remote-resource
. And to measure the cache advantages, we will run the same load test against the remote-authserver
and cache-introspection
applications. To edit the load test scripts, you need Scala IDE for Eclipse (if you don't know how to configure and use Scala IDE for Eclipse, you can check the Using Gatling to load test the token validation process using shared databasesrecipe from Chapter 2,Implementing Your Own...